From: Robert Pluim <rpluim@gmail.com>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual
Date: Wed, 06 Jun 2018 16:51:03 +0200 [thread overview]
Message-ID: <87wovcklyg.fsf@gmail.com> (raw)
In-Reply-To: <CAM-tV-_eiANVDsc0bY8WAv9y1SDubJXDx_dxvRN=xWby-tM8dw@mail.gmail.com> (Noam Postavsky's message of "Wed, 6 Jun 2018 10:41:14 -0400")
Noam Postavsky <npostavs@gmail.com> writes:
> On 6 June 2018 at 09:51, Robert Pluim <rpluim@gmail.com> wrote:
>
>>>> I could always do (eq (char-before) ?() I suppose.
>>>
>>> That's probably better. But wait! This time you *should* have a backslash: ?\(
>>
>> Thatʼs 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ʼll add
the limit.
Robert
prev parent reply other threads:[~2018-06-06 14:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180529073311.EEA09102DA@mailuser.nyi.internal>
[not found] ` <876036hn2e.fsf@gmail.com>
[not found] ` <87tvqqd7rp.fsf@gmail.com>
[not found] ` <87r2lufvo9.fsf@gmail.com>
[not found] ` <83r2luv28h.fsf@gnu.org>
[not found] ` <87a7sib7ty.fsf@gmail.com>
[not found] ` <83in75vp8l.fsf@gnu.org>
[not found] ` <87wovkyv6l.fsf@gmail.com>
[not found] ` <83tvqmga79.fsf@gnu.org>
[not found] ` <87h8mmu6jp.fsf@gmail.com>
[not found] ` <83k1rifyqo.fsf@gnu.org>
[not found] ` <87y3fyskns.fsf@gmail.com>
2018-06-01 13:42 ` bug#31636: 27.0.50; lockfile syntax searchable from info manual Robert Pluim
2018-06-04 9:41 ` Robert Pluim
2018-06-04 10:39 ` Andreas Schwab
2018-06-04 14:02 ` Robert Pluim
2018-06-04 16:06 ` Eli Zaretskii
2018-06-04 15:55 ` Eli Zaretskii
2018-06-04 17:17 ` Robert Pluim
2018-06-05 15:07 ` Eli Zaretskii
2018-06-05 19:51 ` Robert Pluim
2018-06-05 20:08 ` Noam Postavsky
2018-06-06 7:43 ` Robert Pluim
2018-06-06 13:13 ` Noam Postavsky
2018-06-06 13:51 ` Robert Pluim
2018-06-06 14:41 ` Noam Postavsky
2018-06-06 14:51 ` Robert Pluim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wovcklyg.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=npostavs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).