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 Quote Date: Wed, 27 May 2015 17:24:23 +0300 Message-ID: <83382iyu7c.fsf@gnu.org> References: <556457DC.5050301@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 1432737394 1335 80.91.229.3 (27 May 2015 14:36:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 May 2015 14:36:34 +0000 (UTC) Cc: 20545@debbugs.gnu.org, bruce.connor.am@gmail.com To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 27 16:36:23 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 1YxcRR-0003OE-Pu for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 May 2015 16:36:21 +0200 Original-Received: from localhost ([::1]:54232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxcRR-00057O-9h for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 May 2015 10:36:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxcRI-00052D-Eo for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 10:36:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxcRA-0007jx-Uk for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 10:36:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxcRA-0007jJ-KB for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 10:36:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YxcHS-0001Fg-U9 for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 10:26: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: Wed, 27 May 2015 14:26: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: patch Original-Received: via spool by 20545-submit@debbugs.gnu.org id=B20545.14327367154753 (code B ref 20545); Wed, 27 May 2015 14:26:02 +0000 Original-Received: (at 20545) by debbugs.gnu.org; 27 May 2015 14:25:15 +0000 Original-Received: from localhost ([127.0.0.1]:58477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxcGd-0001EV-8m for submit@debbugs.gnu.org; Wed, 27 May 2015 10:25:14 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:35385) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxcGX-0001Dt-7i for 20545@debbugs.gnu.org; Wed, 27 May 2015 10:25:09 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NP000300IG2MN00@a-mtaout22.012.net.il> for 20545@debbugs.gnu.org; Wed, 27 May 2015 17:24:31 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NP0003PXIOVCF90@a-mtaout22.012.net.il>; Wed, 27 May 2015 17:24:31 +0300 (IDT) In-reply-to: <556457DC.5050301@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:103213 Archived-At: > Date: Tue, 26 May 2015 04:24:12 -0700 > From: Paul Eggert > CC: Eli Zaretskii , > Stefan Monnier , > Artur Malabarba > > Attached is a revised patch that should address the comments raised: Thanks. Please allow me a comment about the documentation: > --- a/doc/emacs/modes.texi > +++ b/doc/emacs/modes.texi > @@ -200,6 +200,15 @@ Auto Save mode saves the buffer contents periodically to reduce the > amount of work you can lose in case of a crash. @xref{Auto Save}. > > @item > +@cindex Electric Quote mode > +@cindex mode, Electric Quote > +@findex electric-quote-mode > +Electric Quote mode automatically converts quotation marks. For > +example, it requotes text typed @t{`like this'} to text @t{‘like > +this’}. You can control what kind of text it operates in, and you can > +disable it entirely in individual buffers. @xref{Quotation Marks}. > [...] > --- a/doc/emacs/text.texi > +++ b/doc/emacs/text.texi > @@ -404,6 +405,43 @@ that separates pages (@pxref{Regexps}). The normal value of this > variable is @code{"^\f"}, which matches a formfeed character at the > beginning of a line. > > +@node Quotation Marks > +@section Quotation Marks > +@cindex Quotation marks > +@cindex Electric Quote mode > +@cindex mode, Electric Quote > + One common way to quote is the typewriter convention, which quotes As you see, you have identical index entries in 2 different places. That is generally not useful, because they get converted to something like "foo" and "foo <1>", and the reader will have no way of knowing which one does she want. In this case, I would simply drop the first set of entries (and move the "electric-quote-mode" one to the second set), to where the actual description of this mode lives. There's no need to index a place that just mentions the mode in passing and sends the reader to the real description.