[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: asm-mode patch to allow per-file comment character setting from file
From: |
Richard Stallman |
Subject: |
Re: asm-mode patch to allow per-file comment character setting from file locals |
Date: |
Tue, 13 Jun 2006 19:20:44 -0400 |
When you have a construct such as gas-register-machine-dependent
that generates a defun, it should be a macro, not a function.
The macro name should start with `def'.
And the name of the function it defines should not be constructed
like this
(let ((mode-func (intern (format "gas-%s-mode" name))))
Instead, the name of the function should appear as the first argument
of the macro.
Those are general principles for Lisp programming which ought to be
applied here.
Comparing the usefulness for editing of these two proposed extensions
to asm mode is a different question. It would be useful for those
who are interested in such things to compare them and state their
opinions.
- Re: [OT] Netiquette, (continued)
- Re: [OT] Netiquette, Miles Bader, 2006/06/14
- Re: asm-mode patch to allow per-file comment character setting from file locals, Miles Bader, 2006/06/14
- [OT] Whether those with gnu.org addresses in any way represent FSF (was: Re: asm-mode patch to allow per-file comment character setting from file locals), Alastair Houghton, 2006/06/14
- Re: [OT] Whether those with gnu.org addresses in any way represent FSF, Miles Bader, 2006/06/14
- Re: [OT] Whether those with gnu.org addresses in any way represent FSF, Alastair Houghton, 2006/06/14
- Re: [OT] Whether those with gnu.org addresses in any way represent FSF, nferrier, 2006/06/14
Re: asm-mode patch to allow per-file comment character setting from file locals, Masatake YAMATO, 2006/06/13
- Re: asm-mode patch to allow per-file comment character setting from file locals,
Richard Stallman <=