GNU bug report logs -
#21874
`backward-char' can move point into minibuffer prompt by default
Previous Next
Reported by: David Reitter <david.reitter <at> gmail.com>
Date: Tue, 10 Nov 2015 23:28:01 UTC
Severity: wishlist
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> (defun turn-on-cursor-intangible-mode ()
> "Turns on cursor-intangible-mode."
> (interactive)
> (cursor-intangible-mode 1))
(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.
> 3. C-x C-f C-x h (The read-only portion also gets selected!)
The minibuffer is not placed in any kind of major mode, so it doesn't
enable any globalized minor mode when you enter it.
> 5. C-x C-f C-x h (NOW the read-only portion does not get selected as
> expected)
This is probably because I introduced minibuffer-inactive-mode which
does setup a major mode in the minibuffer, tho not when you enter it, but
when you leave it, so the globalized mode ends up activated in the
*next* minibuffer.
> 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)
> If we want Emacs to "do the right thing", should the above be made default?
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.
Stefan
PS: What's with the `point-entered' in the subject?
This bug report was last modified 3 years and 158 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.