GNU bug report logs - #23155
24.5; 24.5.1 (i686-pc-ming32) other-window cannot take one argument

Previous Next

Package: emacs;

Reported by: Guangran Kevin Zhu <g.kevin.zhu <at> ieee.org>

Date: Tue, 29 Mar 2016 21:11:03 UTC

Severity: normal

Tags: moreinfo

Found in version 24.5

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23155 in the body.
You can then email your comments to 23155 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23155; Package emacs. (Tue, 29 Mar 2016 21:11:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guangran Kevin Zhu <g.kevin.zhu <at> ieee.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 29 Mar 2016 21:11:03 GMT) Full text and rfc822 format available.

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

From: Guangran Kevin Zhu <g.kevin.zhu <at> ieee.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; 24.5.1 (i686-pc-ming32) other-window cannot take one argument
Date: Tue, 29 Mar 2016 13:15:55 -0400
[Message part 1 (text/plain, inline)]
In the .emacs file, insert

(defun my-previous-window ()
  (interactive)
  (other-window -1))

Run this function and receive the following error message:

Wrong number of arguments: (lambda nil "Select the previous window."
(interactive) ((other-window) -1)), 3

This function runs as expected on GNU Emacs 24.4.1 (i686-pc-mingw32)





In GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/usr --host=i686-pc-mingw32'

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Outline

Minor modes in effect:
  goto-address-mode: t
  TeX-PDF-mode: t
  shell-dirtrack-mode: t
  dired-omit-mode: 1
  global-ede-mode: t
  ede-minor-mode: t
  diff-auto-refine-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: 1
  line-number-mode: 1
  transient-mark-mode: t
  abbrev-mode: t
  view-mode: t

Recent messages:
Opening TLS connection to `www.wikipedia.org'...
Opening TLS connection with `gnutls-cli --insecure -p 443 www.wikipedia.org
'...failed
Opening TLS connection with `gnutls-cli --insecure -p 443 www.wikipedia.org
--protocols ssl3'...failed
Opening TLS connection with `openssl s_client -connect www.wikipedia.org:443
-no_ssl2 -ign_eof'...done
Opening TLS connection to `www.wikipedia.org'...done
Quit
Mark saved where search started [3 times]
View mode: type C-h for help, h for commands, q to quit.
Mark set
Mark saved where search started

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail goto-addr thingatpt view
mule-util parse-time network-stream starttls url-http tls url-gw
url-cache url-auth eww mm-url gnus gnus-ems nnheader url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf shr
etags browse-url url-util url-parse auth-source gnus-util password-cache
url-vars help-mode cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs preview prv-emacs tex-buf
reftex-dcr reftex-auc reftex reftex-vars noutline outline font-latex
latex edmacro kmacro tex-style tex crm tex-mode compile latexenc
image-mode vc-dispatcher vc-svn sh-script smie executable bat-mode rect
matlab cl-macs shell pcomplete gud comint ansi-color derived tempo
vc-git perl-mode dired-aux ede/dired dired-x dired ede/emacs bookmark pp
misearch multi-isearch warnings ede/cpp-root ido google-c-style dbus xml
ede/speedbar ede/files ede ede/base ede/auto ede/source eieio-base
eieio-speedbar speedbar sb-image ezimage dframe eieio-custom eieio
byte-opt bytecomp byte-compile cl-extra cconv eieio-core cedet psvn
wid-edit cl gv cl-loaddefs cl-lib log-edit message format-spec rfc822
mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils
mailheader ring pcvs-util add-log diff-mode easy-mmode easymenu extview
advice help-fns mailcap preview-latex tex-site auto-loads time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
w32notify w32 multi-tty emacs)

Memory information:
((conses 8 506599 30284)
 (symbols 32 37761 0)
 (miscs 32 581 3722)
 (strings 16 85260 7665)
 (string-bytes 1 2225646)
 (vectors 8 29632)
 (vector-slots 4 659767 23410)
 (floats 8 180 326)
 (intervals 28 43106 351)
 (buffers 508 75))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23155; Package emacs. (Wed, 30 Mar 2016 02:45:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Guangran Kevin Zhu <g.kevin.zhu <at> ieee.org>
Cc: 23155 <at> debbugs.gnu.org
Subject: Re: bug#23155: 24.5;
 24.5.1 (i686-pc-ming32) other-window cannot take one argument
Date: Wed, 30 Mar 2016 05:44:06 +0300
> Date: Tue, 29 Mar 2016 13:15:55 -0400
> From: Guangran Kevin Zhu <g.kevin.zhu <at> ieee.org>
> 
> In the .emacs file, insert
> 
> (defun my-previous-window ()
>   (interactive)
>   (other-window -1))
> 
> Run this function and receive the following error message:
> 
> Wrong number of arguments: (lambda nil "Select the previous window."
> (interactive) ((other-window) -1)), 3

I cannot reproduce this.  Does this happen for you in "emacs -Q", if
you evaluate the definition of my-previous-window in the *scratch*
buffer?  If it works then, you should look into your .emacs for the
reason of the error.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23155; Package emacs. (Thu, 31 Mar 2016 00:27:02 GMT) Full text and rfc822 format available.

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

From: "G. Kevin Zhu" <g.kevin.zhu <at> ieee.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23155 <at> debbugs.gnu.org
Subject: Re: bug#23155: 24.5; 24.5.1 (i686-pc-ming32) other-window cannot take
 one argument
Date: Wed, 30 Mar 2016 20:26:18 -0400
Hi Eli,

On 16-03-29 10:44 PM, Eli Zaretskii wrote:
>> Date: Tue, 29 Mar 2016 13:15:55 -0400
>> From: Guangran Kevin Zhu <g.kevin.zhu <at> ieee.org>
>>
>> In the .emacs file, insert
>>
>> (defun my-previous-window ()
>>    (interactive)
>>    (other-window -1))
>>
>> Run this function and receive the following error message:
>>
>> Wrong number of arguments: (lambda nil "Select the previous window."
>> (interactive) ((other-window) -1)), 3
>
> I cannot reproduce this.  Does this happen for you in "emacs -Q", if
> you evaluate the definition of my-previous-window in the *scratch*
> buffer?  If it works then, you should look into your .emacs for the
> reason of the error.
>

Thank you for the pointer. This does not happen in your method.

Furthermore, I could not duplicate the problem on my windows machine.


-- 
Sincerely yours,

G. Kevin Zhu




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23155; Package emacs. (Thu, 31 Mar 2016 02:41:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: "G. Kevin Zhu" <g.kevin.zhu <at> ieee.org>
Cc: 23155 <at> debbugs.gnu.org
Subject: Re: bug#23155: 24.5; 24.5.1 (i686-pc-ming32) other-window cannot take
 one argument
Date: Thu, 31 Mar 2016 05:40:34 +0300
> Cc: 23155 <at> debbugs.gnu.org
> From: "G. Kevin Zhu" <g.kevin.zhu <at> ieee.org>
> Date: Wed, 30 Mar 2016 20:26:18 -0400
> 
> >> (defun my-previous-window ()
> >>    (interactive)
> >>    (other-window -1))
> >>
> >> Run this function and receive the following error message:
> >>
> >> Wrong number of arguments: (lambda nil "Select the previous window."
> >> (interactive) ((other-window) -1)), 3
> >
> > I cannot reproduce this.  Does this happen for you in "emacs -Q", if
> > you evaluate the definition of my-previous-window in the *scratch*
> > buffer?  If it works then, you should look into your .emacs for the
> > reason of the error.
> >
> 
> Thank you for the pointer. This does not happen in your method.
> 
> Furthermore, I could not duplicate the problem on my windows machine.

Then I guess some of the init files loaded on the system where you
have the problems redefines or advises other-window in some way.  You
need to find that redefinition and fix it.




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 07 Dec 2016 20:40:02 GMT) Full text and rfc822 format available.

Notification sent to Guangran Kevin Zhu <g.kevin.zhu <at> ieee.org>:
bug acknowledged by developer. (Wed, 07 Dec 2016 20:40:03 GMT) Full text and rfc822 format available.

Message #19 received at 23155-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 23155-done <at> debbugs.gnu.org
Subject: Re: bug#23155: 24.5;
 24.5.1 (i686-pc-ming32) other-window cannot take one argument
Date: Wed, 07 Dec 2016 15:39:06 -0500
Eli Zaretskii wrote:

> Then I guess some of the init files loaded on the system where you
> have the problems redefines or advises other-window in some way.  You
> need to find that redefinition and fix it.

Hence closing.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Jan 2017 12:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 167 days ago.

Previous Next


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