unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: "Johan Bockgård" <bojohan+news@dd.chalmers.se>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: appointment display during isearch replaces buffer contents	with history-element
Date: Sat, 17 Nov 2007 12:04:25 +0100	[thread overview]
Message-ID: <473ECAB9.2090607@gmx.at> (raw)
In-Reply-To: <yoijpry9w3rj.fsf@remote4.student.chalmers.se>

>   (if (equal (selected-window) (minibuffer-window))
>       (if (other-window 1)
>           (select-window (other-window 1))
>         (if (display-multi-frame-p)
>             (select-frame (other-frame 1)))))
> 
> This code makes no sense. other-window and other-frame select a window
> or frame--they don't return it. In fact, the return value is always nil,
> so this can't possibly be right.
> 

Does it work if you use

   (or (not (minibufferp))
       (and (display-multi-frame-p)
	   (progn
	     (other-frame 1)
	     (not (minibufferp))))
       (other-window 1))

instead?







  reply	other threads:[~2007-11-17 11:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-14 14:35 appointment display during isearch replaces buffer contents with history-element Martin Fischer
2007-11-17 10:44 ` Johan Bockgård
2007-11-17 11:04   ` martin rudalics [this message]
2007-11-18 22:43     ` Johan Bockgård
     [not found] ` <mailman.3706.1195296268.18990.bug-gnu-emacs@gnu.org>
2007-11-17 17:10   ` Martin Fischer
2007-11-19  0:37 ` Johan Bockgård
2008-01-02 14:36   ` Chong Yidong
2008-01-10  4:10     ` Glenn Morris
2008-01-10 11:36     ` Johan Bockgård
2008-02-26 11:53       ` Johan Bockgård
2008-02-26 21:31         ` Chong Yidong

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=473ECAB9.2090607@gmx.at \
    --to=rudalics@gmx.at \
    --cc=bojohan+news@dd.chalmers.se \
    --cc=bug-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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).