all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: David Reitter <david.reitter@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Should minibuffer prompt be made intangible by default? (Was debbugs 21874: 25.0.50; point-entered no longer works)
Date: Wed, 30 Mar 2016 12:46:39 -0400	[thread overview]
Message-ID: <CAFyQvY0aJqCdA9o3XJTj6hkqdS2vaGLVFit2b3Fi8g=bpOTjNA@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2016-03-30 16:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30 16:46 Kaushal Modi [this message]
2016-03-31 12:38 ` Should minibuffer prompt be made intangible by default? (Was debbugs 21874: 25.0.50; point-entered no longer works) 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

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

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

  git send-email \
    --in-reply-to='CAFyQvY0aJqCdA9o3XJTj6hkqdS2vaGLVFit2b3Fi8g=bpOTjNA@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=david.reitter@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.