From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#20385: [PROPOSED PATCH] Support quoting 'like this' in doc strings Date: 23 Apr 2015 12:27:20 -0000 Organization: muc.de e.V. Message-ID: <20150423122720.17494.qmail@mail.muc.de> References: <1429555155-4695-1-git-send-email-eggert@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1429792111 16922 80.91.229.3 (23 Apr 2015 12:28:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Apr 2015 12:28:31 +0000 (UTC) Cc: Paul Eggert To: 20385@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 23 14:28:19 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 1YlGEl-0005t8-TA for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Apr 2015 14:28:12 +0200 Original-Received: from localhost ([::1]:39974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlGEl-0007K7-8R for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Apr 2015 08:28:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlGEh-0007K0-JC for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 08:28:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlGEd-00035T-Ex for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 08:28:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlGEd-00035O-BR for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 08:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YlGEc-0002sR-Oz for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 08:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Apr 2015 12:28:02 +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.142979204511016 (code B ref 20385); Thu, 23 Apr 2015 12:28:02 +0000 Original-Received: (at 20385) by debbugs.gnu.org; 23 Apr 2015 12:27:25 +0000 Original-Received: from localhost ([127.0.0.1]:37204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlGE0-0002rb-Kr for submit@debbugs.gnu.org; Thu, 23 Apr 2015 08:27:25 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:58431 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlGDx-0002rR-NX for 20385@debbugs.gnu.org; Thu, 23 Apr 2015 08:27:22 -0400 Original-Received: (qmail 17495 invoked by uid 3782); 23 Apr 2015 12:27:20 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (FreeBSD/10.1-RELEASE (amd64)) 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:101924 Archived-At: In article you wrote: > 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. 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?. No. Please don't do this. I hate it when proprietary programs pull this trick. If you type a self-inserting character, that is what you should get. Not all uses of ` and ' in strings are for quoting. Also there are complicated repercussions for searching and matching, and probably quite a few other things, too. -- Alan Mackenzie (Nuremberg, Germany).