unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm)
To: help-gnu-emacs@gnu.org
Subject: (other-window) with negative argument
Date: Fri, 21 Dec 2018 17:55:23 +0100	[thread overview]
Message-ID: <87d0puakg4.fsf@duenenhof-wilhelm.de> (raw)

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




             reply	other threads:[~2018-12-21 16:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-21 16:55 H. Dieter Wilhelm [this message]
2018-12-21 17:39 ` (other-window) with negative argument Stephen Berman
2018-12-21 17:46   ` Stephen Berman
2018-12-21 17:50   ` H. Dieter Wilhelm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d0puakg4.fsf@duenenhof-wilhelm.de \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).