delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/10/26/05:30:48

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: geda-user AT delorie DOT com
From: Rupert Swarbrick <rswarbrick AT gmail DOT com>
Subject: Re: [geda-user] Pin hole size
Date: Fri, 26 Oct 2012 10:18:30 +0100
Lines: 84
Message-ID: <641ql9xvlg.ln2@skate.rswarbrick>
References: <20121023111430 DOT GY32696 AT fi DOT muni DOT cz>
<3v1jl9x07b DOT ln2 AT skate DOT rswarbrick>
<1351032683 DOT 2442 DOT 5 DOT camel AT AMD64X2 DOT fritz DOT box>
<10rkl9xssv DOT ln2 AT skate DOT rswarbrick> <50880B81 DOT 2020304 AT neurotica DOT com>
Mime-Version: 1.0
X-Complaints-To: usenet AT ger DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: cpc1-cove3-0-0-cust941.3-1.cable.virginmedia.com
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)
Reply-To: geda-user AT delorie DOT com

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Dave McGuire <mcguire AT neurotica DOT com> writes:
> On 10/24/2012 06:03 AM, Rupert Swarbrick wrote:
>>> Has Emacs a PCB mode? Where can I download that plugin?
>>=20
>> I just use fundamental-mode. The only sad bit is that then the TAB
>> key doesn't indent in the way I'd like.
>>=20
>> That said, I've been slightly inspired: when I next get some free
>> time, maybe I'll try to hack a useful one together. Can you think
>> of useful features other than syntax highlighting and electric
>> indentation?
>>=20
>> I was thinking some sort of templatey "Insert a pin" command, with=20
>> prompts for the various parameters, so that I didn't have to
>> remember what order they come in. Similarly for pads. Would anyone
>> but me use something like this?
>
>   I would!  I really like the prompting for parameters idea as well.

Right, I'm announcing this now to force myself to keep working on it,
but there's a minimal implementation up now at

  https://github.com/rswarbrick/pcb-mode

When it's more complete and if anyone finds this useful I'll happily
"upstream it" and host it with you guys instead.

So far, it does some syntax highlighting and indentation. There are also
a couple of templates for adding Element, ElementLine etc., tied in with
the abbrev system.

It works on Linux and presumably should work on Windows/Mac. I'm not
sure whether XEmacs has tempo, the templating system I'm using, so it
might take some work to port to that.

What I want to add:

  - Run PCB to view the current file (and make sure that works on
    Windows too. Sigh)

  - Imenu integration, so that Emacs can let you jump to components by
    refdes etc.

  - Some automatic pad calculation ("Please give me a pad covering the
    following rectangle..."). Useful for footprints, and I've spent far
    too long working these out with bits of paper.

More vague:

  - Automatic mm/mil conversion routines would be nice, but I don't know
    what a good interface would be. Ideas?

  - I'd like a sort of "polyline" interface. So the user gives a list of
    points and the mode generates ElementLine objects going through them
    in order. Useful for silk outlines.

  - In that vein, I'd probably also add a rectangle generator, to avoid
    having to do the width/height <-> position calculations.

Does anyone else have suggestions for things that would be useful in
this mode? I sort of imagine that it will mostly be useful for working
on footprints. Is there any other boring calculation you find yourself
doing over and over?


Rupert

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iJwEAQECAAYFAlCKVWYACgkQRtd/pJbYVoYh0QP/XXMuVZVOSNshgtLZ21lUo0Lo
72Q7WMtmgQz5uvQHu2SmzKV+X173022xTHN01wBlzWkoMKF+UOCEVIVOt2MvVw1I
iEuu3PQri43yyeC1GAk5YoJRKOOT4vPPVZVPXlB2ORUBVNUZm92m7+UBxQVvA/MG
u9XCPF6j+DTWVNrBJvY=
=HeIH
-----END PGP SIGNATURE-----
--=-=-=--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019