From: storm@cua.dk (Kim F. Storm)
Subject: Re: [ulrich@a0.complang.tuwien.ac.at: blink-cursor improvement suggestion]
Date: 26 Feb 2002 12:02:03 +0100 [thread overview]
Message-ID: <5x664k33ro.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <5xit8lcl9m.fsf@kfs2.cua.dk>
storm@cua.dk (Kim F. Storm) writes:
> Alternatively, it could "blink" between the hollow and normal cursor
> shapes. Then we don't need an extra face.
Below you'll find a patch which does this (when the block cursor is used).
What do you think?
Index: xterm.c
===================================================================
RCS file: /cvs/emacs/src/xterm.c,v
retrieving revision 1.707
diff -c -r1.707 xterm.c
*** xterm.c 23 Feb 2002 16:33:00 -0000 1.707
--- xterm.c 26 Feb 2002 10:59:31 -0000
***************
*** 11640,11647 ****
else
new_cursor_type = HOLLOW_BOX_CURSOR;
}
- else if (w->cursor_off_p)
- new_cursor_type = NO_CURSOR;
else
{
struct buffer *b = XBUFFER (w->buffer);
--- 11640,11645 ----
***************
*** 11651,11656 ****
--- 11649,11661 ----
else
new_cursor_type = x_specified_cursor_type (b->cursor_type,
&new_cursor_width);
+ if (w->cursor_off_p)
+ {
+ if (new_cursor_type == FILLED_BOX_CURSOR)
+ new_cursor_type = HOLLOW_BOX_CURSOR;
+ else
+ new_cursor_type = NO_CURSOR;
+ }
}
}
Index: w32term.c
===================================================================
RCS file: /cvs/emacs/src/w32term.c,v
retrieving revision 1.146
diff -c -r1.146 w32term.c
*** w32term.c 23 Feb 2002 16:28:28 -0000 1.146
--- w32term.c 26 Feb 2002 10:59:32 -0000
***************
*** 9759,9766 ****
else
new_cursor_type = HOLLOW_BOX_CURSOR;
}
- else if (w->cursor_off_p)
- new_cursor_type = NO_CURSOR;
else
{
struct buffer *b = XBUFFER (w->buffer);
--- 9759,9764 ----
***************
*** 9770,9775 ****
--- 9768,9780 ----
else
new_cursor_type = x_specified_cursor_type (b->cursor_type,
&new_cursor_width);
+ if (w->cursor_off_p)
+ {
+ if (new_cursor_type == FILLED_BOX_CURSOR)
+ new_cursor_type = HOLLOW_BOX_CURSOR;
+ else
+ new_cursor_type = NO_CURSOR;
+ }
}
}
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2002-02-26 11:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-25 0:09 [ulrich@a0.complang.tuwien.ac.at: blink-cursor improvement suggestion] Richard Stallman
2002-02-25 9:51 ` Kim F. Storm
2002-02-25 20:55 ` Jason Rumney
2002-02-25 20:47 ` Jason Rumney
2002-02-25 21:19 ` Kim F. Storm
2002-02-26 11:02 ` Kim F. Storm [this message]
2002-02-26 11:46 ` Juanma Barranquero
2002-02-26 12:05 ` Kim F. Storm
2002-02-26 14:25 ` Juanma Barranquero
2002-02-27 5:50 ` Richard Stallman
2002-02-27 10:12 ` Kim F. Storm
2002-02-28 4:08 ` Richard Stallman
2002-03-01 23:27 ` Kim F. Storm
2002-03-03 16:06 ` Tak Ota
2002-03-03 19:43 ` Tak Ota
2002-02-26 20:15 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5x664k33ro.fsf@kfs2.cua.dk \
--to=storm@cua.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.