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 16:51:03 +0200 Message-ID: <87wovcklyg.fsf@gmail.com> References: <20180529073311.EEA09102DA@mailuser.nyi.internal> <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> <87fu20mkbm.fsf@gmail.com> <87602wm3ax.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 1528296756 7494 195.159.176.226 (6 Jun 2018 14:52:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2018 14:52:36 +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 16:52:31 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 1fQZnY-0001nw-PH for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2018 16:52:28 +0200 Original-Received: from localhost ([::1]:52924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQZpf-0001PV-T3 for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2018 10:54:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQZmK-0007Ki-Kn for emacs-devel@gnu.org; Wed, 06 Jun 2018 10:51:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQZmJ-0003JW-US for emacs-devel@gnu.org; Wed, 06 Jun 2018 10:51:12 -0400 Original-Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:51587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQZmG-0003HF-55; Wed, 06 Jun 2018 10:51:08 -0400 Original-Received: by mail-wm0-x22d.google.com with SMTP id r15-v6so12055044wmc.1; Wed, 06 Jun 2018 07:51:07 -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=k3xeISGBYaga0BnR2KvY/xiqZp66rF8Auw/gwGpATdU=; b=aaYKnUCBVSUVMCXSlxTMFL1PnN9DvNS2TDJFdEFb8SnoRXyzghGyJcL6JNrEo9/8v5 348hDAZ0qbzWZtC89NQsEn+JkzQqcG4KDPJy1ncRElegn9wF48CwLOLaB9p479+fTKAF a1jqEP/HYUWPARMYdF/+F7v3948mn5IJEkf0igKj+iCJBDm11J8PFYpqFWUokr6Qm8kM S7EMQNoxoGuFzOc2l+mTx9Jlt7cSux+PJMkf9ocdlxyIziM54P82kW2jb8fIBBeJZ7Dq dfyfpGEjZ/KNt5bQGJcNNm68/avzjqhJT2TIsRd0ay5PgNF4CxrBCq8FrlVuVxd1UUUU NVEA== 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=k3xeISGBYaga0BnR2KvY/xiqZp66rF8Auw/gwGpATdU=; b=MKGumpcGP/pdscdlC+QmtsZM57nq9OjGfCTl7M7WO2AOt7v6XhgfER+FGf+ZjM2dPB 0zqVAQO5Sqo9syhU2YZrHI4Ut2mKmFWx/gXdvthebw0ks17d+UCb+NrGI4IZxV8ripm1 4csPeTOAAfAs9OYl1zu94eCgXG2gwASxKlx8zPF3daSd9TD8HlEuX5aFeyrBaDDGISoE dechAIJddOT2BZQnIpYp8EM2KayUdgW1Vp8jnaolslmtNcn20ZlT4L6t/l2P9U5MfYp8 IWHdBVrNUTUXO804r6DrbTGqk48n6Bwuk5SHgy8oB1V+CRsB2uJbQUJ2mpDnC0doAAZ/ 77ug== X-Gm-Message-State: APt69E0ukm+yYoPpc55a90ji/f0q15Kffg2fuNSFEbuUmqDbXU5NukRe EaDLvUSf144ZlswdROgtfi2JdJh5BbY= X-Google-Smtp-Source: ADUXVKKhdGXAq2g3vWIm5glfOrrgOyL6EA3Bv5yeb5aAzvgbaZ3BoqErF5k1tsz1T7SKad+cCNVKKQ== X-Received: by 2002:a1c:3589:: with SMTP id c131-v6mr2258827wma.160.1528296666450; Wed, 06 Jun 2018 07:51:06 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id h4-v6sm12197236wre.89.2018.06.06.07.51.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jun 2018 07:51:04 -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 "Wed, 6 Jun 2018 10:41:14 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22d 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:226068 Archived-At: Noam Postavsky writes: > On 6 June 2018 at 09:51, Robert Pluim wrote: > >>>> I could always do (eq (char-before) ?() I suppose. >>> >>> That's probably better. But wait! This time you *should* have a backsla= sh: ?\( >> >> That=CA=BCs a matter of style, no? ?( works equally well, but emacs >> convention appears to be ?\( > > Mostly yes, but see also Bug#20852. > I see the documentation changed from 'should' to 'must' as a result of that bug. ?\( it is. > Even worse, it will go backwards through the buffer attempting to find > a sentence that ends at point. > > (with-temp-buffer > (dotimes (i 7) > (dotimes (_ (expt 10 i)) > (insert "Lorem ipsum dolor sit amet, consectetur adipiscing > elit, sed do eiusmod tempor incididunt ut labore et dolore magna > aliqua. Ut enim ad minim veniam, quis nostrud exercitation > ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis > aute irure dolor in reprehenderit in voluptate velit esse cillum > dolore eu fugiat nulla pariatur. Excepteur sint occaecat > cupidatat non proident, sunt in culpa qui officia deserunt mollit > anim id est laborum.")) > (insert " Sentence doesn't end here") > (benchmark 1 '(looking-back (sentence-end))))) > Elapsed time: 0.000000s [3 times] > Elapsed time: 0.023000s > Elapsed time: 0.101000s > Elapsed time: 0.902000s > Elapsed time: 8.872000s OK. Looks like my mental model of 'looking-back' was wrong. I=CA=BCll add the limit. Robert