From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#21874: 25.0.50; point-entered no longer works Date: Wed, 23 Mar 2016 17:28:53 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458768568 13856 80.91.229.3 (23 Mar 2016 21:29:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 21:29:28 +0000 (UTC) Cc: 21874@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 23 22:29:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aiqL5-0004gM-E4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Mar 2016 22:29:15 +0100 Original-Received: from localhost ([::1]:46190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiqL1-0007WY-Nq for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Mar 2016 17:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiqKx-0007WD-4p for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 17:29:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiqKs-0002X7-5H for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 17:29:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiqKs-0002Wr-1e for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 17:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aiqKr-0007gF-RG for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 17:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Mar 2016 21:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21874-submit@debbugs.gnu.org id=B21874.145876853729511 (code B ref 21874); Wed, 23 Mar 2016 21:29:01 +0000 Original-Received: (at 21874) by debbugs.gnu.org; 23 Mar 2016 21:28:57 +0000 Original-Received: from localhost ([127.0.0.1]:34837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiqKm-0007fq-MW for submit@debbugs.gnu.org; Wed, 23 Mar 2016 17:28:56 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:40451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiqKk-0007fb-Fx; Wed, 23 Mar 2016 17:28:55 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id u2NLTPOT010453; Wed, 23 Mar 2016 17:29:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6859E6051D; Wed, 23 Mar 2016 17:28:53 -0400 (EDT) In-Reply-To: (Kaushal Modi's message of "Wed, 23 Mar 2016 16:30:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5619=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5619> : inlines <4569> : streams <1607741> : uri <2172963> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115416 Archived-At: > (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?