all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ffap-foo-at-bar-prefix of .emacs overridden
       [not found] <001b01c3928e$bd6e7550$6400000a@shakti>
@ 2003-10-14 23:59 ` Dan Jacobson
  2003-10-15  9:20   ` Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2003-10-14 23:59 UTC (permalink / raw)
  Cc: bug-gnu-emacs

>> I checked this out, and ffap seems to do fine for me both inside and
>> outside gnus.
>> 
>> Is there a chance that I need some special customization in order to
>> reproduce this bug?

OK, lets say it is irreproducible.
Let's just concentrate on why the user cannot do
(setq ffap-foo-at-bar-prefix "mailto") in .emacs or .gnus.el, and have
its value retained in a gnus *Article* buffer.

Examine its value in an *Article* buffer, and you'll see it has been overridden.

I saw some code in ffap.el that looked like it should use defvar
instead of setq.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ffap-foo-at-bar-prefix of .emacs overridden
  2003-10-14 23:59 ` ffap-foo-at-bar-prefix of .emacs overridden Dan Jacobson
@ 2003-10-15  9:20   ` Reiner Steib
  0 siblings, 0 replies; 2+ messages in thread
From: Reiner Steib @ 2003-10-15  9:20 UTC (permalink / raw)


On Wed, Oct 15 2003, Dan Jacobson wrote:

> Let's just concentrate on why the user cannot do
> (setq ffap-foo-at-bar-prefix "mailto") in .emacs or .gnus.el, and have
> its value retained in a gnus *Article* buffer.
>
> Examine its value in an *Article* buffer, and you'll see it has been
> overridden.
>
> I saw some code in ffap.el that looked like it should use defvar
> instead of setq.

In `ffap-bindings' there's...

     (add-hook 'gnus-summary-mode-hook 'ffap-gnus-hook)
     (add-hook 'gnus-article-mode-hook 'ffap-gnus-hook)

... and in `ffap-gnus-hook':

  (set (make-local-variable 'ffap-foo-at-bar-prefix) "news") ; message-id's

Does it help to remove the hook...

     (remove-hook 'gnus-summary-mode-hook 'ffap-gnus-hook)
     (remove-hook 'gnus-article-mode-hook 'ffap-gnus-hook)

... _after_ calling `ffap-bindings'?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-15  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <001b01c3928e$bd6e7550$6400000a@shakti>
2003-10-14 23:59 ` ffap-foo-at-bar-prefix of .emacs overridden Dan Jacobson
2003-10-15  9:20   ` Reiner Steib

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.