From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20545: New minor mode Electric Punct Date: Mon, 11 May 2015 18:00:58 +0300 Message-ID: <83k2wfma51.fsf@gnu.org> References: <554FEFFE.7000303@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1431356547 2931 80.91.229.3 (11 May 2015 15:02:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2015 15:02:27 +0000 (UTC) Cc: 20545@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 11 17:02:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YrpDe-00083O-Rn for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 May 2015 17:02:10 +0200 Original-Received: from localhost ([::1]:38043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrpDe-0000Rx-3Q for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 May 2015 11:02:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrpDa-0000Rf-Tl for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 11:02:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrpDX-0002fd-Bd for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 11:02:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrpDX-0002fT-9b for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 11:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YrpDW-0001dq-Sm for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 11:02:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 May 2015 15:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20545-submit@debbugs.gnu.org id=B20545.14313564926271 (code B ref 20545); Mon, 11 May 2015 15:02:02 +0000 Original-Received: (at 20545) by debbugs.gnu.org; 11 May 2015 15:01:32 +0000 Original-Received: from localhost ([127.0.0.1]:41123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YrpD1-0001d4-Js for submit@debbugs.gnu.org; Mon, 11 May 2015 11:01:32 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:44691) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YrpCz-0001cq-0O for 20545@debbugs.gnu.org; Mon, 11 May 2015 11:01:29 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NO600800XJ3AU00@a-mtaout22.012.net.il> for 20545@debbugs.gnu.org; Mon, 11 May 2015 18:01:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NO6007B7XPXMAB0@a-mtaout22.012.net.il>; Mon, 11 May 2015 18:01:09 +0300 (IDT) In-reply-to: <554FEFFE.7000303@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102663 Archived-At: > Date: Sun, 10 May 2015 16:55:42 -0700 > From: Paul Eggert > > 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 The documentation patch says it's enabled 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. I don't think we should enable this by default, not even in .dir-locals.el. Let users decide whether they want this; as for Emacs, we didn't yet decide this style to be mandatory, so it's too early to force it. > 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. Do we already have a way of displaying ‘..’ on terminals that cannot display them (notably, some TTYs)? If not, we should add that before we install these changes, and those in bug #20385. I don't think we can let doc strings have glyphless characters.