[OS X Emacs] 24.3.50; Bug in Lisp parser?

David Reitter david.reitter at gmail.com
Wed Jan 22 17:18:22 EST 2014


Hi Cheng-Yang,

No, I'm afraid it's a bug in your code.

You're redefining the existing Emacs function `previous-window' with no argument, while the existing one takes up to three, and is presumably called from many places in the code.

If you rename yours to `my-previous-window', everything should be good.

Best,
David

--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!



On Jan 22, 2014, at 3:06 PM, cytan299 at netzero.net wrote:

> 
> Enter your bug report here.
> 
> Hi,
>   I have a key-binding in my Preferences.el file that worked prior to the 3.0a update
> ********************
> (global-unset-key (kbd "C-w"))
> (global-set-key (kbd "C-w") nil)
> 
> (defun previous-window ()
>   "Move to previous window"
>   (interactive)
>   (other-window -1))
> 
> 
> (global-set-key (kbd "C-w C-e") 'previous-window)
> ********************
> 
> Now Aquamacs complains about:
> 
> Wrong number of arguments: (lambda nil "Move to previous window" (interactive) (other-window -1)), 3
> 
> Is this a bug in the 3.0a LISP parser?
> 
> Thanks for looking at it.
> 
> Cheng-Yang Tan
> 
> 
> 
> 
> 
> In Aquamacs 3.0 GNU Emacs 24.3.50.2
> (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00)
> of 2014-01-19 (Aquamacs-3.0) on watson
> Git revision: Aquamacs-3.0
> Operating System: OS X Version 10.8.5 (Build 12F45)
> Configured using:
> `configure --with-ns --without-x 'CFLAGS=-arch x86_64 -O3 -g
> -mtune=corei7 -mmacosx-version-min=10.6' 'LDFLAGS=-arch x86_64 -O3 -g
> -mtune=corei7 -mmacosx-version-min=10.6''

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20140122/99e1488b/attachment.asc>


More information about the MacOSX-Emacs mailing list