From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31231: Symbol search broken in NEWS and ChangeLogs Date: Sun, 22 Apr 2018 20:13:56 +0300 Message-ID: <83vacjw4dn.fsf@gnu.org> References: <87604kqpji.fsf@mail.linkov.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1524417195 12730 195.159.176.226 (22 Apr 2018 17:13:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Apr 2018 17:13:15 +0000 (UTC) Cc: 31231@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 22 19:13:11 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAIY1-0003Ac-PO for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Apr 2018 19:13:10 +0200 Original-Received: from localhost ([::1]:45006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAIa7-0007EU-Rl for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Apr 2018 13:15:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAIZw-0007B2-Mh for bug-gnu-emacs@gnu.org; Sun, 22 Apr 2018 13:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAIZr-0003PV-Kv for bug-gnu-emacs@gnu.org; Sun, 22 Apr 2018 13:15:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56326) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAIZr-0003PO-Go for bug-gnu-emacs@gnu.org; Sun, 22 Apr 2018 13:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fAIZr-0000Sn-8S for bug-gnu-emacs@gnu.org; Sun, 22 Apr 2018 13:15: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: Sun, 22 Apr 2018 17:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31231-submit@debbugs.gnu.org id=B31231.15244172591701 (code B ref 31231); Sun, 22 Apr 2018 17:15:03 +0000 Original-Received: (at 31231) by debbugs.gnu.org; 22 Apr 2018 17:14:19 +0000 Original-Received: from localhost ([127.0.0.1]:35988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAIZ9-0000RN-8W for submit@debbugs.gnu.org; Sun, 22 Apr 2018 13:14:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAIZ7-0000Qx-Hj for 31231@debbugs.gnu.org; Sun, 22 Apr 2018 13:14:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAIYx-00032K-IP for 31231@debbugs.gnu.org; Sun, 22 Apr 2018 13:14:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAIYx-00032G-EY; Sun, 22 Apr 2018 13:14:07 -0400 Original-Received: from [176.228.60.248] (port=3918 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fAIYw-0000Yi-Qr; Sun, 22 Apr 2018 13:14:07 -0400 In-reply-to: <87604kqpji.fsf@mail.linkov.net> (message from Juri Linkov on Sat, 21 Apr 2018 23:21:05 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:145669 Archived-At: > From: Juri Linkov > Date: Sat, 21 Apr 2018 23:21:05 +0300 > > Symbol search ‘M-s _’ fails to find symbols in NEWS and ChangeLogs where > symbols are quoted by apostrophes whose syntax is word-constituent. These files use modes that are descendants of text-mode, so the notion of a symbol in general makes little sense there. IOW, this is plain text, not a program. > 1. Modify syntax tables to redefine syntax of ‘'’ back to its default > that is punctuation or to expression quote: > > (defvar change-log-mode-syntax-table > (let ((st (make-syntax-table))) > (modify-syntax-entry ?' "' " st) > st) > "Syntax table used while in `change-log-mode'.") > > This solution is not applicable to NEWS files where > text-mode syntax tables are inherited via outline-mode > whose syntax table can't be changed. > > 2. In these files replace apostrophes by “LEFT SINGLE QUOTATION MARK” and > “RIGHT SINGLE QUOTATION MARK” like are used in Info and Help buffers. Thanks, but I don't like any of these 2 alternatives. The first one will get in the way of spell-checking words with an apostrophe, the second one will make it harder to view the files on text terminals that don't support UTF-8. Is this really such a bad problem that it requires us to tweak text-based modes? What happens if you try searching for the symbol as a simple string? do you get many false positives?