On 15 August 2022 at 23:26 +03, "Dirk-Jan C. Binnema" <
dj...@djcbsoftware.nl> wrote:
> On Saturday Aug 13 2022, Christophe Troestler wrote:
>
>> With mu 6fdc20ae, clicking or pressing ENTER on pdf attachments (gnus-article-press-button) always displays “user-error: [mu4e] No message at point”. It works for other types of attachments (say text or HTML ones). Saving PDF attachments also work.
>
> That seems to be a different issue(?) Can't reproduce that in any case.
I upgraded to 1.8.9 and the issue still persists.
I started to track it and the problem comes from `gnus-mm-display-part`. In that function `(mm-handle-displayed-p handle)` — where `handle` comes from `(get-text-property (point) 'gnus-data)` — returns `nil` instead of a “true” value (if I change it to `t`, the PDF program is launched on the appropriate file).
The definition of
#+begin_src elisp
(defun mm-handle-displayed-p (handle)
"Say whether HANDLE is displayed or not."
(mm-handle-undisplayer handle))
#+end_src
and
#+begin_src elisp
(defmacro mm-handle-undisplayer (handle)
`(nth 3 ,handle))
#+begin_src elisp
Here is an example of `handle` (using `(get-text-property (point) 'gnus-data)` on the PDF button):
#+begin_src elisp
(#<buffer *mm*-945238> ("application/pdf") base64 nil ("attachment" (filename . "320625117357-4068610069-ticket.pdf")) nil nil nil)
#+begin_src elisp
> If you can (with 1.8.9) please file a ticket with a backtrace, thanks!
There is no backtrace even with “Enter debugger on error”.
Kind regards,
C.