unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Should minibuffer prompt be made intangible by default? (Was debbugs 21874: 25.0.50; point-entered no longer works)
@ 2016-03-30 16:46 Kaushal Modi
  2016-03-31 12:38 ` Stefan Monnier
  0 siblings, 1 reply; 15+ messages in thread
From: Kaushal Modi @ 2016-03-30 16:46 UTC (permalink / raw)
  To: David Reitter; +Cc: Stefan Monnier, Emacs developers

[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]

Hi Stefan,

I agree with what David has to say; I too believe that there are a lot more
users expecting the minibuffer prompt to be intangible.

For now, I need to add the below to my emacs config (as I don't set the
customize variables using the GUI approach, and I would like to simply
append stuff to whatever the default value is):

(let (;; (get ..)                   -> ((quote (read-only t face
minibuffer-prompt)))
      ;; (car (get ..))             -> (quote (read-only t face
minibuffer-prompt))
      ;; (cdr (car (get ..)))       -> ((read-only t face
minibuffer-prompt))
      ;; (car (cdr (car (get ..)))) -> (read-only t face minibuffer-prompt)
      (default (car (cdr (car (get 'minibuffer-prompt-properties
'standard-value)))))
      (dont-touch-prompt-prop '(cursor-intangible t)))
  ;; When `cursor-intangible' property is detected in
`minibuffer-prompt-properties',
  ;; `cursor-intangible-mode' is automatically added to
`minibuffer-setup-hook'
  ;; (see cus-start.el).
  (custom-set-variables '(minibuffer-prompt-properties
                          (append default dont-touch-prompt-prop)
                          nil nil "Make the minibuffer prompt
intangible.")))

It is helpful that the minibuffer-setup-hook is updated automatically. But
I would also vote for '(cursor-intangible t) to be part of the default
value of minibuffer-prompt-properties. That way majority of the users would
see the minibuffer prompt behaving as they expect.

[-- Attachment #2: Type: text/html, Size: 2753 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-04-02 11:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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