From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22248: gnus-article-mode omits apostrophe from isearch string Date: Sun, 07 Feb 2016 16:48:01 +1100 Message-ID: <87d1s9cbqm.fsf@gnus.org> References: <87h9j4g0p2.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454824166 11316 80.91.229.3 (7 Feb 2016 05:49:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2016 05:49:26 +0000 (UTC) Cc: 22248@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 07 06:49:15 2016 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 1aSIDd-0000Ta-MR for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2016 06:49:09 +0100 Original-Received: from localhost ([::1]:59833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSIDd-0002wX-2B for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2016 00:49:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSIDZ-0002wP-1S for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 00:49:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSIDV-0008N4-RT for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 00:49:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSIDV-0008N0-OK for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 00:49:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aSIDV-0000a3-Iy; Sun, 07 Feb 2016 00:49:01 -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: Sun, 07 Feb 2016 05:49:01 +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.14548241122195 (code B ref 22248); Sun, 07 Feb 2016 05:49:01 +0000 Original-Received: (at 22248) by debbugs.gnu.org; 7 Feb 2016 05:48:32 +0000 Original-Received: from localhost ([127.0.0.1]:36294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSID1-0000ZK-Mg for submit@debbugs.gnu.org; Sun, 07 Feb 2016 00:48:31 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:51207) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSICz-0000ZC-Pk for 22248@debbugs.gnu.org; Sun, 07 Feb 2016 00:48:30 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aSICc-0005aN-5x; Sun, 07 Feb 2016 06:48:06 +0100 In-Reply-To: <87h9j4g0p2.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 27 Dec 2015 02:28:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-MailScanner-ID: 1aSICc-0005aN-5x MailScanner-NULL-Check: 1455428887.56386@Y4/PCxpitfHa0mKE3Q1+og 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112598 Archived-At: 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no