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: Sun, 5 Oct 2014 17:46:46 +0200 Message-ID: References: <503D9288-4781-4134-B475-C592E90A5EF1@swipnet.se> 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=_CE4C8325-C0DB-4BA4-98EE-87C58C930A3D" X-Trace: ger.gmane.org 1412524050 4840 80.91.229.3 (5 Oct 2014 15:47:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2014 15:47:30 +0000 (UTC) Cc: 17977-done@debbugs.gnu.org To: EMRE YOLCU Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 05 17:47:23 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 1Xao1q-0004jL-1y for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Oct 2014 17:47:22 +0200 Original-Received: from localhost ([::1]:47793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xao1p-0007ki-Oa for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Oct 2014 11:47:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xao1h-0007kb-Lt for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 11:47:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xao1c-0002fO-CA for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 11:47:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xao1c-0002fI-8b for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 11:47:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xao1X-0007d1-03 for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 11:47:03 -0400 Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Oct 2014 15:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 17977 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 17977@debbugs.gnu.org, jan.h.d@swipnet.se, eyolcu@ku.edu.tr Original-Received: via spool by 17977-done@debbugs.gnu.org id=D17977.141252401529304 (code D ref 17977); Sun, 05 Oct 2014 15:47:02 +0000 Original-Received: (at 17977-done) by debbugs.gnu.org; 5 Oct 2014 15:46:55 +0000 Original-Received: from localhost ([127.0.0.1]:34833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xao1N-0007cZ-Ov for submit@debbugs.gnu.org; Sun, 05 Oct 2014 11:46:54 -0400 Original-Received: from mailfe01.swip.net ([212.247.154.1]:42666 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xao1J-0007cN-Ov for 17977-done@debbugs.gnu.org; Sun, 05 Oct 2014 11:46:52 -0400 X-T2-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00, 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 535395867; Sun, 05 Oct 2014 17:46:47 +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:94169 Archived-At: --Apple-Mail=_CE4C8325-C0DB-4BA4-98EE-87C58C930A3D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hello. This has been fixed in trunk. Jan D. 10 jul 2014 kl. 14:41 skrev EMRE YOLCU : > I did fix them in the second email I sent. >=20 >=20 > On Thu, Jul 10, 2014 at 9:53 AM, Jan Dj=E4rv = wrote: > Hello. >=20 > 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. >=20 > Jan D. > =20 > 9 jul 2014 kl. 15:08 skrev EMRE YOLCU : >=20 >> 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 >=20 >=20 --Apple-Mail=_CE4C8325-C0DB-4BA4-98EE-87C58C930A3D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Hello.

This has been fixed in = trunk.

Jan D.

10 jul 2014 kl. 14:41 skrev EMRE YOLCU <eyolcu@ku.edu.tr>:

I did fix them in the second email I sent.


On Thu, Jul 10, = 2014 at 9:53 AM, Jan Dj=E4rv <jan.h.d@swipnet.se> wrote:
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.
 
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=_CE4C8325-C0DB-4BA4-98EE-87C58C930A3D--