Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* gnus-summary-followup-with-original not working (nnheader-parse-naked-head)
@ 2022-05-23  7:35 Angel de Vicente
  2022-05-23 15:28 ` Eric Abrahamsen
  0 siblings, 1 reply; 4+ messages in thread
From: Angel de Vicente @ 2022-05-23  7:35 UTC (permalink / raw)
  To: info-gnus-english

Hello,

I've been using this command for ages, but yesterday I did upgrade my
system, and now it has stopped working. I wonder if anybody has seen
this error and/or has some advice on fixing it.

When using the command gnus-summary-followup-with-original, I now get a
reply buffer without the original mail text, and a message in the
minibuffer that reads:

,----
| save-restriction: Symbol’s function definition is void: nnheader-parse-naked-head
`----

My Emacs and Gnus versions are:

 + GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu) of 2022-04-27
 + Gnus v5.13

Any help appreciated,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/



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

* Re: gnus-summary-followup-with-original not working (nnheader-parse-naked-head)
  2022-05-23  7:35 gnus-summary-followup-with-original not working (nnheader-parse-naked-head) Angel de Vicente
@ 2022-05-23 15:28 ` Eric Abrahamsen
  2022-05-23 17:42   ` Angel de Vicente
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Abrahamsen @ 2022-05-23 15:28 UTC (permalink / raw)
  To: info-gnus-english

Angel de Vicente <angel.vicente.garrido@gmail.com> writes:

> Hello,
>
> I've been using this command for ages, but yesterday I did upgrade my
> system, and now it has stopped working. I wonder if anybody has seen
> this error and/or has some advice on fixing it.
>
> When using the command gnus-summary-followup-with-original, I now get a
> reply buffer without the original mail text, and a message in the
> minibuffer that reads:
>
> ,----
> | save-restriction: Symbol’s function definition is void: nnheader-parse-naked-head
> `----
>
> My Emacs and Gnus versions are:
>
>  + GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu) of 2022-04-27
>  + Gnus v5.13

That's kind of looking like an out-of-date third party package, though
it's hard to be sure. You mention upgrading your system, and Emacs was a
part of that system upgrade, right? (Meaning, you're not running Emacs
from its development repository?)

Try running M-x toggle-debug-on-error and triggering that error again --
that should show us what is calling `nnheader-parse-naked-head'.



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

* Re: gnus-summary-followup-with-original not working (nnheader-parse-naked-head)
  2022-05-23 15:28 ` Eric Abrahamsen
@ 2022-05-23 17:42   ` Angel de Vicente
  2022-05-23 18:18     ` Angel de Vicente
  0 siblings, 1 reply; 4+ messages in thread
From: Angel de Vicente @ 2022-05-23 17:42 UTC (permalink / raw)
  To: info-gnus-english

Hello,

,----
| That's kind of looking like an out-of-date third party package, though
| it's hard to be sure. You mention upgrading your system, and Emacs was a
| part of that system upgrade, right? (Meaning, you're not running Emacs
| from its development repository?)
`----

I'm running the stock Emacs in ArchLinux, not from development.

,----
| Try running M-x toggle-debug-on-error and triggering that error again --
| that should show us what is calling `nnheader-parse-naked-head'.
`----

This is what I get when toggling the debugger, but I'm not very familiar
with Emacs Lisp, so not sure how to continue from here... 

------------

Debugger entered--Lisp error: (void-function nnheader-parse-naked-head)
  (nnheader-parse-naked-head)
  (save-restriction (nnheader-narrow-to-headers) (nnheader-parse-naked-head))
  (save-current-buffer (set-buffer gnus-article-copy) (save-restriction (nnheader-narrow-to-headers) (nnheader-parse-naked-head)))
  (let ((message-reply-buffer gnus-article-copy) (message-reply-headers (save-current-buffer (set-buffer gnus-article-copy) (save-restriction (nnheader-narrow-to-headers) (nnheader-parse-naked-head))))) (message-yank-original) (setq beg (or beg (mark t))))
  (while (setq article (car-safe (prog1 articles (setq articles (cdr articles))))) (if (listp article) (progn (setq yank-string (nth 1 article) article (nth 0 article)))) (let ((wconfig (current-window-configuration))) (unwind-protect (progn (set-buffer gnus-summary-buffer) (gnus-summary-select-article nil nil nil article) (gnus-summary-remove-process-mark article)) (set-window-configuration wconfig))) (gnus-copy-article-buffer nil yank-string) (let ((message-reply-buffer gnus-article-copy) (message-reply-headers (save-current-buffer (set-buffer gnus-article-copy) (save-restriction (nnheader-narrow-to-headers) (nnheader-parse-naked-head))))) (message-yank-original) (setq beg (or beg (mark t)))) (if articles (progn (insert "\n"))))
  (let (beg article yank-string) (message-goto-body) (while (setq article (car-safe (prog1 articles (setq articles (cdr articles))))) (if (listp article) (progn (setq yank-string (nth 1 article) article (nth 0 article)))) (let ((wconfig (current-window-configuration))) (unwind-protect (progn (set-buffer gnus-summary-buffer) (gnus-summary-select-article nil nil nil article) (gnus-summary-remove-process-mark article)) (set-window-configuration wconfig))) (gnus-copy-article-buffer nil yank-string) (let ((message-reply-buffer gnus-article-copy) (message-reply-headers (save-current-buffer (set-buffer gnus-article-copy) (save-restriction (nnheader-narrow-to-headers) (nnheader-parse-naked-head))))) (message-yank-original) (setq beg (or beg (mark t)))) (if articles (progn (insert "\n")))) (push-mark) (message-goto-body) (insert "\n\n") (message-goto-body))
  gnus-inews-yank-articles((19716))
  gnus-post-news(nil "gmane.emacs.gnus.user" [19716 "Re: gnus-summary-followup-with-original not workin..." "Eric Abrahamsen <eric@ericabrahamsen.net>" #("Mon, 23 May 2022 08:28:10 -0700" 0 1 (gnus-time (25227 43018))) "<87tu9gjmk5.fsf@ericabrahamsen.net>" "<87o7zok8f7.fsf@gmail.com>" 4921 31 "news.gmane.io gmane.emacs.gnus.user:19716" nil] "*Article gmane.emacs.gnus.user*" (19716) nil nil)
  gnus-summary-followup((19716) nil)
  gnus-summary-followup-with-original(nil)
  funcall-interactively(gnus-summary-followup-with-original nil)
  call-interactively(gnus-summary-followup-with-original nil nil)
  command-execute(gnus-summary-followup-with-original)

-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/



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

* Re: gnus-summary-followup-with-original not working (nnheader-parse-naked-head)
  2022-05-23 17:42   ` Angel de Vicente
@ 2022-05-23 18:18     ` Angel de Vicente
  0 siblings, 0 replies; 4+ messages in thread
From: Angel de Vicente @ 2022-05-23 18:18 UTC (permalink / raw)
  To: info-gnus-english

Hello,

Angel de Vicente <angel.vicente.garrido@gmail.com> writes:

> This is what I get when toggling the debugger, but I'm not very
> familiar with Emacs Lisp, so not sure how to continue from here...

OK, false alarm, the problem was with a custmization I wrote in .gnus.el
in my home directory (I don't like that when you reply to a mail, the
point goes to the beginning of the original message, I want it at the
beginning of the whole message).

Searching in the Emacs repository I found that the
nnheader-parse-naked-head function was removed from nnheader.el on Sep
5, 2020, so I guess I didn't update Emacs for almost two years !!!

All good now. Thanks for your help,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/



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

end of thread, other threads:[~2022-05-23 18:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23  7:35 gnus-summary-followup-with-original not working (nnheader-parse-naked-head) Angel de Vicente
2022-05-23 15:28 ` Eric Abrahamsen
2022-05-23 17:42   ` Angel de Vicente
2022-05-23 18:18     ` Angel de Vicente

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).