unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>,
	David Reitter <david.reitter@gmail.com>
Cc: 21874@debbugs.gnu.org
Subject: bug#21874: 25.0.50; point-entered no longer works
Date: Wed, 23 Mar 2016 17:38:10 -0400	[thread overview]
Message-ID: <CAFyQvY3iAJoN7F_nNhFjoo+T+c1Ork=9nGJAfgqxgvBjpvtT7Q@mail.gmail.com> (raw)
In-Reply-To: <jwv60wcvqmr.fsf-monnier+emacsbugs@gnu.org>

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

On Wed, Mar 23, 2016 at 5:28 PM, Stefan Monnier <monnier@iro.umontreal.ca>
wrote:

> (defalias 'turn-on-cursor-intangible-mode #'cursor-intangible-mode)
>
> would work just as well.  Better yet: just use `cursor-intangible-mode'
> instead and skip turn-on-cursor-intangible-mode altogether, since it's
> just redundant.
>

Thanks!

> Also, would it be wise to enable cursor-intangible-mode globally? If not,
> > how can we have that mode always enabled in the minibuffer?
> (add-hook 'minibuffer-setup-hook #'cursor-intangible-mode)


Yes, that's what I ended up doing :) The last part of my previous email was
an after-thought or an "aha" moment as I was typing the question "how can
we have that mode always enabled in the minibuffer?"

I personally like the fact that I can occasionally move into the prompt
> and copy portions of it like any other chunk of text, so I think we
> should generally (by default) refrain from making text intangible except
> when *really* needed.


OK


> PS: What's with the `point-entered' in the subject?


I believe that the OP (David)'s primary question was how to get the
"cursor-intangible" behavior working in emacs 25.1 because the below does
not work as it used to in emacs 24.5:

(setq minibuffer-prompt-properties '(read-only t point-entered
minibuffer-avoid-prompt))

The secondary question I believe is how to get the above to work in
emacs 25.1 (even though point-entered and minibuffer-avoid-prompt are
obsolete).

@David The fact that the below get the behavior you want, would you
consider this bug as closed?

(progn
  (setq minibuffer-prompt-properties '(read-only t cursor-intangible t
face minibuffer-prompt))
  (add-hook 'minibuffer-setup-hook #'cursor-intangible-mode))

--
Kaushal Modi

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

  reply	other threads:[~2016-03-23 21:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10 23:27 bug#21874: 25.0.50; point-entered no longer works David Reitter
2016-03-23 20:06 ` Kaushal Modi
2016-03-23 20:30   ` Kaushal Modi
2016-03-23 21:28     ` Stefan Monnier
2016-03-23 21:38       ` Kaushal Modi [this message]
2016-03-23 21:55         ` Kaushal Modi
2016-03-24  0:27           ` Stefan Monnier
2016-03-24  2:14         ` David Reitter
2016-05-22  2:13 ` Paul Eggert
2022-02-15 10:52 ` bug#21874: `backward-char' can move point into minibuffer prompt by default Lars Ingebrigtsen

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='CAFyQvY3iAJoN7F_nNhFjoo+T+c1Ork=9nGJAfgqxgvBjpvtT7Q@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=21874@debbugs.gnu.org \
    --cc=david.reitter@gmail.com \
    --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).