unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7474: In latest source, icomplete-mode makes cursor disappear in minibuffer
@ 2010-11-24 19:56 Francis Litterio
  2010-11-24 20:21 ` Fran
  2010-11-24 21:16 ` Eli Zaretskii
  0 siblings, 2 replies; 4+ messages in thread
From: Francis Litterio @ 2010-11-24 19:56 UTC (permalink / raw)
  To: 7474

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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7474: In latest source, icomplete-mode makes cursor disappear in minibuffer
  2010-11-24 19:56 bug#7474: In latest source, icomplete-mode makes cursor disappear in minibuffer Francis Litterio
@ 2010-11-24 20:21 ` Fran
  2010-11-24 21:16 ` Eli Zaretskii
  1 sibling, 0 replies; 4+ messages in thread
From: Fran @ 2010-11-24 20:21 UTC (permalink / raw)
  To: bug-gnu-emacs

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)))))))







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7474: In latest source, icomplete-mode makes cursor disappear in minibuffer
  2010-11-24 19:56 bug#7474: In latest source, icomplete-mode makes cursor disappear in minibuffer Francis Litterio
  2010-11-24 20:21 ` Fran
@ 2010-11-24 21:16 ` Eli Zaretskii
  2010-11-25 18:40   ` Eli Zaretskii
  1 sibling, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2010-11-24 21:16 UTC (permalink / raw)
  To: Francis Litterio; +Cc: 7474

> From: flitterio@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7474: In latest source, icomplete-mode makes cursor disappear in minibuffer
  2010-11-24 21:16 ` Eli Zaretskii
@ 2010-11-25 18:40   ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2010-11-25 18:40 UTC (permalink / raw)
  To: flitterio, 7474-done

> Date: Wed, 24 Nov 2010 23:16:21 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 7474@debbugs.gnu.org
> 
> > From: flitterio@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-25 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-24 19:56 bug#7474: In latest source, icomplete-mode makes cursor disappear in minibuffer Francis Litterio
2010-11-24 20:21 ` Fran
2010-11-24 21:16 ` Eli Zaretskii
2010-11-25 18:40   ` Eli Zaretskii

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).