From: Kaushal Modi <kaushal.modi@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Should minibuffer prompt be made intangible by default? (Was debbugs 21874: 25.0.50; point-entered no longer works)
Date: Thu, 31 Mar 2016 10:58:39 -0400 [thread overview]
Message-ID: <CAFyQvY3uCZQjue8JprP4GdVFrFCKfh0cO7UTKn=TBwuyMwLvCQ@mail.gmail.com> (raw)
In-Reply-To: <jwvmvpe6d6f.fsf-monnier+gmane.emacs.devel@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
On Thu, Mar 31, 2016 at 8:38 AM, Stefan Monnier <monnier@iro.umontreal.ca>
wrote:
> > ;; (car (cdr (car (get ..)))) -> (read-only t face
> minibuffer-prompt)
> ^^^^^^^^
> This "car(cdr" should be spelled "eval" (there's no guarantee that the
> arg has always the shape (quote ...something..)).
>
Thank you. That looks much saner too :)
>
> > (custom-set-variables '(minibuffer-prompt-properties
>
> Don't do that. There should only ever be one call to
> custom-set-variables, auto-written by Custom itself. As soon as you
> move away from that, you're entering dangerous territory.
>
That was an oversight on my part. I realized the problem practically later
on and ended up having what you mentioned below; just that I add
cursor-intangible-mode to the hook instead of cursor-sensor-mode.
> You should probably use customize-set-variable instead.
>
> Tho I'd personally recommend that if you don't want to use the Custom
> UI, then don't use Custom from Elisp either, and just use straight:
>
> (setq minibuffer-prompt-properties
> (append ... minibuffer-prompt-properties))
> (add-hook 'minibuffer-setup-hook #'cursor-sensor-mode)
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 2028 bytes --]
next prev parent reply other threads:[~2016-03-31 14:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-30 16:46 Should minibuffer prompt be made intangible by default? (Was debbugs 21874: 25.0.50; point-entered no longer works) Kaushal Modi
2016-03-31 12:38 ` Stefan Monnier
2016-03-31 14:58 ` Kaushal Modi [this message]
2016-03-31 16:46 ` Clément Pit--Claudel
2016-03-31 21:37 ` Stefan Monnier
2016-03-31 22:04 ` Clément Pit--Claudel
2016-04-01 1:40 ` Configuring fontsets with `unicode-fonts` [Was: Re: Should minibuffer prompt be made intangible by default?] Alexis
2016-04-01 7:27 ` Eli Zaretskii
2016-04-01 10:00 ` Clément Pit--Claudel
2016-04-01 10:06 ` Eli Zaretskii
2016-04-02 8:57 ` Alexis
2016-04-02 10:32 ` Eli Zaretskii
2016-04-02 11:30 ` Alexis
2016-04-01 10:00 ` Clément Pit--Claudel
2016-04-02 11:31 ` Alexis
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='CAFyQvY3uCZQjue8JprP4GdVFrFCKfh0cO7UTKn=TBwuyMwLvCQ@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).