From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) Newsgroups: gmane.emacs.help Subject: (other-window) with negative argument Date: Fri, 21 Dec 2018 17:55:23 +0100 Organization: The Church of Emacs Message-ID: <87d0puakg4.fsf@duenenhof-wilhelm.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1545411247 7519 195.159.176.226 (21 Dec 2018 16:54:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Dec 2018 16:54:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 21 17:54:03 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaO3m-0001pw-Oq for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Dec 2018 17:54:02 +0100 Original-Received: from localhost ([::1]:46687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaO5t-0003ao-G2 for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Dec 2018 11:56:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaO5J-0003ZG-O6 for help-gnu-emacs@gnu.org; Fri, 21 Dec 2018 11:55:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaO5F-0008Q2-Ow for help-gnu-emacs@gnu.org; Fri, 21 Dec 2018 11:55:37 -0500 Original-Received: from [195.159.176.226] (port=47721 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gaO5F-0008N2-Gh for help-gnu-emacs@gnu.org; Fri, 21 Dec 2018 11:55:33 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gaO35-0000xX-FD for help-gnu-emacs@gnu.org; Fri, 21 Dec 2018 17:53:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:qlYvoVteBXpgJ4AI+C+wZd3XjE8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119015 Archived-At: Hello () I can't get a function to work with a negative argument of (other-window). When I'm using (other-window -1) in the *scratch* buffer it is working as expected, as soon as I put it into a function like the following (defun previous-window () (other-window -1)) or (defun previous-window () "blabla" (interactive) (other-window -1)) and activate the function any call to (other-window -1) is opening the debugger! What am I doing wrong? Thank you Dieter I'm on "GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2018-06-17" -- Best wishes H. Dieter Wilhelm Seeheim-Jugenheim, Germany