From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual Date: Mon, 04 Jun 2018 18:55:22 +0300 Message-ID: <8336y2czrp.fsf@gnu.org> References: <20180529073311.EEA09102DA@mailuser.nyi.internal> <876036hn2e.fsf@gmail.com> <87tvqqd7rp.fsf@gmail.com> <87r2lufvo9.fsf@gmail.com> <83r2luv28h.fsf@gnu.org> <87a7sib7ty.fsf@gmail.com> <83in75vp8l.fsf@gnu.org> <87wovkyv6l.fsf@gmail.com> <83tvqmga79.fsf@gnu.org> <87h8mmu6jp.fsf@gmail.com> <83k1rifyqo.fsf@gnu.org> <87y3fyskns.fsf@gmail.com> <87tvqmsjww.fsf@gmail.com> <87bmcqlwhn.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1528128216 5668 195.159.176.226 (4 Jun 2018 16:03:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2018 16:03:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 04 18:03:32 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fPrxB-0001LL-9G for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2018 18:03:29 +0200 Original-Received: from localhost ([::1]:40640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPrzI-0005co-7e for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2018 12:05:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPrpH-0006Qe-S3 for emacs-devel@gnu.org; Mon, 04 Jun 2018 11:55:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPrpD-0007Dg-QL for emacs-devel@gnu.org; Mon, 04 Jun 2018 11:55:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPrpD-0007DD-Jq; Mon, 04 Jun 2018 11:55:15 -0400 Original-Received: from [176.228.60.248] (port=2220 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fPrpC-0006s8-78; Mon, 04 Jun 2018 11:55:15 -0400 In-reply-to: <87bmcqlwhn.fsf@gmail.com> (message from Robert Pluim on Mon, 04 Jun 2018 11:41:24 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226001 Archived-At: > From: Robert Pluim > Cc: emacs-devel@gnu.org > Date: Mon, 04 Jun 2018 11:41:24 +0200 > > + ;; beginning of sentence > + ((looking-back " ") > + "@xref{") This misses the beginning of a sentence after a newline, right? > + ;; bol or eol > + ((looking-at "^\\|$") > + "@ref{") > + ;; inside word > + ((not (eq (char-syntax (char-after)) ? )) > + (skip-syntax-backward "^ ") > + "@ref{") > + ;; everything else > + (t > + "@ref{")) > + _ "}") Why did you need the first 2 cases that yield @ref? This will need a NEWS entry. Thanks.