GNU bug report logs - #7474
In latest source, icomplete-mode makes cursor disappear in minibuffer

Previous Next

Package: emacs;

Reported by: flitterio <at> gmail.com (Francis Litterio)

Date: Wed, 24 Nov 2010 20:08:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7474 in the body.
You can then email your comments to 7474 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7474; Package emacs. (Wed, 24 Nov 2010 20:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to flitterio <at> gmail.com (Francis Litterio):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 24 Nov 2010 20:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: flitterio <at> gmail.com (Francis Litterio)
To: bug-gnu-emacs <at> gnu.org
Subject: In latest source, icomplete-mode makes cursor disappear in minibuffer
Date: Wed, 24 Nov 2010 14:56:28 -0500
Using Emacs built from the latest source on Windows 7, the cursor
can be made to disappear as follows:

1. Start Emacs with: emacs -Q

2. Type: ESC ESC : (icomplete-mode 1) RET C-h v desc

3. The cursor is no longer visisble in the minibuffer.

4. Type: C-b

5. The cursor is visible over the letter 'c' in "desc".

6. Type: C-f

7. The cursor is once again no longer visible.

This is acting like some of the text in the minibuffer has the
'intangible property, but the word "intangible" doesn't appear anywhere
in lisp/icomplete.el.
--
Fran





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7474; Package emacs. (Wed, 24 Nov 2010 20:17:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Fran <flitterio <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#7474: In latest source,	icomplete-mode
	makes cursor disappear in minibuffer
Date: Wed, 24 Nov 2010 20:21:18 +0000 (UTC)
I wrote:

> Using Emacs built from the latest source on Windows 7, the cursor
> can be made to disappear as follows:
> 
> 1. Start Emacs with: emacs -Q
> 
> 2. Type: ESC ESC : (icomplete-mode 1) RET C-h v desc
> 
> 3. The cursor is no longer visisble in the minibuffer.
> 
> 4. Type: C-b
> 
> 5. The cursor is visible over the letter 'c' in "desc".
> 
> 6. Type: C-f
> 
> 7. The cursor is once again no longer visible.
> 
> This is acting like some of the text in the minibuffer has the
> 'intangible property, but the word "intangible" doesn't appear anywhere
> in lisp/icomplete.el.

I think this has to do with the use of the 'cursor text property in this code in
src/icomplete.el (slightly elided for readability):

(defun icomplete-exhibit ()
  ...
  (when (and icomplete-mode (icomplete-simple-completing-p))
    (save-excursion
      (goto-char (point-max))
                                        ; Insert the match-status information:
      (if (and (> (point-max) (minibuffer-prompt-end))
               buffer-undo-list         ; Wait for some user input.
               ...)
          (let ((text (...)
                (buffer-undo-list t)
                deactivate-mark)
            ;; Do nothing if while-no-input was aborted.
            (when (stringp text)
              (move-overlay icomplete-overlay (point) (point) (current-buffer))
              ;; The current C cursor code doesn't know to use the overlay's
              ;; marker's stickiness to figure out whether to place the cursor
              ;; before or after the string, so let's spoon-feed it the pos.
              (put-text-property 0 1 'cursor t text)
              (overlay-put icomplete-overlay 'after-string text)))))))






Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7474; Package emacs. (Wed, 24 Nov 2010 21:10:03 GMT) Full text and rfc822 format available.

Message #11 received at 7474 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: flitterio <at> gmail.com (Francis Litterio)
Cc: 7474 <at> debbugs.gnu.org
Subject: Re: bug#7474: In latest source,
	icomplete-mode makes cursor disappear in minibuffer
Date: Wed, 24 Nov 2010 23:16:21 +0200
> From: flitterio <at> gmail.com (Francis Litterio)
> Date: Wed, 24 Nov 2010 14:56:28 -0500
> Cc: 
> 
> Using Emacs built from the latest source on Windows 7, the cursor
> can be made to disappear as follows:

I see it on Windows XP as well.  It's probably my fault, due to the
latest changes in cursor positioning code.  I will take a look in a
couple of days.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 25 Nov 2010 18:33:02 GMT) Full text and rfc822 format available.

Notification sent to flitterio <at> gmail.com (Francis Litterio):
bug acknowledged by developer. (Thu, 25 Nov 2010 18:33:02 GMT) Full text and rfc822 format available.

Message #16 received at 7474-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: flitterio <at> gmail.com, 7474-done <at> debbugs.gnu.org
Subject: Re: bug#7474: In latest source,
	icomplete-mode makes cursor disappear in minibuffer
Date: Thu, 25 Nov 2010 20:40:18 +0200
> Date: Wed, 24 Nov 2010 23:16:21 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 7474 <at> debbugs.gnu.org
> 
> > From: flitterio <at> gmail.com (Francis Litterio)
> > Date: Wed, 24 Nov 2010 14:56:28 -0500
> > Cc: 
> > 
> > Using Emacs built from the latest source on Windows 7, the cursor
> > can be made to disappear as follows:
> 
> I see it on Windows XP as well.  It's probably my fault, due to the
> latest changes in cursor positioning code.

As expected, this was due to latest changes in cursor positioning.
Should be fixed now (in revno 102512).  Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 24 Dec 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 184 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.