GNU bug report logs - #20545
New minor mode Electric Quote

Previous Next

Package: emacs;

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


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 20545 <at> debbugs.gnu.org
Subject: Re: bug#20545: New minor mode Electric Punct
Date: Sun, 17 May 2015 17:33:40 +0300
> Date: Sat, 16 May 2015 14:20:39 -0700
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> CC: 20545 <at> debbugs.gnu.org
> 
> On further thought, the code affects global settings so it should be done only if FRAME is nil. Also, it should treat double-quotes like single-quotes, and the ASCII approximations should use straight quotes. This code is separable from Bug#20545, and is also separable from the issue of how to quote in doc strings, as the code is useful whenever text with English quotes appears on an obsolescent display lacking them. So I installed the attached patch. 

Yes, this global effect is not a Good Thing.  It means that a buffer
with these characters that is displayed on a TTY frame and on a GUI
frame will use the substitutes on both.

Btw, is set-locale-environment called when a new frame is created?  If
not, then this is not a proper place to install the display table, as
it won't DTRT when a new TTY frame is created in a running Emacs
session, and that frame displays on a terminal that doesn't support
these characters.

I think it would be better to install this as a window-specific
display table, using set-window-display-table, as part of setting up
the window showing the *Help* buffer.  WDYT?




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.