From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#17977: Emacs 24.3 - cursor-type hbar renders incorrectly on OS X Date: Thu, 10 Jul 2014 08:53:20 +0200 Message-ID: <503D9288-4781-4134-B475-C592E90A5EF1@swipnet.se> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_D1D6A38D-982B-41B4-A0F0-402EC880174A" X-Trace: ger.gmane.org 1404975267 16033 80.91.229.3 (10 Jul 2014 06:54:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2014 06:54:27 +0000 (UTC) Cc: 17977@debbugs.gnu.org To: EMRE YOLCU Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 10 08:54:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X58FH-0002uZ-3k for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jul 2014 08:54:19 +0200 Original-Received: from localhost ([::1]:36214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X58FG-0006wf-NO for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jul 2014 02:54:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X58F6-0006v6-Nz for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 02:54:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X58F0-0007VM-KA for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 02:54:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X58F0-0007VI-Ga for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 02:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X58Ez-0004kj-On for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 02:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Jul 2014 06:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17977 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17977-submit@debbugs.gnu.org id=B17977.140497521518232 (code B ref 17977); Thu, 10 Jul 2014 06:54:01 +0000 Original-Received: (at 17977) by debbugs.gnu.org; 10 Jul 2014 06:53:35 +0000 Original-Received: from localhost ([127.0.0.1]:51612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X58EY-0004jz-RV for submit@debbugs.gnu.org; Thu, 10 Jul 2014 02:53:35 -0400 Original-Received: from mailfe01.swip.net ([212.247.154.1]:50289 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X58ET-0004je-G5 for 17977@debbugs.gnu.org; Thu, 10 Jul 2014 02:53:32 -0400 X-T2-Spam-Status: No, hits=1.9 required=5.0 tests=BAYES_50, HTML_IMAGE_ONLY_32,HTML_MESSAGE Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 518826385; Thu, 10 Jul 2014 08:53:21 +0200 In-Reply-To: X-Mailer: Apple Mail (2.1878.6) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91367 Archived-At: --Apple-Mail=_D1D6A38D-982B-41B4-A0F0-402EC880174A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello. The links to the screenshots are bogous = ("webkit-fake-url://8D9F72A3-85EA-4499-A2=3D 59-D471950B78DA/image.tiff"), please fix these. Also, use jpg instead = of tiff, they are smaller images. Jan D. =20 9 jul 2014 kl. 15:08 skrev EMRE YOLCU : > On Mac OS X version 10.9.4, Emacs 24.3 installed via Homebrew package = manager with options "--cocoa --srgb" does not honor the following = settings in init.el as it should: >=20 > It can be recreated by having these in the init file on a similar = setup. >=20 > (global hl-line-mode 1) > (setq-default line-spacing 10) > (setq-default cursor-type '(hbar . 200)) ;this one does not work = correctly >=20 > Normally, when line-spacing is set to a value higher than 0, the = cursor height does not span the height of the area highlighted by = hl-line-mode. This bothers me, so I set the cursor-type to hbar and its = height to a large value (200). This is supposed to increase the cursor = height to fit the highlighted area. This works as I intend when I try it = on Debian, but not on OS X. I suspect the problem is in src/nsterm.m, in = sections related to how the cursor with the type HBAR is drawn. >=20 > I included two screenshots making the issue clearer. >=20 > Wrong >=20 >=20 > Correct >=20 >=20 >=20 > report-bug-emacs output: >=20 > In GNU Emacs 24.3.1 (x86_64-apple-darwin13.2.0, NS = apple-appkit-1265.20) > of 2014-07-04 on .local > Windowing system distributor `Apple', version 10.3.1265 > Configured using: > `configure '--prefix=3D/usr/local/Cellar/emacs/24.3' '--without-dbus' > '--enable-locallisppath=3D/usr/local/share/emacs/site-lisp' > '--infodir=3D/usr/local/Cellar/emacs/24.3/share/info/emacs' > '--without-gnutls' '--with-ns' '--disable-ns-self-contained' > 'CC=3Dclang'' >=20 > Important settings: > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t --Apple-Mail=_D1D6A38D-982B-41B4-A0F0-402EC880174A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hello.

The links to the = screenshots are bogous ("webkit-fake-url://8D9F= 72A3-85EA-4499-A2=3D
59-D471950B78DA/image.tiff"), please = fix these.  Also, use jpg instead of tiff, they are smaller = images.

Jan = D.
 
9 jul 2014 kl. 15:08 skrev EMRE YOLCU = <eyolcu@ku.edu.tr>:
On Mac OS X version 10.9.4, Emacs 24.3 installed via = Homebrew package manager with options "--cocoa --srgb" does not honor = the following settings in init.el as it should:

It can be = recreated by having these in the init file on a similar setup.

(global hl-line-mode 1)
(setq-default line-spacing = 10)
(setq-default cursor-type '(hbar . 200)) ;this one does not work = correctly

Normally, when line-spacing is set to a value higher = than 0, the cursor height does not span the height of the area = highlighted by hl-line-mode. This bothers me, so I set the cursor-type = to hbar and its height to a large value (200). This is supposed to = increase the cursor height to fit the highlighted area. This works as I = intend when I try it on Debian, but not on OS X. I suspect the problem = is in src/nsterm.m, in sections related to how the cursor with the type = HBAR is drawn.

I included two screenshots making the issue = clearer.

Wrong

Correct



report-bug-emacs output:

In GNU Emacs 24.3.1 = (x86_64-apple-darwin13.2.0, NS apple-appkit-1265.20)
 of = 2014-07-04 on <name>.local
Windowing system distributor = `Apple', version 10.3.1265
Configured using:
 `configure = '--prefix=3D/usr/local/Cellar/emacs/24.3' = '--without-dbus'
 '--enable-locallisppath=3D/usr/local/share/emacs= /site-lisp'
 '--infodir=3D/usr/local/Cellar/emacs/24.3/share/info/= emacs'
 '--without-gnutls' '--with-ns' = '--disable-ns-self-contained'
 'CC=3Dclang''

Important = settings:
  value of $LANG: en_US.UTF-8
  = locale-coding-system: utf-8-unix
  default = enable-multibyte-characters: t

= --Apple-Mail=_D1D6A38D-982B-41B4-A0F0-402EC880174A--