[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Local values of PC-word-delimiters.
From: |
Michaël Cadilhac |
Subject: |
Local values of PC-word-delimiters. |
Date: |
Sat, 15 Apr 2006 16:05:44 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Hi !
I've a problem I can't solve in a clean way, here.
I want that when `gnus-group-jump-to-group' is called, its
completing-read (PC enabled) uses `:' as PC-word-delimiters.
Easy you say ? Thought so ;-)
I first tried
(add-hook 'gnus-group-mode
(lambda ()
(set (make-local-variable 'PC-word-delimiters) ":")))
But it was no use since we're in the minibuffer when
PC-word-delimiters is read.
I then tried
(defadvice gnus-group-jump-to-group (around dummy-name activate)
(let ((PC-word-delimiters ":"))
ad-do-it))
But since `gnus-group-jump-to-group' uses completing-read in its
`interactive' part, the advice is executed AFTER it.
Do you have any clean solution ?
Thanks.
--
| Michaël `Micha' Cadilhac | Mieux vaut se taire |
| Epita/LRDE Promo 2007 | Que de parler trop fort. |
| http://www.lrde.org/~cadilh_m | -- As de trèfle |
`-- - JID: micha@amessage.be --' - --'
pgpwJt0uZfpsr.pgp
Description: PGP signature
- Local values of PC-word-delimiters.,
Michaël Cadilhac <=