From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: EMRE YOLCU Newsgroups: gmane.emacs.bugs Subject: bug#17977: Emacs 24.3 - cursor-type hbar renders incorrectly on OS X Date: Wed, 9 Jul 2014 16:08:31 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013a27c4ad0e1204fdc26764 X-Trace: ger.gmane.org 1404942785 3889 80.91.229.3 (9 Jul 2014 21:53:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jul 2014 21:53:05 +0000 (UTC) To: 17977@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 09 23:52:56 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 1X4znL-0006WJ-82 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Jul 2014 23:52:55 +0200 Original-Received: from localhost ([::1]:33972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4znK-0006xb-S6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Jul 2014 17:52:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4tvb-0004Lm-R3 for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 11:37:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4tva-0008Mi-PR for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 11:37:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4tva-0008Md-A0 for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 11:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X4tvZ-0000Lp-SR for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: EMRE YOLCU Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jul 2014 15:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17977 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14049202061320 (code B ref -1); Wed, 09 Jul 2014 15:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jul 2014 15:36:46 +0000 Original-Received: from localhost ([127.0.0.1]:47972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4tvI-0000LA-Lr for submit@debbugs.gnu.org; Wed, 09 Jul 2014 11:36:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50602) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4rc6-0001oZ-Ig for submit@debbugs.gnu.org; Wed, 09 Jul 2014 09:08:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4rbx-0005Ty-G5 for submit@debbugs.gnu.org; Wed, 09 Jul 2014 09:08:41 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4rbx-0005Tu-DW for submit@debbugs.gnu.org; Wed, 09 Jul 2014 09:08:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4rbv-0007T7-Rs for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 09:08:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4rbu-0005TC-94 for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 09:08:35 -0400 Original-Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:36613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4rbt-0005Sm-Rw for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 09:08:34 -0400 Original-Received: by mail-we0-f173.google.com with SMTP id t60so7497447wes.18 for ; Wed, 09 Jul 2014 06:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ku.edu.tr; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=U1LNN3oVygaHwRAhZDtxf9GEsgz5fCOmd28S2dLf7xM=; b=hO7BuS79P6JfxAyxXjgarBhRXjVCYu/kkSZaPDvgiHq0orD8M/kbM8d2K+mZ2XDiQt MLdPwkc5qYeIPYMCSNiDRkqmsYyCgkYrrqDS5bBg2QotDANTxaizfkENlv0vn5MobB0k Tk4/51io8h/VWr1F4FF1aWnelnjNwUOdbWdMo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=U1LNN3oVygaHwRAhZDtxf9GEsgz5fCOmd28S2dLf7xM=; b=EWXmlY3j1J76igYeux9zPQ8179aBssjnx+9HBuAGccUXs9H1bp/T0s/+j49BdYhWQa dgzEU+stZwPxecwiSaz29SbPPi7B/QDtp4SdoSvecupKVx4GIiFEJ54geLcCaJ9IAsKP vvzCCBhjECSJbyFPCSVAgmyYOd5hBQ8qEVMtdcu87g3r8StMrJ0aR9pWE5z1MWst+sys JFnzetclu3+9hlCY9jQLAvCtNqwpWKtfUS6QR+OBEzpMFoSqaoxDcHjcsd32YFRGa48w clRAFsBqoe4S472FcSQuHZLPG3r28ceJUqn4V0WT+LuadIjynQs52ggWaYTZTyxgqadE PPIA== X-Gm-Message-State: ALoCoQniD55dPOZZzFqwo0pQnrGpHlv8vgwakHoiCxjuWfZuVIQyKqpE1JgClsJMlFEn1zSGNT9k X-Received: by 10.194.142.148 with SMTP id rw20mr46987050wjb.69.1404911311709; Wed, 09 Jul 2014 06:08:31 -0700 (PDT) Original-Received: by 10.216.181.8 with HTTP; Wed, 9 Jul 2014 06:08:31 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 09 Jul 2014 11:36:43 -0400 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:91347 Archived-At: --089e013a27c4ad0e1204fdc26764 Content-Type: text/plain; charset=UTF-8 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 .local Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure '--prefix=/usr/local/Cellar/emacs/24.3' '--without-dbus' '--enable-locallisppath=/usr/local/share/emacs/site-lisp' '--infodir=/usr/local/Cellar/emacs/24.3/share/info/emacs' '--without-gnutls' '--with-ns' '--disable-ns-self-contained' 'CC=clang'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t --089e013a27c4ad0e1204fdc26764 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mac OS X version 10.9.4, Emacs 24.3 installed via Homeb= rew 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-defa= ult cursor-type '(hbar . 200)) ;this one does not work correctly
Normally, when line-spacing is set to a value higher than 0, the cursor he= ight 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 val= ue (200). This is supposed to increase the cursor height to fit the highlig= hted 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 c= ursor 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-app= le-darwin13.2.0, NS apple-appkit-1265.20)
=C2=A0of 2014-07-04 on <nam= e>.local
Windowing system distributor `Apple', version 10.3.1265<= br> Configured using:
=C2=A0`configure '--prefix=3D/usr/local/Cellar/ema= cs/24.3' '--without-dbus'
=C2=A0'--enable-locallisppath= =3D/usr/local/share/emacs/site-lisp'
=C2=A0'--infodir=3D/usr/loc= al/Cellar/emacs/24.3/share/info/emacs'
=C2=A0'--without-gnutls' '--with-ns' '--disable-ns-self= -contained'
=C2=A0'CC=3Dclang''

Important setting= s:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: ut= f-8-unix
=C2=A0 default enable-multibyte-characters: t
--089e013a27c4ad0e1204fdc26764--