bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#18730: [PATCH] tildify.el: Add `auto-tildify' and `auto-tildify-mode


From: Stefan Monnier
Subject: bug#18730: [PATCH] tildify.el: Add `auto-tildify' and `auto-tildify-mode'.
Date: Thu, 16 Oct 2014 15:39:13 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> Of course, we can change `tildify-pattern-alist''s default value and
> require that it does not look past the white-space that is being
> replaced, in which case auto-tildify will be able to use it.  I would be
> fine with that myself, but I don't know how strict should we be about
> backward compatibility.

OK, that sounds fine:

Introduce a new variable that can be used by tildify-mode.  It would
probably work similarly to your auto-tildify-pattern-alist *except* that
it won't be an alist indexed by the major-mode.
Instead, the major-modes should set this var buffer-locally if they want
it to be different.

Please try to make it so that this new var can also be used for
tildify-region, move the current default entry in tildify-pattern-alist
to it (so that tildify-pattern-alist defaults to nil), and mark
tildify-pattern-alist as obsolete.

tildify-string-alist should also be made obsolete and replaced by
a variable which is set buffer-locally by the major-modes.

Could that work?


        Stefan





reply via email to

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