GNU bug report logs -
#20545
New minor mode Electric Quote
Previous Next
Reported by: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Sun, 10 May 2015 23:57:02 UTC
Severity: wishlist
Tags: patch
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Attached are two proposed patches. The first creates a new minor mode Electric
Punct that does a variant of "smart quoting" designed for the Emacs tradition of
using ` and ' as aliases for left and right single quotation marks. This new
minor mode is inactive by default, but the user can enable it in certain
contexts. The second patch modifies .dir-locals.el to enable the minor mode in
contexts where it should be useful when editing Emacs itself.
These patches are related to Bug#20385 in that they make it much easier to edit
doc strings formatted ‘like this’, which is the point of Bug#20385. (All that
one needs to do is to type the string "`like this'".) However, the main idea of
this patch is independent of the Emacs doc string issue, as Emacs should make it
easy to quote ‘like this’ when the user prefers this form.
I named this mode "Electric Punct" because I anticipate that there may be a
similar need to enter em and en dashes, and a few other non-ASCII punctuation
marks commonly used in text. Quotes are a good place to start, so that's where
I started.
[0001-New-minor-mode-Electric-Punct.patch (text/x-patch, attachment)]
[0002-Use-Electric-Punct-when-editing-Emacs-source.patch (text/x-patch, attachment)]
This bug report was last modified 9 years and 361 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.