GNU bug report logs - #12895
24.3.50; Replacement for flet

Previous Next

Package: emacs;

Reported by: Antoine Levitt <antoine.levitt <at> gmail.com>

Date: Thu, 15 Nov 2012 13:37:02 UTC

Severity: normal

Tags: notabug

Found in version 24.3.50

Done: Marcin Borkowski <mbork <at> mbork.pl>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 12895 <at> debbugs.gnu.org, antoine.levitt <at> gmail.com
Subject: bug#12895: 24.3.50; Replacement for flet
Date: Fri, 16 Nov 2012 09:33:50 -0500
> But why I haven't yet replaced flet used in
> message-read-from-minibuffer is that I don't yet have a solution
> better than this:

> 	(flet ((mail-abbrev-in-expansion-header-p nil t))
> 	  (read-from-minibuffer prompt initial-contents))

How 'bout

(defadvice mail-abbrev-in-expansion-header-p (around t-in-minibuffer activate)
  (if (minibufferp) (setq ad-return-value t) ad-do-it))

Or how 'bout filing a feature request?


        Stefan




This bug report was last modified 9 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.