GNU bug report logs - #79178
[Improvement] Allow auto-insert to have functions as conditions

Previous Next

Package: emacs;

Reported by: Mattias <mattias <at> kojin.tech>

Date: Tue, 5 Aug 2025 16:18:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mattias <mattias <at> kojin.tech>
To: bug-gnu-emacs <at> gnu.org
Subject: [Improvement] Allow auto-insert to have functions as conditions
Date: Tue, 5 Aug 2025 18:16:48 +0200
[Message part 1 (text/plain, inline)]
--text follows this line--

Hi everyone,

First contribution to emacs. This comes from the fact that I have a 
custom function that overrides auto-insert to fit my needs and I 
realised it was not a big change and could be merged into emacs directly.

This small patch aims to allow any function acting as a predicate with 
no arguments to be used as a condition in auto-insert-alist

[0001-Autoinsert-Allow-condition-to-be-a-function.patch (text/x-patch, attachment)]

This bug report was last modified 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.