New answers tagged

1 vote

query-replace: ignore events not binded in query-replace-map

Try this ... (defvar my-do-nothing-map (let ((map (make-keymap))) (set-char-table-range (nth 1 map) t 'ignore) map)) (set-keymap-parent query-replace-map my-do-nothing-map)
mxnt's user avatar
  • 51
0 votes

Build a "with-query-replace-description" macro

I've been successfully using this solution for quite some time now: (defmacro with-interactive-tasks-explanation (MESSAGE &rest body) "It allows displaying, in a dedicated buffer resized to ...
Gabriele Nicolardi's user avatar
0 votes

Temporary Inhibition of Mouse Events in Windows During Menu Opening

Probably overkill for your situation, but you might consider installing package disable-mouse and toggling global-disable-mouse-mode as needed.
Phil Hudson's user avatar
  • 1,731
0 votes
Accepted

Temporary Inhibition of Mouse Events in Windows During Menu Opening

The workaround I found is to intercept and "unread" the mouse-1 event using this macro: (defmacro with-ignore-mouse-events (&rest body) "Macro to ignore mouse events before ...
Gabriele Nicolardi's user avatar
0 votes
Accepted

query-replace bug?

It was indeed a bug. I believe it will be fixed in Emacs version 29.2.
Gabriele Nicolardi's user avatar
0 votes

How to count regexp in a string and use that number in replacement?

I know the question is old, and that it asks if it's possible using query replace (although it does not look like anything has to get replaced), but I would still like to add a simple (straightforward)...
dalanicolai's user avatar
  • 7,735

Top 50 recent answers are included