From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#20707: [PROPOSED PATCH] Use curved quoting in C-generated errors Date: Mon, 01 Jun 2015 09:01:08 -0700 Organization: UCLA Computer Science Department Message-ID: <556C81C4.3010107@cs.ucla.edu> References: <20150601104935.19764.qmail@mail.muc.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1433174596 12288 80.91.229.3 (1 Jun 2015 16:03:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2015 16:03:16 +0000 (UTC) To: Alan Mackenzie , 20707@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 01 18:03:05 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 1YzSB4-0007Yt-F7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jun 2015 18:03:02 +0200 Original-Received: from localhost ([::1]:53297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzSB3-0002Go-Ln for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jun 2015 12:03:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzSAB-0000sw-HL for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 12:02:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzSA6-0002Gb-IM for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 12:02:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzSA6-0002GX-FB for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 12:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YzSA6-00039d-3M for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 12:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jun 2015 16:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20707 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20707-submit@debbugs.gnu.org id=B20707.143317448612082 (code B ref 20707); Mon, 01 Jun 2015 16:02:02 +0000 Original-Received: (at 20707) by debbugs.gnu.org; 1 Jun 2015 16:01:26 +0000 Original-Received: from localhost ([127.0.0.1]:36323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzS9V-00038n-9D for submit@debbugs.gnu.org; Mon, 01 Jun 2015 12:01:25 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:39182) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzS9S-00038a-Dz for 20707@debbugs.gnu.org; Mon, 01 Jun 2015 12:01:23 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id C1160A6000F; Mon, 1 Jun 2015 09:01:15 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g3PXYmdgqaCQ; Mon, 1 Jun 2015 09:01:15 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 2263EA6000C; Mon, 1 Jun 2015 09:01:15 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <20150601104935.19764.qmail@mail.muc.de> 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:103439 Archived-At: On 06/01/2015 03:49 AM, Alan Mackenzie wrote: > Currently, we can grep C source code (whether on the command line or > within Emacs), specifically specifying quote characters like " (even if > they have to be escaped). Having just gone through this exercise, I can say that it doesn't work as well as I had hoped. Characters are sometimes escaped, sometimes not, and even something easy like searching for '`' finds many false hits in comments. > OK, there may be some arcane way of specifying these curly quotes Hmm, well, it's not arcane for me. This shell command: grep ‘ *.c generates all .c lines that contain left single quotation mark in a string (after the proposed patch is applied). This is simpler than any shell command to find apostrophe or double-quote or grave accent. > Curly quotes display as ? on my terminal, sometimes inverted. That's not good. What terminal are you using, and why does it not handle UTF-8? What is your operating system and locale settings? If this is a common problem among Emacs developers, I suppose we'll have to come up with a different way.