From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22248: gnus-article-mode omits apostrophe from isearch string Date: Thu, 26 Jan 2017 23:26:18 +0100 Message-ID: <87poj9a25x.fsf@gnus.org> References: <87h9j4g0p2.fsf@mail.linkov.net> <87d1s9cbqm.fsf@gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485470007 481 195.159.176.226 (26 Jan 2017 22:33:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 22:33:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 22248@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 26 23:33:23 2017 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 1cWsbV-0007kL-LP for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 23:33:17 +0100 Original-Received: from localhost ([::1]:41500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWsbb-0005wG-1C for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 17:33:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWsbL-0005tL-6r for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:33:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWsbG-0005GT-Lt for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:33:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48218) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWsbG-0005GO-IB for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 17:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWsbG-00073r-BL; Thu, 26 Jan 2017 17:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 26 Jan 2017 22:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22248 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 22248-submit@debbugs.gnu.org id=B22248.148546992627025 (code B ref 22248); Thu, 26 Jan 2017 22:33:02 +0000 Original-Received: (at 22248) by debbugs.gnu.org; 26 Jan 2017 22:32:06 +0000 Original-Received: from localhost ([127.0.0.1]:46392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWsaI-00070Z-OK for submit@debbugs.gnu.org; Thu, 26 Jan 2017 17:32:06 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:59561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWsaC-000701-Je for 22248@debbugs.gnu.org; Thu, 26 Jan 2017 17:32:00 -0500 Original-Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWsa5-0004ND-WE; Thu, 26 Jan 2017 23:31:55 +0100 In-Reply-To: <87d1s9cbqm.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 07 Feb 2016 16:48:01 +1100") 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:128619 Archived-At: Lars Ingebrigtsen writes: > Juri Linkov writes: > >> Trying to put an expression like (setq var 'foo) into the isearch ring >> by moving point at its beginning and typing C-s C-w C-w C-w ... >> doesn't add apostrophe in Gnus because gnus-article-mode modifies >> syntax of ' to whitespace: >> >> (defvar gnus-article-mode-syntax-table >> (let ((table (copy-syntax-table text-mode-syntax-table))) >> ;; make M-. in article buffers work for `foo' strings >> (modify-syntax-entry ?' " " table) >> (modify-syntax-entry ?` " " table) >> >> and lax-whitespace search together with isearch-yank-word-or-char >> squeeze apostrophe in a sequence of space characters. >> >> One solution is to modify syntax of ' and ` in gnus-article-mode-syntax-table >> to syntax discussed in bug#22238, i.e. not whitespace and not part >> of a symbol, still allowing M-. in article buffers work for `foo' strings, >> and allowing isearch to search in other buffers the same string yanked >> to the search ring from Gnus. > > Sounds good. Could you supply a patch for doing that? Did you have a look at doing this? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no