Quantcast

emacs 24: cursor shape is now i

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

emacs 24: cursor shape is now i

Xah Lee-2
In emacs 24, the cursor shape seems to have changed from a solid box
to i-beam?

however, setting the following won't work?

(setq cursor-type 'box)
(setq cursor-type 'bar)

any hints on what's going on?

 Xah
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: emacs 24: cursor shape is now i

XeCycle
Xah Lee <[hidden email]> writes:

> In emacs 24, the cursor shape seems to have changed from a solid box
> to i-beam?
>
> however, setting the following won't work?
>
> (setq cursor-type 'box)
> (setq cursor-type 'bar)

Works for me.

> any hints on what's going on?

Did you forget that it's buffer-local?

--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591

attachment0 (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: emacs 24: cursor shape is now i

Drew Adams
> > In emacs 24, the cursor shape seems to have changed from a solid box
> > to i-beam? however, setting the following won't work?
> > (setq cursor-type 'box)
> > (setq cursor-type 'bar)
>
> Works for me.
> Did you forget that it's buffer-local?

I too do not see any such change.  The behavior with `emacs -Q' seems to be the
same on Emacs 23, 24 pretest, and latest 24 build, all on Windows.

Check your init file, to be sure you are not doing something that affects this
behavior.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: emacs 24: cursor shape is now i

Xah Lee-2
In reply to this post by Xah Lee-2
On May 7, 7:44 am, XeCycle <[hidden email]> wrote:

> Xah Lee <[hidden email]> writes:
> > In emacs 24, the cursor shape seems to have changed from a solid box
> > to i-beam?
>
> > however, setting the following won't work?
>
> > (setq cursor-type 'box)
> > (setq cursor-type 'bar)
>
> Works for me.
>
> > any hints on what's going on?
>
> Did you forget that it's buffer-local?
> Carl Lei (XeCycle)

thanks Carl Lei and Drew Adams.

it's strange.

this is

GNU Emacs 24.1.50.1 (i386-mingw-nt6.1.7601) of 2012-04-23 on MARVIN

started with -Q.

it display cursor as i-beam.

Then, if i paste this

(setq cursor-type 'box)

evaluate it, it has no effect in the display. (but the variable did
get set, verified with describe-variable)

i found on the web another guy who had similar problem
http://sinewalker.wordpress.com/2011/11/30/curious-cursor-complication-with-emacs-and-windows-magnifier/

but mine isn't related to Windows magnifier he speaks of. I don't have
that turned on.

 Xah
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: emacs 24: cursor shape is now i

Drew Adams
> GNU Emacs 24.1.50.1 (i386-mingw-nt6.1.7601) of 2012-04-23 on MARVIN
> started with -Q.

I tried with this, which is pretty close, if not identical:

In GNU Emacs 24.1.50.1 (i386-mingw-nt5.1.2600)
 of 2012-04-23 on MARVIN
Bzr revision: 108006
[hidden email]-20120423103325-xmra3329elgzhmpc
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --no-opt --enable-checking --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include
 -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include
 -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'

> it display cursor as i-beam.

Are you sure you don't mean the mouse pointer?  The cursor (aka text cursor) is
what indicates point, which is where text gets inserted.

I see the mouse pointer as an I-beam or an arrow, depending on what the mouse is
over.  But I see the cursor as a box (by default).

> Then, if i paste this
> (setq cursor-type 'box)
> evaluate it, it has no effect in the display. (but the variable did
> get set, verified with describe-variable)

See above.  My crystal ball is trying to tell me that you are looking at the
mouse pointer but setting the text cursor type.

You change the mouse pointer shape using variable (not an option)
`x-pointer-shape'.  But I don't think it is possible to change the pointer shape
on MS Windows.  See (elisp) `Pointer Shape'.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: emacs 24: cursor shape is now i

Xah Lee-2
In reply to this post by Xah Lee-2
On May 7, 11:32 am, "Drew Adams" <[hidden email]> wrote:

> > GNU Emacs 24.1.50.1 (i386-mingw-nt6.1.7601) of 2012-04-23 on MARVIN
> > started with -Q.
>
> I tried with this, which is pretty close, if not identical:
>
> In GNU Emacs 24.1.50.1 (i386-mingw-nt5.1.2600)
>  of 2012-04-23 on MARVIN
> Bzr revision: 108006
> [hidden email]-20120423103325-xmra3329elgzhmpc
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> Configured using:
>  `configure --with-gcc (4.6) --no-opt --enable-checking --cflags
>  -ID:/devel/emacs/libs/libXpm-3.5.8/include
>  -ID:/devel/emacs/libs/libXpm-3.5.8/src
>  -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
>  -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
>  -ID:/devel/emacs/libs/giflib-4.1.4-1/include
>  -ID:/devel/emacs/libs/jpeg-6b-4/include
>  -ID:/devel/emacs/libs/tiff-3.8.2-1/include
>  -ID:/devel/emacs/libs/gnutls-3.0.9/include
>  -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include
>  -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'
>
> > it display cursor as i-beam.
>
> Are you sure you don't mean the mouse pointer?  The cursor (aka text cursor) is
> what indicates point, which is where text gets inserted.
>
> I see the mouse pointer as an I-beam or an arrow, depending on what the mouse is
> over.  But I see the cursor as a box (by default).
>
> > Then, if i paste this
> > (setq cursor-type 'box)
> > evaluate it, it has no effect in the display. (but the variable did
> > get set, verified with describe-variable)
>
> See above.  My crystal ball is trying to tell me that you are looking at the
> mouse pointer but setting the text cursor type.
>
> You change the mouse pointer shape using variable (not an option)
> `x-pointer-shape'.  But I don't think it is possible to change the pointer shape
> on MS Windows.  See (elisp) `Pointer Shape'.

this is very strange. No, it's not mouse pointer.

in summery, the problem went away. The cursor is now the normal solid
box, even if i load ALL my inits. The problem was happening to GNU
Emacs with -Q. Very odd indeed.

here's the interesting part. When trying to reproduce this or research
this in more detail, i actually renamed my .emacs (even i have no
reason to, because i was starting FSF's build of GNU emacs, with -Q,
and was reproducible 100%). But anyway, on a whim i renamed my .emacs.
Then, the problem never showed up, no matter what i do or from what
emacs version, nor showing up when i launch my heavily customized
emacs full.

i think that guy's blog in my previous post has something to do with
it. Certainly a odd problem. Maybe something to do with some lowlevel
rendering/display system on Windows.

Thanks for all the help. I'll report more if it happens again and i
can reproduce it.

 Xah
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: emacs 24: cursor shape is now i

Xah Lee-2
On May 7, 6:54 pm, Xah Lee <[hidden email]> wrote:

> On May 7, 11:32 am, "Drew Adams" <[hidden email]> wrote:
>
>
>
>
>
>
>
>
>
> > > GNU Emacs 24.1.50.1 (i386-mingw-nt6.1.7601) of 2012-04-23 on MARVIN
> > > started with -Q.
>
> > I tried with this, which is pretty close, if not identical:
>
> > In GNU Emacs 24.1.50.1 (i386-mingw-nt5.1.2600)
> >  of 2012-04-23 on MARVIN
> > Bzr revision: 108006
> > [hidden email]-20120423103325-xmra3329elgzhmpc
> > Windowing system distributor `Microsoft Corp.', version 5.1.2600
> > Configured using:
> >  `configure --with-gcc (4.6) --no-opt --enable-checking --cflags
> >  -ID:/devel/emacs/libs/libXpm-3.5.8/include
> >  -ID:/devel/emacs/libs/libXpm-3.5.8/src
> >  -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
> >  -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
> >  -ID:/devel/emacs/libs/giflib-4.1.4-1/include
> >  -ID:/devel/emacs/libs/jpeg-6b-4/include
> >  -ID:/devel/emacs/libs/tiff-3.8.2-1/include
> >  -ID:/devel/emacs/libs/gnutls-3.0.9/include
> >  -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include
> >  -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'
>
> > > it display cursor as i-beam.
>
> > Are you sure you don't mean the mouse pointer?  The cursor (aka text cursor) is
> > what indicates point, which is where text gets inserted.
>
> > I see the mouse pointer as an I-beam or an arrow, depending on what the mouse is
> > over.  But I see the cursor as a box (by default).
>
> > > Then, if i paste this
> > > (setq cursor-type 'box)
> > > evaluate it, it has no effect in the display. (but the variable did
> > > get set, verified with describe-variable)
>
> > See above.  My crystal ball is trying to tell me that you are looking at the
> > mouse pointer but setting the text cursor type.
>
> > You change the mouse pointer shape using variable (not an option)
> > `x-pointer-shape'.  But I don't think it is possible to change the pointer shape
> > on MS Windows.  See (elisp) `Pointer Shape'.
>
> this is very strange. No, it's not mouse pointer.
>
> in summery, the problem went away. The cursor is now the normal solid
> box, even if i load ALL my inits. The problem was happening to GNU
> Emacs with -Q. Very odd indeed.
>
> here's the interesting part. When trying to reproduce this or research
> this in more detail, i actually renamed my .emacs (even i have no
> reason to, because i was starting FSF's build of GNU emacs, with -Q,
> and was reproducible 100%). But anyway, on a whim i renamed my .emacs.
> Then, the problem never showed up, no matter what i do or from what
> emacs version, nor showing up when i launch my heavily customized
> emacs full.
>
> i think that guy's blog in my previous post has something to do with
> it. Certainly a odd problem. Maybe something to do with some lowlevel
> rendering/display system on Windows.
>
> Thanks for all the help. I'll report more if it happens again and i
> can reproduce it.
>
>  Xah

found the answer.

when Microsoft Speech Recognition is on, even in a not listening
state, the cursor will be i-beam, even if you start emacs with -Q.
Setting cursor-type has no effect, just like the other guy blogged
about. (his's problem is when screen magnify is on)

 Xah
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: emacs 24: cursor shape is now i

zhanyingjian
I run into the same problem. And I checked the speech recognition and screen magnify, both are turned off. Any suggestions?
BTW, I do think it's related with some office option.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: emacs 24: cursor shape is now i

drain
Is there a technical reason to prefer bar / box / hollow? i.e.,
why is box the default setting for the variable?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: emacs 24: cursor shape is now i

sunchen8635
In reply to this post by Xah Lee-2
On Monday, May 7, 2012 at 9:42:31 AM UTC-4, Xah Lee wrote:

> In emacs 24, the cursor shape seems to have changed from a solid box
> to i-beam?
>
> however, setting the following won't work?
>
> (setq cursor-type 'box)
> (setq cursor-type 'bar)
>
> any hints on what's going on?
>
>  Xah

I am experiencing exactly the same issue which drives me crazy. Changing the variables or editing .emacs has no effect on it. Any idea? Windows 10 with emacs 25.1.1.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: emacs 24: cursor shape is now i

sunchen8635
On Monday, April 17, 2017 at 5:15:48 PM UTC-4, [hidden email] wrote:

> On Monday, May 7, 2012 at 9:42:31 AM UTC-4, Xah Lee wrote:
> > In emacs 24, the cursor shape seems to have changed from a solid box
> > to i-beam?
> >
> > however, setting the following won't work?
> >
> > (setq cursor-type 'box)
> > (setq cursor-type 'bar)
> >
> > any hints on what's going on?
> >
> >  Xah
>
> I am experiencing exactly the same issue which drives me crazy. Changing the variables or editing .emacs has no effect on it. Any idea? Windows 10 with emacs 25.1.1.

Oh by the way, when I followed what was described and load emacs without an init file, i.e. through emacs -Q, then close and launch emacs the usual way, everything works just fine. I got the right cursor shape with the right cursor color. Isnt it weird...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: emacs 24: cursor shape is now i

Jason Rumney-5
On Tuesday, 18 April 2017 05:24:32 UTC+8, [hidden email]  wrote:

> > On Monday, May 7, 2012 at 9:42:31 AM UTC-4, Xah Lee wrote:
> > > In emacs 24, the cursor shape seems to have changed from a solid box
> > > to i-beam?
> > >
> >
> > I am experiencing exactly the same issue which drives me crazy. Changing the variables or editing .emacs has no effect on it. Any idea? Windows 10 with emacs 25.1.1.
>
> Oh by the way, when I followed what was described and load emacs without an init file, i.e. through emacs -Q, then close and launch emacs the usual way, everything works just fine. I got the right cursor shape with the right cursor color. Isnt it weird...

Emacs may have detected some sort of assistive device (like screen magnifier, or a screen reader) active at the time of startup the first time.

When such software is detected, Emacs uses a native Windows cursor so that the assistive software can track the cursor properly and do its job.
The variables that control the look of Emacs cursor do not work when the native Windows cursor is being used.
Loading...