all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Search and replace speed is mode dependent
@ 2019-02-10 12:00 Dov Grobgeld
  0 siblings, 0 replies; only message in thread
From: Dov Grobgeld @ 2019-02-10 12:00 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

I wonder if there is any work around (except toggling back and forth to
fundamental-mode) for search and replacement speed? E.g. for a 2900 line
long html file in web-mode, doing a string based search and replace that
touches almost every line takes about 8s on my i7-8700k box. A subsequent
undo is even slower (20s?). On the other hand, if I remember to switch to
fundamental-mode before doing the the search and replace it is
instantaneous, and so is undo. Another operation that suffer from the same
bad mode interaction is apply-macro-to-region-lines.

Is there any workaround for this? Is this a known issue?

My emacs version is:

GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.23.2) of
2018-08-13

Regards,

[-- Attachment #2: Type: text/html, Size: 1602 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-10 12:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-10 12:00 Search and replace speed is mode dependent Dov Grobgeld

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.