From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#21874: 25.0.50; point-entered no longer works Date: Wed, 23 Mar 2016 17:38:10 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0160c908cd9d42052ebe2710 X-Trace: ger.gmane.org 1458769161 22862 80.91.229.3 (23 Mar 2016 21:39:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 21:39:21 +0000 (UTC) Cc: 21874@debbugs.gnu.org To: Stefan Monnier , David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 23 22:39:12 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 1aiqUh-00031c-IR for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Mar 2016 22:39:11 +0100 Original-Received: from localhost ([::1]:46250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiqUg-0005R3-Vf for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Mar 2016 17:39:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiqUc-0005Qw-DB for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 17:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiqUY-0005Pk-Ae for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 17:39:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiqUY-0005Pg-7I for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 17:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aiqUY-00019A-2k for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 17:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Mar 2016 21:39:02 +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.14587691384398 (code B ref 21874); Wed, 23 Mar 2016 21:39:02 +0000 Original-Received: (at 21874) by debbugs.gnu.org; 23 Mar 2016 21:38:58 +0000 Original-Received: from localhost ([127.0.0.1]:34850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiqUT-00018s-UM for submit@debbugs.gnu.org; Wed, 23 Mar 2016 17:38:58 -0400 Original-Received: from mail-ob0-f172.google.com ([209.85.214.172]:36655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiqUR-00018c-JQ for 21874@debbugs.gnu.org; Wed, 23 Mar 2016 17:38:55 -0400 Original-Received: by mail-ob0-f172.google.com with SMTP id m7so23461305obh.3 for <21874@debbugs.gnu.org>; Wed, 23 Mar 2016 14:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=88FZHpdu0M3r2Zbp3Z2q0kqCJzEqKg+gxxOpWyZ3l7A=; b=A4riDndWXkOIkpY8NgwOVi/n02hw1T4JoBvn+3yfolmGv4mGWeeKNIpwwSOYjlBdmp a0pLbniI2Wstbdl/ouJV0tyepP+fXUqK4pSVYRzWLZi91fLETRyg7onLZqHaKfY/fYzF WiltWrd6allb3Za8vjm3yT5L7iVXWElDeb5MA5+wEkfaWV8VXdN76v1ZPOqi9EpATl9f H0CkCS4mj98MWahF+uPl9RZcnLVlLdm2aEJMtm4HtbqlxzGSoy/gaJurlUuHNvB3/Hea SDY65R89uaasRKinQ/JOlWKY46fJNknbVbXfPDZusabohaKbMElqZRxI5Mn/rbxAZmXR 6Xxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=88FZHpdu0M3r2Zbp3Z2q0kqCJzEqKg+gxxOpWyZ3l7A=; b=PXm/L87I+8/cvhNHt/2WpqqjVB8Z6RL9kH41EEGP4SL95rIXAMVWzVJ3Mnk2v/YQ9y 17bK8P18kWYWGIn/I4ztIHr81bW8vGPyxPwZ1Uz9jQ95V3ZTkNCM5klqGUq0plw7JPF6 fd2TDcfyP5L2ZkrIaBABAKCdmg1vdoeItZiGtrzPBPIQSy2sT1gmuzUKjsMLT71/87+j bEtCdjV9P/qcMGhlLa9IplgICrALwKj0B7xmn1xF1h139NqQB2C0SCIei3fI4vbCb2aB A33eIRkBa6jX8v9rA5eFmN3K3MhDf9cBD6LTs7g+fnwp/n/JqkWSchf5Dv6SVPe4JPGm SnTw== X-Gm-Message-State: AD7BkJLJ4w5lv9rwX4M7wz28Xg1IyXernW95E1ECNC5eufK/BwxpWCo3Cw9XM+G2SSxf8n16M28kZsXE5mVoqA== X-Received: by 10.182.104.138 with SMTP id ge10mr2752133obb.81.1458769130001; Wed, 23 Mar 2016 14:38:50 -0700 (PDT) Original-Received: by 10.202.172.198 with HTTP; Wed, 23 Mar 2016 14:38:10 -0700 (PDT) In-Reply-To: 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:115417 Archived-At: --089e0160c908cd9d42052ebe2710 Content-Type: text/plain; charset=UTF-8 On Wed, Mar 23, 2016 at 5:28 PM, Stefan Monnier 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 --089e0160c908cd9d42052ebe2710 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Wed, Mar 23, 2016 at 5:28 PM, Stefan Monnier <monnier@iro.umontr= eal.ca> wrote:
(defalias 'turn-on-cursor-intangible-mode #= 'cursor-intangible-mode)

would work just as well.=C2=A0 Better yet: just use `cursor-intangible-mode= '
instead and skip turn-on-cursor-intangible-mode altogether, since it's<= br> just redundant.

Thanks!

> Also, would it be wise to enable cursor-intangible-mode globall= y? 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 &qu= ot;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 th= e prompt
and copy portions of it= like any other chunk of text, so I think we
should generally (by default) refrain from making text intangi= ble except
when *really* needed.=

OK
=C2=A0
PS: What's with the `point-entered' in the subject?

I believe that the OP (Dav= id)'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-enter=
ed minibuffer-avoid-prompt))
The se=
condary question I believe is how to get the above to work in emacs 25.1 (e=
ven though point-entered and minibuffer-avoid-prompt are obsolete).

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

(progn
=C2=A0 (setq minibuffer-prom= pt-properties '(read-only t cursor-intangible t face minibuffer-prompt)= )
=C2=A0 (add-hook 'minibuffer-setup-ho= ok #'cursor-intangible-mode))
--
Kaushal Modi
--089e0160c908cd9d42052ebe2710--