GNU bug report logs -
#9632
wrong-type-argument stringp mailcap-save-binary-file
Previous Next
Reported by: Dave Abrahams <dave <at> boostpro.com>
Date: Thu, 29 Sep 2011 20:08:01 UTC
Severity: normal
Tags: fixed
Found in version 5.110018
Fixed in version 24.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9632 in the body.
You can then email your comments to 9632 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bugs <at> gnus.org
:
bug#9632
; Package
gnus
.
(Thu, 29 Sep 2011 20:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dave Abrahams <dave <at> boostpro.com>
:
New bug report received and forwarded. Copy sent to
bugs <at> gnus.org
.
(Thu, 29 Sep 2011 20:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I just tried to hit `v' on a PGP key (with an .asc suffix) and BOOM.
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument stringp mailcap-save-binary-file)
string-match("" mailcap-save-binary-file)
(and (or non-prefix-dot (if ... ... ...)) (string-match re name))
(if (and (or non-prefix-dot ...) (string-match re name)) (cond (... ...) (... ...) (... ...) (... ...) (t ...)))
(let ((name ...)) (if (and ... ...) (cond ... ... ... ... ...)))
(lambda (item) (let (...) (if ... ...)) t)(mailcap-save-binary-file)
mapc((lambda (item) (let (...) (if ... ...)) t) ("/usr/bin/open %s" mailcap-save-binary-file))
(condition-case error (mapc (lambda ... ... t) items) (invalid-regexp (setq ido-incomplete-regexp t matches ...)))
(let* ((case-fold-search ido-case-fold) (slash ...) (text ...) (rex0 ...) (rexq ...) (re ...) (full-re ...) (suffix-re ...) (prefix-re ...) (non-prefix-dot ...) full-matches suffix-matches prefix-matches matches) (setq ido-incomplete-regexp nil) (condition-case error (mapc ... items) (invalid-regexp ...)) (when prefix-matches (ido-trace "prefix match" prefix-matches) (setq matches ...)) (when suffix-matches (ido-trace "suffix match" ...) (setq matches ...)) (when full-matches (ido-trace "full match" ...) (setq matches ...)) (when (and ... ido-enable-flex-matching ... ...) (setq re ...) (if ido-enable-prefix ...) (mapc ... items)) matches)
ido-set-matches-1(("/usr/bin/open %s" mailcap-save-binary-file) t)
(setq ido-matches (ido-set-matches-1 (reverse ido-cur-list) (not ido-rotate)) ido-rotate nil)
(progn (setq ido-matches (ido-set-matches-1 ... ...) ido-rotate nil))
(if ido-rescan (progn (setq ido-matches ... ido-rotate nil)))
(when ido-rescan (setq ido-matches (ido-set-matches-1 ... ...) ido-rotate nil))
ido-set-matches()
(while (not done) (ido-trace "\n_LOOP_" ido-text-init) (setq ido-exit nil) (setq ido-rescan t) (setq ido-rotate nil) (setq ido-text "") (when ido-set-default-item (setq ido-default-item ...) (if ... ...) (ido-trace "new default" ido-default-item) (if ido-default-item ...) (setq ido-set-default-item nil)) (if ido-process-ignore-lists-inhibit (setq ido-process-ignore-lists nil)) (if (and ido-use-merged-list ... ...) (let ... ... ...)) (cond (ido-keep-item-list ...) (... ...) (... ...) (... ...) (... ...) (t nil)) (setq ido-rotate-temp nil) (if ido-process-ignore-lists-inhibit (setq ido-process-ignore-lists t ido-process-ignore-lists-inhibit nil)) (ido-set-matches) (if (and ido-matches ...) (setq ido-try-merged-list t)) (let (... ... ... ... ... ...) (setq ido-exit nil) (setq ido-final-text ...)) (ido-trace "read-from-minibuffer" ido-final-text) (if (get-buffer ido-completion-buffer) (kill-buffer ido-completion-buffer)) (ido-trace "\n_EXIT_" ido-exit) (cond (... ... nil) (... ...) (... ... nil) (... ...) (... ...) (... ...) (... ... ...) (... ... ...) (... ...) (t ... ...)))
(let ((ido-cur-item item) (ido-entry-buffer ...) (ido-process-ignore-lists t) (ido-process-ignore-lists-inhibit nil) (ido-set-default-item t) ido-default-item ido-selected ido-final-text (done nil) (icomplete-mode nil) ido-cur-list ido-ignored-list (ido-rotate-temp nil) (ido-keep-item-list nil) (ido-use-merged-list nil) (ido-try-merged-list t) (ido-pre-merge-state nil) (ido-case-fold ido-case-fold) (ido-enable-prefix ido-enable-prefix) (ido-enable-regexp ido-enable-regexp) (ido-show-confirm-message nil)) (ido-setup-completion-map) (setq ido-text-init initial) (setq ido-input-stack nil) (run-hooks (quote ido-setup-hook)) (while (not done) (ido-trace "\n_LOOP_" ido-text-init) (setq ido-exit nil) (setq ido-rescan t) (setq ido-rotate nil) (setq ido-text "") (when ido-set-default-item ... ... ... ... ...) (if ido-process-ignore-lists-inhibit ...) (if ... ...) (cond ... ... ... ... ... ...) (setq ido-rotate-temp nil) (if ido-process-ignore-lists-inhibit ...) (ido-set-matches) (if ... ...) (let ... ... ...) (ido-trace "read-from-minibuffer" ido-final-text) (if ... ...) (ido-trace "\n_EXIT_" ido-exit) (cond ... ... ... ... ... ... ... ... ... ...)) (add-to-history (or history ...) ido-selected) ido-selected)
ido-read-internal(list "Viewer: " nil nil nil nil)
(let ((ido-current-directory nil) (ido-directory-nonreadable nil) (ido-directory-too-big nil) (ido-context-switch-command ...) (ido-choice-list choices)) (ido-common-initialization) (ido-read-internal (quote list) prompt hist def require-match initial-input))
ido-completing-read("Viewer: " (mailcap-save-binary-file "/usr/bin/open %s") nil nil nil nil nil)
gnus-ido-completing-read("Viewer: " (mailcap-save-binary-file "/usr/bin/open %s") nil nil nil nil)
gnus-completing-read("Viewer" (mailcap-save-binary-file "/usr/bin/open %s"))
mm-interactively-view-part((#<buffer *mm*<3>> ("application/octet-stream") base64 nil ("attachment" (filename . "0F31DE07 - Personal.asc")) nil nil nil))
gnus-mime-view-part()
call-interactively(gnus-mime-view-part nil nil)
--8<---------------cut here---------------end--------------->8---
No Gnus v0.18
GNU Emacs 23.3.1 (x86_64-apple-darwin10.8.0, Carbon Version 1.6.0 AppKit 1038.36)
of 2011-09-12 on pluto.luannocracy.com
200 Leafnode NNTP Daemon, version 1.11.8 running at localhost (my fqdn: pluto.boostpro.com)
500 Unknown command
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
Information forwarded
to
bugs <at> gnus.org
:
bug#9632
; Package
gnus
.
(Sat, 07 Jan 2012 01:08:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 9632 <at> debbugs.gnu.org (full text, mbox):
Dave Abrahams <dave <at> boostpro.com> writes:
> gnus-completing-read("Viewer" (mailcap-save-binary-file "/usr/bin/open %s"))
> mm-interactively-view-part((#<buffer *mm*<3>> ("application/octet-stream") base64 nil ("attachment" (filename . "0F31DE07 - Personal.asc")) nil nil nil))
> gnus-mime-view-part()
I'm unable to reproduce the bug.
Looking at the code, it seems like the following is returning
something... something doesn't like:
(mapcar (lambda (i) (cdr (assoc 'viewer i)))
(mailcap-mime-info "application/octet-stream" 'all))
=> (mailcap-save-binary-file)
(Only that yours includes the "open" thing, too. Hm...
string-match("" mailcap-save-binary-file)
[...]
ido-set-matches-1(("/usr/bin/open %s" mailcap-save-binary-file) t)
Oh, you're triggering ido... Right:
gnus-ido-completing-read("Viewer: " (mailcap-save-binary-file "/usr/bin/open %s") nil nil nil nil)
gnus-completing-read("Viewer" (mailcap-save-binary-file "/usr/bin/open %s"))
And ido doesn't work on symbols.
Fix in No Gnus.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) fixed.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 07 Jan 2012 01:09:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.1, send any further explanations to
9632 <at> debbugs.gnu.org and Dave Abrahams <dave <at> boostpro.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 07 Jan 2012 01:09:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 04 Feb 2012 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 223 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.