all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ben Key <bkey76@gmail.com>
To: Emacs-devel@gnu.org
Subject: Bar Cursor Still To Narrow on Mac OS X
Date: Sat, 5 Mar 2011 17:41:52 -0600	[thread overview]
Message-ID: <AANLkTimi+GRBZ1m58j7nvQee5+MAXn6RgS+8j1ShQZuh@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1895 bytes --]

Hello,

Some time ago I reported a bug in Emacs that caused the bar cursor to be too
narrow in the Mac OS X version of Emacs.  I also submitted a patch to fix
the problem.  This problem was supposedly fixed in revision 103406 by Chong
Yidong.  The problem is that this change did not fix the problem.  In fact
it made it worse.

The original problem was based on a line of code that effectively caused the
user selected value for the Bar Cursor to be completely ignored.  This line
was as follows.
     s.size.width = min (cursor_width, 2); //FIXME(see above)

This line caused the cursor width to be set to 2 even if the user requested
cursor width was a value higher than 2.

The problem is that in the change made by Chong Yidong, there is a similar
line that has the same effect of causing the user specified value for the
cursor width to be ignored.  This line is as follows.
      cursor_width = min (cursor_width, 1);

The end result of this line is that now the user specified value for cursor
width is still ignored and instead the value 1 is used as the cursor width.
So now when the user requests that Emacs use a 4 pixel wide bar cursor, they
get a 1 pixel wide bar cursor.  Personally I preferred the 2 pixel wide
cursor that was displayed before the change made in revision 103406.  What I
would prefer even more would be for Emacs to NOT ignore the user requested
value for cursor width.

I am once again submitting a patch that fixes this problem.  This patch
simply removes the offending line from nsterm.m.

<patch>
=== modified file 'src/nsterm.m'
--- src/nsterm.m    2011-03-03 08:03:01 +0000
+++ src/nsterm.m    2011-03-05 23:32:39 +0000
@@ -2284,7 +2284,6 @@
     {
       if (cursor_width < 0)
     cursor_width = FRAME_CURSOR_WIDTH (f);
-      cursor_width = min (cursor_width, 1);
       w->phys_cursor_width = cursor_width;
     }


</patch>

Please commit this patch.

[-- Attachment #2: Type: text/html, Size: 2159 bytes --]

             reply	other threads:[~2011-03-05 23:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-05 23:41 Ben Key [this message]
2011-03-05 23:55 ` Bar Cursor Still To Narrow on Mac OS X Chong Yidong
2011-03-06  2:45   ` Ben Key
2011-03-06 20:24     ` Chong Yidong

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=AANLkTimi+GRBZ1m58j7nvQee5+MAXn6RgS+8j1ShQZuh@mail.gmail.com \
    --to=bkey76@gmail.com \
    --cc=Emacs-devel@gnu.org \
    /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.