Uwe Brauer via "Announcements and discussions for GNUS, the GNU Emacs
Usenet newsreader (in English)" <info-gnus-english@gnu.org> writes:

> But this 
>
>
>     (advice-add 'gnus-article-followup-with-original :before 
> #'check-my-to-field)
>     (advice-add 'gnus-summary-followup-with-original :before 
> #'check-my-to-field)
>  [...]
>  (defun my-toggle-bcc-check ()
>    "Function that toggles between checking and not checking the `BBC' field."
>    (interactive)
>    (make-repeat-command 'my-toggle-bcc-check
>                         '(my-turn-bcc-check-on
>                           my-turn-bcc-check-off)))
>  
> Does not. Any ideas? 

Most nadvice pieces, including :before advice pieces, are passed the
arguments that are passed to the advised function.
`gnus-summary-followup-with-original' is always called with at least one
argument.  You can just throw all arguments away:
(defun my-toggle-bcc-check (&rest _) ...).  Was it that?

But my remark was hinting at something different, actually: _instead_ of
advising, in which way ever, would it be possible to use a hook instead?

Then, probably a different approach would be the result: something that
asks and barfs before sending, probably.  Just an idea, your approach is
fine as well.


Michael.



  • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
    • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
      • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
        • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
        • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
          • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
            • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
            • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
              • ... Christoph Groth
                • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
                • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
                • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
    • ... James Thomas
      • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
        • ... James Thomas
          • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)

Reply via email to