Gnus development mailing list
 help / color / mirror / Atom feed
From: Alex Schroeder <alex@gnu.org>
Subject: free variable new-handle
Date: 05 Jun 2001 11:30:23 +0200	[thread overview]
Message-ID: <m2y9r7tgsw.fsf@snail.nowhere.ch> (raw)

The following looks like a minor bug in current cvs:

While compiling mm-handle-set-external-undisplayer in file /home/alex/elisp/gnus/lisp/mm-decode.el:
  ** assignment to free variable new-handle
  ** reference to free variable new-handle

Something like the following should do just as fine, I think.
Untested.

(defun mm-handle-set-external-undisplayer (handle function)
 "Set the undisplayer for this handle; postpone undisplaying of viewers
for types in mm-keep-viewer-alive-types."
 (if (mm-keep-viewer-alive-p handle)
     (let ((new-handle (copy-sequence handle)))
       (mm-handle-set-undisplayer new-handle function)
       (mm-handle-set-undisplayer handle nil)
       (push new-handle mm-postponed-undisplay-list))
   (mm-handle-set-undisplayer handle function)))

Alex.


             reply	other threads:[~2001-06-05  9:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-05  9:30 Alex Schroeder [this message]
2001-06-05 18:47 ` Simon Josefsson

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=m2y9r7tgsw.fsf@snail.nowhere.ch \
    --to=alex@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.
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).