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#20385: [PROPOSED PATCH] Support quoting 'like this' in doc strings Date: Thu, 23 Apr 2015 09:30:10 +0300 Message-ID: <837ft32w7h.fsf@gnu.org> References: <1429555155-4695-1-git-send-email-eggert@cs.ucla.edu> <5535974D.9050207@cs.ucla.edu> <5535C7F3.7020107@cs.ucla.edu> <83618p5y9w.fsf@gnu.org> <553830AA.9040601@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 1429770685 22190 80.91.229.3 (23 Apr 2015 06:31:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Apr 2015 06:31:25 +0000 (UTC) Cc: 20385@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 23 08:31:14 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 1YlAfI-0003B0-K0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Apr 2015 08:31:12 +0200 Original-Received: from localhost ([::1]:38333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlAfI-00075M-2V for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Apr 2015 02:31:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlAfD-00071U-Ra for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 02:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlAf9-0004cJ-07 for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 02:31:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlAf8-0004cD-Ly for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 02:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YlAf7-0008BH-Pu for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 02:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Apr 2015 06:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20385-submit@debbugs.gnu.org id=B20385.142977062931392 (code B ref 20385); Thu, 23 Apr 2015 06:31:01 +0000 Original-Received: (at 20385) by debbugs.gnu.org; 23 Apr 2015 06:30:29 +0000 Original-Received: from localhost ([127.0.0.1]:36996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlAeW-0008A2-0q for submit@debbugs.gnu.org; Thu, 23 Apr 2015 02:30:25 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:56160) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlAeP-00089M-Qi for 20385@debbugs.gnu.org; Thu, 23 Apr 2015 02:30:19 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NN800G00Y2A5F00@a-mtaout22.012.net.il> for 20385@debbugs.gnu.org; Thu, 23 Apr 2015 09:30:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NN800FJ7Y2AZE40@a-mtaout22.012.net.il>; Thu, 23 Apr 2015 09:30:10 +0300 (IDT) In-reply-to: <553830AA.9040601@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:101902 Archived-At: > Date: Wed, 22 Apr 2015 16:37:14 -0700 > From: Paul Eggert > CC: 20385@debbugs.gnu.org > > Eli Zaretskii wrote: > > > So if we want this to become our default, we need changes in > > ispell.el, to replace ’ with ' before we sent it to the speller. > > Although a change like that might make sense, it appears to go beyond what's > needed for doc strings. The suggestion to which I responded was to use https://github.com/gareth-rees/smart-quotes, which is a minor mode that is not limited to doc strings. Moreover, it is not limited to quoting, AFAIU, it will also replace lone apostrophes with ’. > I was thinking of something more modest: change Emacs > so that if you're editing an Elisp or C string, then when you type `like-this' > it's by default changed to ‘like-this’. I don't think you describe smart-quotes, you describe some other similar feature. I was talking about smart-quotes, and especially about making it default in text modes. > Or were you thinking about spell-checking doc strings? If you are considering a feature similar to smart-quotes, especially if it's not limited to quoting, then yes, spell-checking doc strings will hit the same problem. > If so, I don't see how changing the quoting style affects how the > spell-checker works. It wouldn't affect the way I spell-check code, > anyway. Could you give an example? If this is limited to quoting, I don't think it will affect spell-checking. But that's not what I was talking about.