[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New ELPA package ada-lite
From: |
Stephen Leake |
Subject: |
Re: New ELPA package ada-lite |
Date: |
Wed, 17 Aug 2022 18:08:48 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Stephen Leake <stephen_leake@stephe-leake.org>
>> Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
>> Date: Wed, 17 Aug 2022 02:56:58 -0700
>>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>> > Would it make sense to have the lite mode in core?
>>
>> I don't think so; that would mean any use of ada-mode would cause a
>> conflict in auto-mode-alist.
>
> Why would they conflict? Or, IOW, why wouldn't it be possible to make
> them not conflict, assuming that no one will activate both modes in
> the same buffer?
ada-mode does this:
(add-to-list 'auto-mode-alist '("\\.ad[abs]\\'" . ada-mode))
ada-lite-mode does this:
(add-to-list 'auto-mode-alist '("\\.ad[abs]\\'" . ada-lite-mode))
Whichever is done last ends up first in auto-mode-alist, and is the one
that (assoc ".ads" auto-mode-alist) returns.
See also Stefan's reply.
--
-- Stephe
Re: New ELPA package ada-lite, Stephen Leake, 2022/08/17
Re: New ELPA package ada-lite, Felician Nemeth, 2022/08/19