Gnus development mailing list
 help / color / mirror / Atom feed
* latest change to mm-util.el causes failure
@ 2011-03-22 17:02 Robert Pluim
  2011-03-23 13:02 ` Leonidas Tsampros
  2011-03-29 18:13 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Robert Pluim @ 2011-03-22 17:02 UTC (permalink / raw)
  To: ding


This change:

    revno: 103715
    author: Julien Danjou <julien@danjou.info>
    committer: Katsumi Yamaoka <yamaoka@jpl.org>
    branch nick: trunk
    timestamp: Tue 2011-03-22 13:40:41 +0000
    message:
    mm-view.el (mm-display-inline-fontify): Make mode optional, and call normal-mode if not set. Set temp buffer unmodified to avoid kill-buffer query.
    (mm-inline-text): Render normal text with fontification whenever possible.
    gnus-sum.el (gnus-summary-save-parts-1):
    gnus-art.el (gnus-article-browse-html-save-cid-content)
    (gnus-article-browse-html-parts, gnus-mime-delete-part)
    (gnus-mime-copy-part, gnus-mime-inline-part, gnus-insert-mime-button):
    Use `mm-handle-filename'.
    mm-util.el (mm-handle-filename): New function, return the filename of an handle.

introduces 

(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)))


But mm-handle-type is a macro, so I get:

Debugger entered--Lisp error: (invalid-function mm-handle-type)
  mm-handle-type((#<buffer  *mm*> ("text/html" (charset . "utf-8")) 8bit nil nil nil nil nil))
  mm-handle-filename((#<buffer  *mm*> ("text/html" (charset . "utf-8")) 8bit nil nil nil nil nil))

This is with the bzr head of the gnus that's part of Emacs. It's entirely
possible that the issue lies in the way Emacs is compiling gnus.

Robert






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: latest change to mm-util.el causes failure
  2011-03-22 17:02 latest change to mm-util.el causes failure Robert Pluim
@ 2011-03-23 13:02 ` Leonidas Tsampros
  2011-03-29 18:13 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Leonidas Tsampros @ 2011-03-23 13:02 UTC (permalink / raw)
  To: ding

Robert Pluim <rpluim@gmail.com> writes:
> This change:
>
>     revno: 103715
>     author: Julien Danjou <julien@danjou.info>
>     committer: Katsumi Yamaoka <yamaoka@jpl.org>
>     branch nick: trunk
>     timestamp: Tue 2011-03-22 13:40:41 +0000
>     message:
>     mm-view.el (mm-display-inline-fontify): Make mode optional, and call normal-mode if not set. Set temp buffer unmodified to avoid kill-buffer query.
>     (mm-inline-text): Render normal text with fontification whenever possible.
>     gnus-sum.el (gnus-summary-save-parts-1):
>     gnus-art.el (gnus-article-browse-html-save-cid-content)
>     (gnus-article-browse-html-parts, gnus-mime-delete-part)
>     (gnus-mime-copy-part, gnus-mime-inline-part, gnus-insert-mime-button):
>     Use `mm-handle-filename'.
>     mm-util.el (mm-handle-filename): New function, return the filename of an handle.
>
> introduces 
>
> (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)))
>
>
> But mm-handle-type is a macro, so I get:
>
> Debugger entered--Lisp error: (invalid-function mm-handle-type)
>   mm-handle-type((#<buffer  *mm*> ("text/html" (charset . "utf-8")) 8bit nil nil nil nil nil))
>   mm-handle-filename((#<buffer  *mm*> ("text/html" (charset . "utf-8")) 8bit nil nil nil nil nil))
>
> This is with the bzr head of the gnus that's part of Emacs. It's entirely
> possible that the issue lies in the way Emacs is compiling gnus.
>
> Robert

I faced exactly the same problem with bzr head, removed the relevant elc
file, and everything seems fine now :)

Thanks.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: latest change to mm-util.el causes failure
  2011-03-22 17:02 latest change to mm-util.el causes failure Robert Pluim
  2011-03-23 13:02 ` Leonidas Tsampros
@ 2011-03-29 18:13 ` Lars Magne Ingebrigtsen
  2011-03-29 18:20   ` Robert Pluim
  1 sibling, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-03-29 18:13 UTC (permalink / raw)
  To: ding

Robert Pluim <rpluim@gmail.com> writes:

> This is with the bzr head of the gnus that's part of Emacs. It's entirely
> possible that the issue lies in the way Emacs is compiling gnus.

You probably have to do a "make clean" to get function<->macro changes
to work in Emacs.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: latest change to mm-util.el causes failure
  2011-03-29 18:13 ` Lars Magne Ingebrigtsen
@ 2011-03-29 18:20   ` Robert Pluim
  2011-03-31  9:28     ` Olivier Sirven
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Pluim @ 2011-03-29 18:20 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Robert Pluim <rpluim@gmail.com> writes:
>
>> This is with the bzr head of the gnus that's part of Emacs. It's entirely
>> possible that the issue lies in the way Emacs is compiling gnus.
>
> You probably have to do a "make clean" to get function<->macro changes
> to work in Emacs.

*grumble* Why don't the makefiles take care of this? *mutter* *mutter*
 :)

BTW 'make clean' is not something I like doing in an Emacs build, since
it takes forever and a day to recompile all the elisp.

Robert




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: latest change to mm-util.el causes failure
  2011-03-29 18:20   ` Robert Pluim
@ 2011-03-31  9:28     ` Olivier Sirven
  0 siblings, 0 replies; 5+ messages in thread
From: Olivier Sirven @ 2011-03-31  9:28 UTC (permalink / raw)
  To: ding

On 2011-03-29 20:20:46, Robert Pluim <rpluim@gmail.com> wrote:
> BTW 'make clean' is not something I like doing in an Emacs build, since
> it takes forever and a day to recompile all the elisp.

Agreed but the gnus build is quite fast to clean ;)

-- 
Olivier




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-31  9:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-22 17:02 latest change to mm-util.el causes failure Robert Pluim
2011-03-23 13:02 ` Leonidas Tsampros
2011-03-29 18:13 ` Lars Magne Ingebrigtsen
2011-03-29 18:20   ` Robert Pluim
2011-03-31  9:28     ` Olivier Sirven

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 NNTP newsgroup(s).