Discussion:
[mh-e:bugs] #474 error if mh-x-face-file is nil
Mike Kupfer
2014-04-28 00:30:27 UTC
Permalink
---

** [bugs:#474] error if mh-x-face-file is nil**

**Status:** unread
**Milestone:** Unassigned
**Created:** Mon Apr 28, 2014 12:30 AM UTC by Mike Kupfer
**Last Updated:** Mon Apr 28, 2014 12:30 AM UTC
**Owner:** Mike Kupfer

The docstring for mh-x-face-file says that you can set it to nil to disable the creation of an X-Face header in outgoing mail. But if you actually do that, you get an error. The debugger says

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-exists-p(nil)
mh-insert-x-face()
mh-compose-and-send-mail("draft-1" "" nil nil "" "" "" nil nil #<window-configuration>)
mh-send-sub("" "" "" #<window-configuration>)
mh-send("" "" "")
call-interactively(mh-send)
ad-Orig-mh-smail()
mh-smail()
call-interactively(mh-smail record nil)
command-execute(mh-smail record)
execute-extended-command(nil "mh-smail")
call-interactively(execute-extended-command nil nil)

Originally observed in MH-E 8.3.1, and confirmed (by looking at the source) that the same issue exists in MH-E 8.5. Emacs 24.3 (and maybe 23.4; I can't remember what Ubuntu 12.04 ships).

The fix looks simple enough:

(defun mh-insert-x-face ()
"Append X-Face, Face or X-Image-URL field to header.
If the field already exists, this function does nothing."
(when (and mh-x-face-file <--- ensure mh-x-face-file is non-nil
(file-exists-p mh-x-face-file)
(file-readable-p mh-x-face-file))

Or would it be better to check using (stringp mh-x-face-file)?


---

Sent from sourceforge.net because mh-e-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/mh-e/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/mh-e/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mike Kupfer
2014-07-04 23:29:06 UTC
Permalink
- **status**: unread --> open



---

** [bugs:#474] error if mh-x-face-file is nil**

**Status:** open
**Milestone:** Unassigned
**Created:** Mon Apr 28, 2014 12:30 AM UTC by Mike Kupfer
**Last Updated:** Mon Apr 28, 2014 12:30 AM UTC
**Owner:** Mike Kupfer

The docstring for mh-x-face-file says that you can set it to nil to disable the creation of an X-Face header in outgoing mail. But if you actually do that, you get an error. The debugger says

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-exists-p(nil)
mh-insert-x-face()
mh-compose-and-send-mail("draft-1" "" nil nil "" "" "" nil nil #<window-configuration>)
mh-send-sub("" "" "" #<window-configuration>)
mh-send("" "" "")
call-interactively(mh-send)
ad-Orig-mh-smail()
mh-smail()
call-interactively(mh-smail record nil)
command-execute(mh-smail record)
execute-extended-command(nil "mh-smail")
call-interactively(execute-extended-command nil nil)

Originally observed in MH-E 8.3.1, and confirmed (by looking at the source) that the same issue exists in MH-E 8.5. Emacs 24.3 (and maybe 23.4; I can't remember what Ubuntu 12.04 ships).

The fix looks simple enough:

(defun mh-insert-x-face ()
"Append X-Face, Face or X-Image-URL field to header.
If the field already exists, this function does nothing."
(when (and mh-x-face-file <--- ensure mh-x-face-file is non-nil
(file-exists-p mh-x-face-file)
(file-readable-p mh-x-face-file))

Or would it be better to check using (stringp mh-x-face-file)?


---

Sent from sourceforge.net because mh-e-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/mh-e/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/mh-e/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Bill Wohler
2014-07-21 04:33:33 UTC
Permalink
I'd lean towards stringp, since that is what file-exists-p expects.


---

** [bugs:#474] error if mh-x-face-file is nil**

**Status:** open
**Milestone:** Unassigned
**Created:** Mon Apr 28, 2014 12:30 AM UTC by Mike Kupfer
**Last Updated:** Fri Jul 04, 2014 11:29 PM UTC
**Owner:** Mike Kupfer

The docstring for mh-x-face-file says that you can set it to nil to disable the creation of an X-Face header in outgoing mail. But if you actually do that, you get an error. The debugger says

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-exists-p(nil)
mh-insert-x-face()
mh-compose-and-send-mail("draft-1" "" nil nil "" "" "" nil nil #<window-configuration>)
mh-send-sub("" "" "" #<window-configuration>)
mh-send("" "" "")
call-interactively(mh-send)
ad-Orig-mh-smail()
mh-smail()
call-interactively(mh-smail record nil)
command-execute(mh-smail record)
execute-extended-command(nil "mh-smail")
call-interactively(execute-extended-command nil nil)

Originally observed in MH-E 8.3.1, and confirmed (by looking at the source) that the same issue exists in MH-E 8.5. Emacs 24.3 (and maybe 23.4; I can't remember what Ubuntu 12.04 ships).

The fix looks simple enough:

(defun mh-insert-x-face ()
"Append X-Face, Face or X-Image-URL field to header.
If the field already exists, this function does nothing."
(when (and mh-x-face-file <--- ensure mh-x-face-file is non-nil
(file-exists-p mh-x-face-file)
(file-readable-p mh-x-face-file))

Or would it be better to check using (stringp mh-x-face-file)?


---

Sent from sourceforge.net because mh-e-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/mh-e/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/mh-e/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mike Kupfer
2014-07-26 22:08:40 UTC
Permalink
okay, stringp it is.


---

** [bugs:#474] error if mh-x-face-file is nil**

**Status:** open
**Milestone:** Unassigned
**Created:** Mon Apr 28, 2014 12:30 AM UTC by Mike Kupfer
**Last Updated:** Mon Jul 21, 2014 04:33 AM UTC
**Owner:** Mike Kupfer

The docstring for mh-x-face-file says that you can set it to nil to disable the creation of an X-Face header in outgoing mail. But if you actually do that, you get an error. The debugger says

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-exists-p(nil)
mh-insert-x-face()
mh-compose-and-send-mail("draft-1" "" nil nil "" "" "" nil nil #<window-configuration>)
mh-send-sub("" "" "" #<window-configuration>)
mh-send("" "" "")
call-interactively(mh-send)
ad-Orig-mh-smail()
mh-smail()
call-interactively(mh-smail record nil)
command-execute(mh-smail record)
execute-extended-command(nil "mh-smail")
call-interactively(execute-extended-command nil nil)

Originally observed in MH-E 8.3.1, and confirmed (by looking at the source) that the same issue exists in MH-E 8.5. Emacs 24.3 (and maybe 23.4; I can't remember what Ubuntu 12.04 ships).

The fix looks simple enough:

(defun mh-insert-x-face ()
"Append X-Face, Face or X-Image-URL field to header.
If the field already exists, this function does nothing."
(when (and mh-x-face-file <--- ensure mh-x-face-file is non-nil
(file-exists-p mh-x-face-file)
(file-readable-p mh-x-face-file))

Or would it be better to check using (stringp mh-x-face-file)?


---

Sent from sourceforge.net because mh-e-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/mh-e/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/mh-e/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Bill Wohler
2014-07-30 04:58:31 UTC
Permalink
- **summary**: error if mh-x-face-file is nil --> Error if mh-x-face-file is nil



---

** [bugs:#474] Error if mh-x-face-file is nil**

**Status:** open
**Milestone:** Unassigned
**Created:** Mon Apr 28, 2014 12:30 AM UTC by Mike Kupfer
**Last Updated:** Sat Jul 26, 2014 10:08 PM UTC
**Owner:** Mike Kupfer

The docstring for mh-x-face-file says that you can set it to nil to disable the creation of an X-Face header in outgoing mail. But if you actually do that, you get an error. The debugger says

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-exists-p(nil)
mh-insert-x-face()
mh-compose-and-send-mail("draft-1" "" nil nil "" "" "" nil nil #<window-configuration>)
mh-send-sub("" "" "" #<window-configuration>)
mh-send("" "" "")
call-interactively(mh-send)
ad-Orig-mh-smail()
mh-smail()
call-interactively(mh-smail record nil)
command-execute(mh-smail record)
execute-extended-command(nil "mh-smail")
call-interactively(execute-extended-command nil nil)

Originally observed in MH-E 8.3.1, and confirmed (by looking at the source) that the same issue exists in MH-E 8.5. Emacs 24.3 (and maybe 23.4; I can't remember what Ubuntu 12.04 ships).

The fix looks simple enough:

(defun mh-insert-x-face ()
"Append X-Face, Face or X-Image-URL field to header.
If the field already exists, this function does nothing."
(when (and mh-x-face-file <--- ensure mh-x-face-file is non-nil
(file-exists-p mh-x-face-file)
(file-readable-p mh-x-face-file))

Or would it be better to check using (stringp mh-x-face-file)?


---

Sent from sourceforge.net because mh-e-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/mh-e/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/mh-e/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mike Kupfer
2014-10-03 01:08:49 UTC
Permalink
- **status**: open --> closed-fixed
- **Milestone**: Unassigned --> mh-e-8.6
- **Comment**:

Fixed by

revno: 117456
revision-id: ***@acm.org-20140927192519-rcu1qeq7hk9cuy7z
parent: ***@gnu.org-20140823082246-q5syxynomcvpti4k
committer: Mike Kupfer <***@acm.org>
branch nick: emacs-24
timestamp: Sat 2014-09-27 12:25:19 -0700
message:
* mh-comp.el (mh-insert-x-face): Ensure that mh-x-face-file is a
string before trying to use it (closes SF #474).
(mh-bare-components): New function to create a temporary initial
components file; replaces mh-find-components.
(mh-edit-again, mh-send-sub): Use mh-bare-components instead of
mh-find-components (partially closes SF #468).
modified:
lisp/mh-e/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-2547
lisp/mh-e/mh-comp.el mhcomp.el-20091113204419-o5vbwnq5f7feedwu-2532


Committed to emacs-24 on Savannah by

revno: 117455.1.67
revision-id: ***@newt.com-20140930045210-s0tlhnkojoxbswdf
parent: ***@gnu.org-20140929191028-lti2lybtzzrnjppc
committer: Bill Wohler <***@newt.com>
branch nick: emacs-24
timestamp: Mon 2014-09-29 21:52:10 -0700
message:
Release MH-E version 8.6.

* NEWS, MH-E-NEWS: Update for MH-E release 8.6.

* mh-e.el (Version, mh-version): Update for release 8.6.

* mh-comp.el (mh-insert-x-face): Ensure that mh-x-face-file is a
string before trying to use it (closes SF #474).
(mh-bare-components): New function to create a temporary initial
components file; replaces mh-find-components. Improve the temp folder
and file names as per a suggestion from Bill Wohler. Also address
XEmacs compatibility issues: use mm-make-temp-file instead of
make-temp-file, and only pass one argument to delete-directory.
(mh-edit-again, mh-send-sub): Use mh-bare-components instead of
mh-find-components (partially closes SF #468).
modified:
etc/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1485
etc/MH-E-NEWS mhenews-20091113204419-o5vbwnq5f7feedwu-1489
etc/NEWS news-20100311060928-aoit31wvzf25yr1z-1
lisp/mh-e/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-2547
lisp/mh-e/mh-comp.el mhcomp.el-20091113204419-o5vbwnq5f7feedwu-2532
lisp/mh-e/mh-e.el mhe.el-20091113204419-o5vbwnq5f7feedwu-2534




---

** [bugs:#474] Error if mh-x-face-file is nil**

**Status:** closed-fixed
**Milestone:** mh-e-8.6
**Created:** Mon Apr 28, 2014 12:30 AM UTC by Mike Kupfer
**Last Updated:** Wed Aug 13, 2014 07:09 PM UTC
**Owner:** Mike Kupfer

The docstring for mh-x-face-file says that you can set it to nil to disable the creation of an X-Face header in outgoing mail. But if you actually do that, you get an error. The debugger says

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-exists-p(nil)
mh-insert-x-face()
mh-compose-and-send-mail("draft-1" "" nil nil "" "" "" nil nil #<window-configuration>)
mh-send-sub("" "" "" #<window-configuration>)
mh-send("" "" "")
call-interactively(mh-send)
ad-Orig-mh-smail()
mh-smail()
call-interactively(mh-smail record nil)
command-execute(mh-smail record)
execute-extended-command(nil "mh-smail")
call-interactively(execute-extended-command nil nil)

Originally observed in MH-E 8.3.1, and confirmed (by looking at the source) that the same issue exists in MH-E 8.5. Emacs 24.3 (and maybe 23.4; I can't remember what Ubuntu 12.04 ships).

The fix looks simple enough:

(defun mh-insert-x-face ()
"Append X-Face, Face or X-Image-URL field to header.
If the field already exists, this function does nothing."
(when (and mh-x-face-file <--- ensure mh-x-face-file is non-nil
(file-exists-p mh-x-face-file)
(file-readable-p mh-x-face-file))

Or would it be better to check using (stringp mh-x-face-file)?


---

Sent from sourceforge.net because mh-e-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/mh-e/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/mh-e/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Loading...