autoconf
[Top][All Lists]
Advanced

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

Re: Emacs modes


From: Akim Demaille
Subject: Re: Emacs modes
Date: 01 Oct 2001 11:09:30 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

>>>>> "drv" == Didier Verna <address@hidden> writes:

drv> Russ Allbery <address@hidden> wrote:
>> I probably wouldn't bother trying to install the elisp; at least,
>> I've not yet seen a package that manages to do that in a
>> particularly useful fashion (although I guess I'm not the normal
>> end user).

drv> At least for XEmacs-21.1 and later, there is a precise way to
drv> install non standard packages. I'll be happy to implement that
drv> for Autoconf.

Then it's probably Automake you want to peek at.  See elispcomp and
all its *.am files.

In my case, I have read what people suggested about Autoconf and
Autotest modes, but I'm still unable to have add-log understand by
itself how to find the right name to insert in the ChangeLog.  Part of
the problem is that I see no means to specify the RE group I want to
match.  Here is what I hard coded in add-log.el:

                ((eq major-mode 'autoconf-mode)
                 (if (re-search-backward "^\\(m4_define\\|m4_defun\\|A._DEFUN\\)
(\\[*\\([A-Za-z0-9_]+\\)" nil t)
                     (buffer-substring (match-beginning 2)
                                       (match-end 2))))
                ((eq major-mode 'autotest-mode)
                 (if (re-search-backward "^\\(m4_define\\|m4_defun\\|AT_SETUP\\)
(\\[+\\([^]]+\\)" nil t)
                     (buffer-substring (match-beginning 2)
                                       (match-end 2))))


I would like X?Emacs to understand that, and also to trigger the right
mode (e.g., *.at is Autotest, configure.in and *.ac is Autoconf)
automatically, without the user having to edit her files.



reply via email to

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