|
From: | Štěpán Němec |
Subject: | Re: Switching smtpmail-debug-info |
Date: | Wed, 29 Dec 2010 11:54:12 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Cecil Westerhof <Cecil@decebal.nl> writes: > Sometimes I want to see the info about the communication with the > SMTP-server. But I find it not very handy to remember the variable to > set or reset. That is why I made the folowing function: > (defun dcbl-switch-smtp-debug-info () > (interactive) > (if smtpmail-debug-info > (progn > (setq smtpmail-debug-info nil) > (message "disabled smtp-debug-info")) > (setq smtpmail-debug-info t) > (message "enabled smtp-debug-info"))) a.k.a. (defun dcbl-switch-smtp-debug-info () (interactive) (setq smtpmail-debug-info (not smtpmail-debug-info)) (message "%sabled smtp-debug-info" (if smtpmail-debug-info "en" "dis"))) Štěpán
[Prev in Thread] | Current Thread | [Next in Thread] |