14/02/11 21:15, Lars Ingebrigtsen
> Antoine Levitt <antoine.lev...@gmail.com> writes:
>
>> The code is called from gnus-article-prepare-hook. There doesn't seem to
>> be any other hook available where the article would be pretty enough for
>> bbdb to do its stuff. Old manuals ( for instance
>> http://www.chemie.fu-berlin.de/chemnet/use/info/gnus/gnus_6.html )
>> referred to gnus-article-display-hook, what happened to it? What hook
>> should BBDB call to get the final view of an article?
>
> There's `gnus-part-display-hook', which might be the right place to do
> this, although I'm not quite sure...

Nope, same bug.

The following certainly does the trick, and looks like a more reasonable
place for gnus-article-prepare-hook (docstring says "after an article
has been prepared in the article buffer.") However, I'm not sure whether
or not it breaks other code that depends on its behaviour.

diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 3e16308..77bea9b 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -4636,6 +4636,7 @@ If ALL-HEADERS is non-nil, no headers are hidden."
              (forward-line -1))
            (set-window-point (get-buffer-window (current-buffer)) (point))
            (gnus-configure-windows 'article)
+           (gnus-run-hooks 'gnus-article-prepare-hook)
            t))))))
 
 ;;;###autoload
@@ -4654,7 +4655,7 @@ If ALL-HEADERS is non-nil, no headers are hidden."
     (gnus-run-hooks 'gnus-tmp-internal-hook)
     (when gnus-display-mime-function
       (funcall gnus-display-mime-function))
-    (gnus-run-hooks 'gnus-article-prepare-hook)))
+    ))
 
 ;;;
 ;;; Gnus Sticky Article Mode


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to