all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] master 8b7e2c4: python.el: Fix warnings on looking-back calls missing LIMIT
       [not found] ` <E1Ync3b-0002r5-2h@vcs.savannah.gnu.org>
@ 2015-04-30  6:41   ` Stefan Monnier
  2015-05-11  3:05     ` Fabián Ezequiel Gallina
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2015-04-30  6:41 UTC (permalink / raw
  To: emacs-devel; +Cc: Fabián Ezequiel Gallina

> -        (when (looking-back regexp)
> +        (when (looking-back regexp (point-min))

BTW, I didn't apply this myself when I cleaned up various other
occurrences of the looking-back warning, because I didn't know what
better value to put there than `point-min'.

Having `point-min' here means that we will sometimes stupidly search for
the regexp all the way to point-min, which can introduce
serious inefficiencies.  Of course, that's how the code has always
worked, but the purpose the making the second arg explicit is to call
the attention to this problem.

So, here's the question: is `point-min' really the best we can do here?


        Stefan



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Emacs-diffs] master 8b7e2c4: python.el: Fix warnings on looking-back calls missing LIMIT
  2015-04-30  6:41   ` [Emacs-diffs] master 8b7e2c4: python.el: Fix warnings on looking-back calls missing LIMIT Stefan Monnier
@ 2015-05-11  3:05     ` Fabián Ezequiel Gallina
  0 siblings, 0 replies; 2+ messages in thread
From: Fabián Ezequiel Gallina @ 2015-05-11  3:05 UTC (permalink / raw
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>
> So, here's the question: is `point-min' really the best we can do here?
>

Hola Stefan!


No it's not, the last comint prompt start pos should be better.

Pushed this in e35bf57.

Thanks for raising the question :)


Fabián.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-11  3:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20150430001022.10937.48609@vcs.savannah.gnu.org>
     [not found] ` <E1Ync3b-0002r5-2h@vcs.savannah.gnu.org>
2015-04-30  6:41   ` [Emacs-diffs] master 8b7e2c4: python.el: Fix warnings on looking-back calls missing LIMIT Stefan Monnier
2015-05-11  3:05     ` Fabián Ezequiel Gallina

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.