GNU bug report logs - #23569
thing-at-point, source of slowness

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Wed, 18 May 2016 07:57:02 UTC

Severity: wishlist

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: thing-at-point, source of slowness
Date: Wed, 18 May 2016 09:59:41 +0200
[Message part 1 (text/plain, inline)]
in thingatpt.el:

;; The function bounds-of-thing-at-point finds the beginning and end
;; positions by moving first forward to the end of the "thing", and then
;; backwards to the beginning.

;;;;;;;

Also *bounds-of-thing-at-point jumps to-and-fro, doing some sanity check 
every time.

Suggest to jump ***first *at the beginning, as backward move might be slow.

Avoid to-and-fro, deliver tests instead, so first try will be reliable 
or return nil.
*
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.