gnewsense-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gNewSense-users] Emacs PFV Mode Update


From: Bake Timmons
Subject: [gNewSense-users] Emacs PFV Mode Update
Date: Tue, 13 Nov 2007 14:28:18 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

This is just a quick update to the pfv mode I posted yesterday.  One
fix is to the shortcut handling, so give this new version a try.

Attached is the updated mode, a license choices file, and the obligatory
screenshot.  Note that it all can be customized quite a bit.

My command names and keybindings are kind of lame, so I am grateful for
any advice there.

Improved and corrected example:

--------------
While I have not yet properly documented the mode, here is a short
example:

In Emacs, give the command pfv-top, then paste in a PFV wiki page URL
that you wish to edit, such as
http://wiki.gnewsense.org/Main/MainMen-mz?action=edit

Emacs then draws a previewed table to fill out, e.g.,

http://changelogs.ubuntu.com/changelogs/pool/main/l/

http://archive.gnewsense.org/gnewsense/pool/main/l/

+-----------------------------------------------------------------------------+
|Package            |License                                          |Free?  |
|===================+===============================================+=========|
|lirc               |?                                                |?      |
|listres            |?                                                |?      |
...

It can be convenient to edit the tables in overwrite mode, which you
can toggle in and out of by pressing the insert key on the keyboard.

When on any package line of the table, hold shift and press the Page
Down key to see the Debian copyright file for that package.

Function key F11 shows a list of license names with shortcuts.  E.g.,

0: GPLv3+
1: GPLv2+
2: LGPLv3+
3: LGPLv2.1+
4: BSD License (revised)

So, pressing C-z 4 inserts "BSD License (revised)" at the cursor
position.

The *only things* to fill out are just the names of the licenses and
whether the package is free (Yes/No).  (There are a several other
convenience functions, such as downloading package files and unpacking
them for inspection, but they still have a kink or two that need to be
ironed out.)

I rarely manually type "yes"; I just do the appropriate search and
replace, on however those lines end, e.g., replace all patterns "|?      |"
with "|yes    |", and then manually correct the few (if any) "yes"
entries that should be "no".

(I will test the footnote handling out soon, but they still seem not very
amenable to automation.)

When done, just give the command pfv-tbl2markup

and your cursor shows up in a new buffer with converted markup
(including the correct current package URLs, etc.) which can be copied
and pasted into the wiki form.
--------------

Attachment: pfv-mode.el
Description: Emacs PFV Mode

Attachment: license-choices
Description: Binary data

Attachment: pfv.jpg
Description: Typical Emacs PFV Mode screen shot


reply via email to

[Prev in Thread] Current Thread [Next in Thread]