GNU bug report logs - #18437
24.3.93; cursor changes color and size at end of line

Previous Next

Package: emacs;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Tue, 9 Sep 2014 21:13:02 UTC

Severity: normal

Tags: fixed

Found in version 24.3.93

Fixed in version 25.1

Done: Alan Third <alan <at> idiocy.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 18437 in the body.
You can then email your comments to 18437 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 bug-gnu-emacs <at> gnu.org:
bug#18437; Package emacs. (Tue, 09 Sep 2014 21:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Reitter <david.reitter <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 09 Sep 2014 21:13:02 GMT) Full text and rfc822 format available.

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

From: David Reitter <david.reitter <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.93; cursor changes color and size at end of line
Date: Tue, 9 Sep 2014 17:12:29 -0400
Set cursor color and type:

(setq default-frame-alist
	    '((cursor-type . 'bar)
	      (cursor-color . "red")))

Then resize the frame so that the window is just about wide enough to displ=
ay one of the lines in the current buffer.

Move point to end of one of the longest line.

Note cursor changes color to black.  Move point one to the left, and cursor=
will change back to what it's supposed to be.

Also (not demonstrated here), the cursor will change size to small if the default face in this buffer is enlarged with an entry in `face-remapping-alist'.


I’ve only noticed this today after merging the latest changes on the -24 branch into my Aquamacs branch, so this looks like a regression to me.






In GNU Emacs 24.3.93.1 (x86_64-apple-darwin13.3.0, NS apple-appkit-1265.21)
of 2014-08-15 on builder10-9.porkrind.org
Windowing system distributor `Apple', version 10.3.1265
Configured using:
`configure --with-ns'

Important settings:
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  which-function-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> C-h l <f11> <f11> <f11> <f11>=20
C-h k <f11> <help-echo> <help-echo> <help-echo> <help-echo>=20
<help-echo> <help-echo> <help-echo> <help-echo> C-h=20
f r e c t a n g l e - m a r k <tab> <return> <help-echo>=20
<help-echo> <down-mouse-1> <mouse-1> <help-echo> C-x=20
C-w <down-mouse-1> <mouse-1> C-x 0 <wheel-left> <double-wheel-left>=20
<down-mouse-1> <mouse-1> <right> <right> <right> <right>=20
<right> <left> <left> <right> s-t s-t <down-mouse-1>=20
<mouse-1> <down-mouse-1> <mouse-1> s-n C-x b <switch-frame>=20
* s c s-w <down-mouse-1> <mouse-1> s-w C-x 0 C-x b=20
* s c r <tab> <return> ( s e d t q <backspace> <backspace>=20
<backspace> t q SPC c u r s o r - t y p e C-x C-e SPC=20
' b <backspace> b a r ) C-x C-e <return> ( s e t q=20
SPC c u r s o r - c o l o r C-x C-e C-q C-x 0 C-x b=20
<up> <up> <backspace> <tab> <tab> r e <tab> <kp-delete>=20
<kp-delete> <kp-delete> <kp-delete> <kp-delete> <kp-delete>=20
<kp-delete> <kp-delete> <kp-delete> <kp-delete> <kp-delete>=20
<return> <f1> <escape> <down> <escape> : ( s e t q=20
SPC c u r s o r - t y p e SPC ' b a r ) <return> <up>=20
<down> C-e <left> <right> s-+ <help-echo> <down-mouse-1>=20
<mouse-1> <return> s-v C-x 5 2 <switch-frame> <wheel-right>=20
<wheel-right> <wheel-right> <wheel-right> <double-wheel-right>=20
<switch-frame> C-x b <return> <return> <return> s-v=20
<left> <down-mouse-1> <mouse-1> ( c u r s o r - t y=20
p e SPC . SPC ' b a r ) <return> <down> <left> C-x=20
C-e C-x 5 2 <down-mouse-1> <mouse-1> <switch-frame>=20
<down-mouse-1> <mouse-1> <double-down-mouse-1> <double-mouse-1>=20
r e d <down-mouse-1> <mouse-1> <double-down-mouse-1>=20
<double-mouse-1> <down-mouse-1> <mouse-1> <double-down-mouse-1>=20
<double-mouse-1> <backspace> r e d <down-mouse-1> <mouse-1>=20
C-x C-e C-x 5 2 <help-echo> <left> <right> <right>=20
<left> <left> <right> <left> <down-mouse-1> <mouse-movement>=20
<mouse-movement> <drag-mouse-1> s-c <menu-bar> <help-menu>=20
<send-emacs-bug-report>

Recent messages:
delete-forward-char: End of buffer [2 times]
<f1> ESC is undefined
bar
s-+ is undefined
command-execute: Buffer is read-only: #<buffer rect.el.gz> [2 times]
<wheel-right> is undefined [3 times]
<nil> <wheel-right> is undefined
<nil> <double-wheel-right> is undefined
Mark set
((cursor-type quote bar) (cursor-color . "palegoldenrod"))
((cursor-type quote bar) (cursor-color . "red"))

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils debug jka-compr find-func kmacro help-fns
help-mode easymenu ghostedit ghostedit-stopwords-en easy-mmode
which-func imenu time-date tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process cocoa ns
multi-tty emacs)

Memory information:
((conses 16 84416 7036)
(symbols 48 17785 0)
(miscs 40 199 298)
(strings 32 13261 4161)
(string-bytes 1 369799)
(vectors 16 9927)
(vector-slots 8 441014 8178)
(floats 8 101 613)
(intervals 56 523 19)
(buffers 960 16))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18437; Package emacs. (Tue, 09 Sep 2014 21:42:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: David Reitter <david.reitter <at> gmail.com>, 18437 <at> debbugs.gnu.org
Subject: RE: bug#18437: 24.3.93; cursor changes color and size at end of line
Date: Tue, 9 Sep 2014 14:41:18 -0700 (PDT)
> Set cursor color and type:
> (setq default-frame-alist '((cursor-type . 'bar) (cursor-color . "red")))
> 
> Then resize the frame so that the window is just about wide enough
> to display one of the lines in the current buffer.
> Move point to end of one of the longest line.
> 
> Note cursor changes color to black.  Move point one to the left, and
> cursor will change back to what it's supposed to be.

1. I don't see that on MS Windows, with this build, from emacs -Q:

In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-08-15 on LEG570
Repository revision: 117706 rgm <at> gnu.org-20140815043406-p5hbu97cbm7pulcn
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'

2. You probably also meant (cursor-type . bar), not (cursor-type . 'bar).

(With the quote I get a hollow red box, not a red bar.)


> Also (not demonstrated here), the cursor will change size to small
> if the default face in this buffer is enlarged with an entry in
> `face-remapping-alist'.

I do not see that either (on Windows).

> I've only noticed this today after merging the latest changes on the
> -24 branch into my Aquamacs branch, so this looks like a regression
> to me.

Hm, the version you report from shows a build of 8/15 (FWIW, my build
is also from 8/15).

HTH.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18437; Package emacs. (Wed, 10 Sep 2014 17:24:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Reitter <david.reitter <at> gmail.com>
Cc: 18437 <at> debbugs.gnu.org
Subject: Re: bug#18437: 24.3.93; cursor changes color and size at end of line
Date: Wed, 10 Sep 2014 20:23:35 +0300
> From: David Reitter <david.reitter <at> gmail.com>
> Date: Tue, 9 Sep 2014 17:12:29 -0400
> 
> Set cursor color and type:
> 
> (setq default-frame-alist
> 	    '((cursor-type . 'bar)
> 	      (cursor-color . "red")))
> 
> Then resize the frame so that the window is just about wide enough to display one of the lines in the current buffer.
> 
> Move point to end of one of the longest line.
> 
> Note cursor changes color to black.  Move point one to the left, and cursor will change back to what it's supposed to be.

Not reproducible here, with today's emacs-24 branch.

> Also (not demonstrated here), the cursor will change size to small if the default face in this buffer is enlarged with an entry in `face-remapping-alist'.

I cannot reproduce this, either.  You didn't say how you enlarged the
font; I did that with "C-x C-+".

> I’ve only noticed this today after merging the latest changes on the -24 branch into my Aquamacs branch, so this looks like a regression to me.

Could be Aquamacs specific.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18437; Package emacs. (Wed, 10 Sep 2014 17:25:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: david.reitter <at> gmail.com, 18437 <at> debbugs.gnu.org
Subject: Re: bug#18437: 24.3.93; cursor changes color and size at end of line
Date: Wed, 10 Sep 2014 20:24:48 +0300
> Date: Tue, 9 Sep 2014 14:41:18 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> 
> > Set cursor color and type:
> > (setq default-frame-alist '((cursor-type . 'bar) (cursor-color . "red")))
> > 
> > Then resize the frame so that the window is just about wide enough
> > to display one of the lines in the current buffer.
> > Move point to end of one of the longest line.
> > 
> > Note cursor changes color to black.  Move point one to the left, and
> > cursor will change back to what it's supposed to be.
> 
> 1. I don't see that on MS Windows, with this build, from emacs -Q:
> 
> In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
>  of 2014-08-15 on LEG570

Just for the record: David uses a build from the release branch in the
repository, not from the trunk.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18437; Package emacs. (Wed, 10 Sep 2014 18:00:04 GMT) Full text and rfc822 format available.

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

From: Alp Aker <alptekin.aker <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: David Reitter <david.reitter <at> gmail.com>, 18437 <at> debbugs.gnu.org,
 Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#18437: 24.3.93; cursor changes color and size at end of line
Date: Wed, 10 Sep 2014 13:59:15 -0400
[Message part 1 (text/plain, inline)]
> Then resize the frame so that the window is just about wide enough to
> display one of the lines in the current buffer.

[snip]

> Note cursor changes color to black.  Move point one to the left, and
cursor
> will change back to what it's supposed to be.

Do you have overflow-newline-into-fringe set to non-nil?  If so, then this
is a problem specific to the NS port:  the cursor is being displayed in the
foreground color of your fringe
face.  This doesn't look like a regression, though, so fixed in trunk
(r117858).

I haven't looked at the face remapping issue.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18437; Package emacs. (Wed, 10 Sep 2014 20:36:02 GMT) Full text and rfc822 format available.

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

From: David Reitter <david.reitter <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18437 <at> debbugs.gnu.org
Subject: Re: bug#18437: 24.3.93; cursor changes color and size at end of line
Date: Wed, 10 Sep 2014 16:35:21 -0400
[Message part 1 (text/plain, inline)]
On Sep 10, 2014, at 1:23 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> Not reproducible here, with today's emacs-24 branch.

I used the pretest as indicated and replicated it.

What I’m doing is

Emacs -Q

(setq default-frame-alist
	    '((cursor-type . bar)
	      (cursor-color . "red")))

C-x 5 2

Move cursor to end of longest line (“red”))) in my case)

Resize frame horizontally so that the cursor shows up in the right fringe (see screenshot).  38x43 in my case.








> I cannot reproduce this, either.  You didn't say how you enlarged the
> font; I did that with "C-x C-+”.

I can’t do that either, because I can’t get the cursor to show up in the fringe.  That’s why I didn’t give you a recipe.  This one came just from Aquamacs.

> Could be Aquamacs specific.

Could be NS / Mac specific.  The screenshot is taken with GNU Emacs 24.3.93.1.

[Message part 2 (text/html, inline)]
[PastedGraphic-3.png (image/png, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18437; Package emacs. (Wed, 10 Sep 2014 20:38:02 GMT) Full text and rfc822 format available.

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

From: David Reitter <david.reitter <at> gmail.com>
To: Alp Aker <alptekin.aker <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 18437 <at> debbugs.gnu.org,
 Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#18437: 24.3.93; cursor changes color and size at end of line
Date: Wed, 10 Sep 2014 16:37:33 -0400
On Sep 10, 2014, at 1:59 PM, Alp Aker <alptekin.aker <at> gmail.com> wrote:
> 
> > Note cursor changes color to black.  Move point one to the left, and cursor 
> > will change back to what it's supposed to be.
> 
> Do you have overflow-newline-into-fringe set to non-nil?  If so, then this is a problem specific to the NS port:  the cursor is being displayed in the foreground color of your fringe 
> face.  This doesn't look like a regression, though, so fixed in trunk (r117858).

Yes overflow-newline-into-fringe is t.  This is obviously the default then.

OK, thanks for your fix.  I’m going to grab and merge it.  If I see the problem again, I’ll update this bug.





Added tag(s) fixed. Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Fri, 30 Sep 2016 20:50:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.1, send any further explanations to 18437 <at> debbugs.gnu.org and David Reitter <david.reitter <at> gmail.com> Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Fri, 30 Sep 2016 20:51:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 29 Oct 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 201 days ago.

Previous Next


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