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: Tue, 05 Jun 2018 18:07:42 +0300 Message-ID: <83tvqh9sqp.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> <8336y2czrp.fsf@gnu.org> <87zi0a5v4z.fsf@gmail.com> 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 1528211147 32344 195.159.176.226 (5 Jun 2018 15:05:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2018 15:05:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 05 17:05:43 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 1fQDWf-00082h-Cl for ged-emacs-devel@m.gmane.org; Tue, 05 Jun 2018 17:05:33 +0200 Original-Received: from localhost ([::1]:47400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQDYm-0004Kq-Fz for ged-emacs-devel@m.gmane.org; Tue, 05 Jun 2018 11:07:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQDYe-0004Jx-6R for emacs-devel@gnu.org; Tue, 05 Jun 2018 11:07:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQDYb-0005lz-29 for emacs-devel@gnu.org; Tue, 05 Jun 2018 11:07:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQDYa-0005ls-Td; Tue, 05 Jun 2018 11:07:32 -0400 Original-Received: from [176.228.60.248] (port=3887 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fQDYa-0001S4-Cc; Tue, 05 Jun 2018 11:07:32 -0400 In-reply-to: <87zi0a5v4z.fsf@gmail.com> (message from Robert Pluim on Mon, 04 Jun 2018 19:17:16 +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:226032 Archived-At: > From: Robert Pluim > Cc: emacs-devel@gnu.org > Date: Mon, 04 Jun 2018 19:17:16 +0200 > > >> + ;; beginning of sentence > >> + ((looking-back " ") > >> + "@xref{") > > > > This misses the beginning of a sentence after a newline, right? > > Hmm. (looking-back (sentence-end)) perhaps? Or if thatʼs overkill > "\\(?: \\|\\.\n\\)" sentence-end sounds fine to me. > >> + ;; 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? > > If I have text like this: Sorry, I missed the skip-syntax-backward call. > > This will need a NEWS entry. > > Of course. Something like this, which will also go in the doc string. > > ** Texinfo > *** New function for inserting @pxref, @xref, or @ref commands This should end with a period. > The function 'texinfo-insert-dwim-@ref', bound to 'C-c C-c r' by > default, inserts one of the three types of references based on the text > surrounding point, namely @pxref after a parenthesis, @xref at the > start of a sentence, else @ref. OK. Thanks.