From: "Jeffrey J. Kosowsky" <gnuemacs@kosowsky.org>
To: bug-gnu-emacs@gnu.org
Subject: Bug/sloppy coding in smtpmail.el
Date: Tue, 01 Jan 2008 23:54:36 -0500 [thread overview]
Message-ID: <18299.6412.939879.741345@consult.pretender> (raw)
smtpmail.el uses defvar to define one user variable
(smtpmail-queue-index) in terms of two other user-defined variable
(smtpmail-queue-dir and smtpmail-queue-index-file).
Particularly, given the naming convention, most users would
rationally think that defining the directory (named logically as
smtpmail-queue-dir) and the index file (named logically
smtpmail-queue-index-file) would be sufficient.
However, this is not true, one would also need to independently set
smtpmail-queue-index which is not even named very specifically and is
highly non-obvious.
I had to go through the elisp source code to figure out why
smtpmail kept crashing with the following error even though it seemed
that I had defined everything properly:
Debugger entered--Lisp error: (file-error "Opening input file" "no such file or directory" "/home/myhome/Mail/queued-mail/index")
Basically, 3 defvars are being uses to specify only 2 independent bits
of information -- the base directory and EITHER the relative path to
the index within it (smtpmail-queue-index-file) OR the absolute path
to the index file (smtpmail-queue-index).
A *BETTER* way would be to just pick 2 out of the 3 as independent
variables.
reply other threads:[~2008-01-02 4:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18299.6412.939879.741345@consult.pretender \
--to=gnuemacs@kosowsky.org \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).