GNU bug report logs - #54086
Occur should offer more interactive input options

Previous Next

Package: emacs;

Reported by: emacsq <laszlomail <at> protonmail.com>

Date: Mon, 21 Feb 2022 10:37:01 UTC

Severity: normal

Tags: notabug

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: emacsq <laszlomail <at> protonmail.com>
To: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
Subject: Occur should offer more interactive input options
Date: Mon, 21 Feb 2022 10:36:02 +0000
[Message part 1 (text/plain, inline)]
In my experience it is often that I search for something under the cursor, so it
makes sense for occur to pick up the word at point and offer that for search.

Also, if a region is selected occur could offer this as input.

I did these for myself long ago and it's a pretty useful hack which could improve
built in occur too.

So something like this for initial input :

(if (use-region-p)
(buffer-substring (region-beginning) (region-end))
(thing-at-point 'symbol))))))
[Message part 2 (text/html, inline)]

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

Previous Next


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