From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: <83lh4zv07x.fsf@gnu.org> References: <8337r8wuq1.fsf@gnu.org> <56FC6EAA.3090801@ieee.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1459392083 19706 80.91.229.3 (31 Mar 2016 02:41:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2016 02:41:23 +0000 (UTC) Cc: 23155@debbugs.gnu.org To: "G. Kevin Zhu" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 31 04:41:08 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1alSXj-0002k2-Cp for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Mar 2016 04:41:07 +0200 Original-Received: from localhost ([::1]:57719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alSXi-0007RC-RH for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Mar 2016 22:41:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alSXf-0007R5-FQ for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2016 22:41:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alSXe-0001OI-Kg for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2016 22:41:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alSXe-0001OE-Gt for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2016 22:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1alSXe-0007yw-Cm for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2016 22:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Mar 2016 02:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23155 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 23155-submit@debbugs.gnu.org id=B23155.145939205630662 (code B ref 23155); Thu, 31 Mar 2016 02:41:02 +0000 Original-Received: (at 23155) by debbugs.gnu.org; 31 Mar 2016 02:40:56 +0000 Original-Received: from localhost ([127.0.0.1]:45541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alSXY-0007yT-9a for submit@debbugs.gnu.org; Wed, 30 Mar 2016 22:40:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alSXX-0007yH-Mp for 23155@debbugs.gnu.org; Wed, 30 Mar 2016 22:40:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alSXP-0001Me-Bh for 23155@debbugs.gnu.org; Wed, 30 Mar 2016 22:40:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alSXP-0001Ma-86; Wed, 30 Mar 2016 22:40:47 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4963 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1alSXO-00074m-HK; Wed, 30 Mar 2016 22:40:46 -0400 In-reply-to: <56FC6EAA.3090801@ieee.org> (g.kevin.zhu@ieee.org) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115792 Archived-At: > Cc: 23155@debbugs.gnu.org > From: "G. Kevin Zhu" > 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.