From: Ted Zlatanov <tzz@lifelogs.com>
To: bug-gnu-emacs@gnu.org
Subject: Re: bug#8339: 24.0.50; Gnus Lisp error: (invalid-function mm-handle-type)
Date: Fri, 25 Mar 2011 13:44:38 -0500 [thread overview]
Message-ID: <874o6rujjd.fsf@lifelogs.com> (raw)
In-Reply-To: mailman.10.1300993638.1832.bug-gnu-emacs@gnu.org
[-- Attachment #1: Type: text/plain, Size: 130 bytes --]
I think this is a duplicate of 8330. Can you test the attached patch
against Gnus? It should work in the Emacs trunk too.
Ted
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mm-handle-filename-moved.patch --]
[-- Type: text/x-diff, Size: 1141 bytes --]
diff --git a/lisp/mm-decode.el b/lisp/mm-decode.el
index 3909e12..f543920 100644
--- a/lisp/mm-decode.el
+++ b/lisp/mm-decode.el
@@ -1744,6 +1744,13 @@ If RECURSIVE, search recursively."
(delete-region ,(point-min-marker)
,(point-max-marker))))))))
+(defun mm-handle-filename (handle)
+ "Return filename of HANDLE if any."
+ (or (mail-content-type-get (mm-handle-type handle)
+ 'name)
+ (mail-content-type-get (mm-handle-disposition handle)
+ 'filename)))
+
(provide 'mm-decode)
;;; mm-decode.el ends here
diff --git a/lisp/mm-util.el b/lisp/mm-util.el
index d53784e..435c3bb 100644
--- a/lisp/mm-util.el
+++ b/lisp/mm-util.el
@@ -1667,13 +1667,6 @@ gzip, bzip2, etc. are allowed."
(when decomp
(kill-buffer (current-buffer)))))))
-(defun mm-handle-filename (handle)
- "Return filename of HANDLE if any."
- (or (mail-content-type-get (mm-handle-type handle)
- 'name)
- (mail-content-type-get (mm-handle-disposition handle)
- 'filename)))
-
(provide 'mm-util)
;;; mm-util.el ends here
next parent reply other threads:[~2011-03-25 18:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.10.1300993638.1832.bug-gnu-emacs@gnu.org>
2011-03-25 18:44 ` Ted Zlatanov [this message]
2011-03-29 20:35 ` bug#8339: 24.0.50; Gnus Lisp error: (invalid-function mm-handle-type) Lars Magne Ingebrigtsen
2011-03-24 18:44 joakim
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874o6rujjd.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.