Subject: bug#14405: 24.3.50; read-regexp-defaults-function

From: Juri Linkov <[email-masked]>
Date: Wed, 25 Dec 2013 22:56:30 +0200

> I depend on occur and rgrep.  For occur, I want the symbol delimiters.
> For rgrep, a mere tag at point will do.  If one were to use multi-occur
> from Buffer menu mode, a symbol match doesn't make sense.

You can use `this-command' for different defaults of different commands
in a customized function like you wrote in the docstring that is
still preserved in `read-regexp-defaults-function'.