From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16292: 24.3.50; info docs now contain single straight quotes instead of `' Date: Sat, 3 May 2014 06:50:50 -0700 (PDT) Message-ID: <8ee4ecec-b628-4288-bf29-e6a994895cac@default> References: <20131229220810.GF7972@boo.workgroup>> <8338l4w5pj.fsf@gnu.org>> > <83ha9jv5lh.fsf@gnu.org>> > <838uuvum9n.fsf@gnu.org>> > <8338l2v1tn.fsf@gnu.org>> <52C9BA68.7050703@cs.ucla.edu>> <83fvp2tcqx.fsf@gnu.org>> <52C9BCBF.7050904@cs.ucla.edu>> <83eh4mtc52.fsf@gnu.org>> <52C9E53D.8070106@cs.ucla.edu>> <838uutu5mu.fsf@gnu.org>> <52CA3FB9.30509@cs.ucla.edu>> <834n5ht7bz.fsf@gnu.org>> <52CB5517.4030502@cs.ucla.edu>> <83lhyssawf.fsf@gnu.org>> > <83eh0c11mt.fsf@gnu.org>> <9a37ee13-e1cb-4ac5-8241-85feed5370fb@default> <87ha5743lk.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1399125152 20448 80.91.229.3 (3 May 2014 13:52:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2014 13:52:32 +0000 (UTC) Cc: eggert@cs.ucla.edu, grfz@gmx.de, 16292@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 03 15:52:24 2014 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 1WgaMZ-0006KX-GO for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 May 2014 15:52:23 +0200 Original-Received: from localhost ([::1]:49078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgaMZ-0007Rb-4J for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 May 2014 09:52:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgaMO-0007RU-0o for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 09:52:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgaMF-0001b1-73 for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 09:52:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgaMF-0001ax-3j for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 09:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WgaME-0001bM-6U for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 09:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 May 2014 13:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16292 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16292-submit@debbugs.gnu.org id=B16292.13991250646064 (code B ref 16292); Sat, 03 May 2014 13:52:02 +0000 Original-Received: (at 16292) by debbugs.gnu.org; 3 May 2014 13:51:04 +0000 Original-Received: from localhost ([127.0.0.1]:49217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgaLH-0001Zk-8H for submit@debbugs.gnu.org; Sat, 03 May 2014 09:51:03 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:34637) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgaLE-0001Z7-A2 for 16292@debbugs.gnu.org; Sat, 03 May 2014 09:51:01 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s43DoqFg019057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 3 May 2014 13:50:53 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s43DopMS003285 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 3 May 2014 13:50:52 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s43DooIb022737; Sat, 3 May 2014 13:50:50 GMT In-Reply-To: <87ha5743lk.fsf@mail.jurta.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] 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:88587 Archived-At: > > I want something simple, evaluable from Info mode. I don't > > want to have to widen the buffer or change the mode or jump > > through any other hoops. A function or a variable whose value > > lets Lisp code know whether `...' or '...' quoting is in effect. >=20 > (save-excursion > (save-restriction > (widen) > (goto-char (point-min)) > (if (and (re-search-forward > "makeinfo[ \n]version[ \n]\\([0-9]+.[0-9]+\\)" > (line-beginning-position 4) t) > (version< (match-string 1) "5.0")) > 'backquote > (if (string-match-p "utf-8" > (symbol-name buffer-file-coding-system)) > 'curly-quote > 'quote)))) Thanks. I guess that's as good as it's going to get. I was hoping for a file/buffer local variable or something. This is the kind of hoop-jumping I was talking about, but I do appreciate your having coded it up. This would need to be consulted each time an Info node is fontified. Yes, the search can be done instead just whenever the Info file is changed, and then saved for consultation upon node fontifying for the same file. (Still, I would hope for something simpler.)