From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual Date: Wed, 06 Jun 2018 09:43:25 +0200 Message-ID: <87fu20mkbm.fsf@gmail.com> 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> <83tvqh9sqp.fsf@gnu.org> <87lgbtm2q2.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528270939 19774 195.159.176.226 (6 Jun 2018 07:42:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2018 07:42:19 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 06 09:42:14 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 1fQT5C-00051a-D0 for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2018 09:42:14 +0200 Original-Received: from localhost ([::1]:50728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQT7J-00064V-Ls for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2018 03:44:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQT6V-00063N-4t for emacs-devel@gnu.org; Wed, 06 Jun 2018 03:43:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQT6U-00028G-7R for emacs-devel@gnu.org; Wed, 06 Jun 2018 03:43:35 -0400 Original-Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]:43228) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQT6Q-00021d-6M; Wed, 06 Jun 2018 03:43:30 -0400 Original-Received: by mail-wr0-x232.google.com with SMTP id d2-v6so5101254wrm.10; Wed, 06 Jun 2018 00:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=33+z7Vy4QjIPxDWWy+Cq3hQ0VUq93Z1th94QWXgEoYw=; b=foTOCZPk1qYVtKwlFjvti1mySBo+6HViqnzmrG0x2U74ZYu7BIJX+OINRk2xYumHrp i8pOtBA1j5Sp2lA0IedsTukCPtJTdqliPt/QDFXb/AuWj9Iz1BW3hb8OQ7jrUfU4WBis qiqcitHPSyDnfWj/ky9ITBCfDjc543DfvCX5kYZX10yt8ziBXxQWP9LE8cgUJH7kxE2P 3ZL+X1xVamM2ZT+QFhi3o16mZDKhxJPkzfShyNVgwxjyBitNTQgeyqkbkiiHzQWChKDg 1oYMPxlZvfX+wRWwUoZDPKIhW2D01OD3dBqF98U+7lPwSqG3ZZtUFiUPAj2nfmScv2XX ODew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=33+z7Vy4QjIPxDWWy+Cq3hQ0VUq93Z1th94QWXgEoYw=; b=KQ/0dfx4B7VspBOax1tnRmCom5rJR3S4oDrkWVVW3YjPlDFcD+LZwyeFHPwMSL2ho1 HO9joOd+S5pbHiCInUHn/oO28naarcpqDYreyWxDYHMg/qMzdHNLIAJNg5+ON2303Ax/ 0NrWuC5zGl+UW7S/l8bGDInCsm0MKJF596CaE7JbWM/5abFd/TkpNPoXlGIu8socQ1uG 8EcY3H3H3FZ4yZY8CllxEWdqElgTCiGF74adBTFvZ4qGcG5ZOZ7IwJXr0Mb/kVfUHFjX S5sLnEAGUTPGcY9TUtnGR5iLL0QoiPjGFpR4T9ATfkwq/E1jTnkkajlcG7s8UxPFuLnd 5uyw== X-Gm-Message-State: APt69E0xgVdLdbg/xzqZtwf3QtIPxnF4jN9a8eKvkOQZUlAVv0CX2x1r nxgM3XPjsng17wIZH704Ekq2cMtYKlE= X-Google-Smtp-Source: ADUXVKK3ZsAVpDTxPkCJByxbvAwolFONpD3tHAYXHMwTUy91yX6YoGEjTcbtL/2bjhJ3b4EzG31fdQ== X-Received: by 2002:adf:db4a:: with SMTP id f10-v6mr1289917wrj.271.1528271008338; Wed, 06 Jun 2018 00:43:28 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id i46-v6sm48216518wra.36.2018.06.06.00.43.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jun 2018 00:43:27 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Noam Postavsky's message of "Tue, 5 Jun 2018 16:08:40 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::232 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:226055 Archived-At: Noam Postavsky writes: > On 5 June 2018 at 15:51, Robert Pluim wrote: >> Latest version attached. I now limit the skip-syntax-backward to the >> current line. > >> ((char-syntax (char-before)) at bol is '?>' in texinfo mode, which is >> somewhat surprising, since it's '? ' in text mode) > > This is the case in every mode which supports line comments, I think. > >> + (cond >> + ;; parenthesis >> + ((looking-back "\(") > > That "\(" should be just "(". Overenthusiastic backslashitis strikes again. > And I think you'll want to give a limit > to the looking-back calls, otherwise they can keep searching until the > beginning of buffer. ((looking-back "(") should never look at more than one character. I could always do (eq (char-before) ?() I suppose. The regexp produced by (sentence-end) looks like it=CA=BCs fairly well anchored. Besides, I=CA=BCm not searching for an end-of-sentence, I=CA=BCm asking "Am I at end-of-sentence". Robert