unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrii Kolomoiets <andreyk.mad@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 39558@debbugs.gnu.org
Subject: bug#39558: 26.3; icomplete and display *Completions* in child frame
Date: Wed, 12 Feb 2020 11:15:18 +0200	[thread overview]
Message-ID: <m27e0skvyx.fsf@10-1-1-147.office.area> (raw)
In-Reply-To: <83a75prvau.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 Feb 2020 17:35:37 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> 1. emacs -Q
>> 2. evaluate
>> (customize-set-variable
>>  'display-buffer-alist
>>  '(("\\*Completions\\*" display-buffer-in-child-frame)))
>> 3. M-x icomplete-mode
>> 4. M-x f<TAB>
>> 
>> Error in post-command-hook (icomplete-post-command-hook): (wrong-type-argument number-or-marker-p nil)
>
> I cannot reproduce this, so maybe this is Darwin-specific.

You are right.

There are this code in lisp/term/ns-win.el:581:
(add-hook 'after-make-frame-functions 'select-frame)

Evaluating it allow you to catch that error in
icomplete-post-command-hook under X as well.

To avoid original issue under Darwin:

(setq after-make-frame-functions nil)
(customize-set-variable
 'display-buffer-alist
 '(("\\*Completions\\*" display-buffer-in-child-frame
    (child-frame-parameters . ((minibuffer . nil))))))

(The `(minibuffer . nil)' frame parameter is required if we want to leave
focus on original frame. IDK why `(no-focus-on-map . t)' doesn't help
here.)





  reply	other threads:[~2020-02-12  9:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-11  6:55 bug#39558: 26.3; icomplete and display *Completions* in child frame Andrii Kolomoiets
2020-02-11 15:35 ` Eli Zaretskii
2020-02-12  9:15   ` Andrii Kolomoiets [this message]
2021-08-11 12:34     ` Lars Ingebrigtsen
2021-08-11 21:16       ` Alan Third
2021-08-12 20:11       ` Andrii Kolomoiets
     [not found] <<m2tv3x1ukr.fsf@10-1-1-147.office.area>
     [not found] ` <<83a75prvau.fsf@gnu.org>
2020-02-11 18:22   ` Drew Adams

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=m27e0skvyx.fsf@10-1-1-147.office.area \
    --to=andreyk.mad@gmail.com \
    --cc=39558@debbugs.gnu.org \
    --cc=eliz@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).