GNU bug report logs - #14974
24.3.50; adaptive-wrap 0.3 calls potentially void function easy-menu-add-item

Previous Next

Package: emacs;

Reported by: Sebastian Wiesner <lunaryorn <at> gmail.com>

Date: Sun, 28 Jul 2013 13:33:02 UTC

Severity: normal

Found in version 24.3.50

Done: Stephen Berman <stephen.berman <at> gmx.net>

Bug is archived. No further changes may be made.

Full log


Message #25 received at 14974 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: Sebastian Wiesner <lunaryorn <at> gmail.com>, 14974 <at> debbugs.gnu.org
Subject: Re: bug#14974: 24.3.50;
 adaptive-wrap 0.3 calls potentially void function easy-menu-add-item
Date: Mon, 29 Jul 2013 18:15:14 -0400
> What is a recipe to getting the error, so I can understand what the
> issue is?

1- install adaptive-wrap from ELPA.
2- restart Emacs.

>   '(menu-item "Adaptive Wrap" (lambda ()
> 				(interactive)
> 				(if adaptive-wrap-prefix-mode
> 				    (adaptive-wrap-prefix-mode -1)
> 				  (adaptive-wrap-prefix-mode 1)))

The binding should simply be adaptive-wrap-prefix-mode, shouldn't it?

> 	      :enable t
> 	      :visible (and (menu-bar-menu-frame-live-and-visible-p)
> 			    (featurep 'adaptive-wrap))

Why not always show it?

> 	      :button (:toggle . adaptive-wrap-prefix-mode))

adaptive-wrap-prefix-mode only exists after adaptive-wrap has been
loaded, so better use (bound-and-true-p adaptive-wrap-prefix-mode).


        Stefan




This bug report was last modified 11 years and 361 days ago.

Previous Next


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