From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Pennebaker Newsgroups: gmane.emacs.bugs Subject: bug#17906: closed (Re: bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized) Date: Wed, 2 Jul 2014 22:25:03 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc1adafacab004fd418d3b X-Trace: ger.gmane.org 1404357981 23910 80.91.229.3 (3 Jul 2014 03:26:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 03:26:21 +0000 (UTC) To: 17906@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 03 05:26:16 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 1X2Xf5-0000bX-Gq for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jul 2014 05:26:15 +0200 Original-Received: from localhost ([::1]:57530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Xf4-0006AH-Ic for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 23:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Xex-0006AA-3m for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 23:26:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2Xes-0003PL-Ts for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 23:26:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Xes-0003PF-Pe for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 23:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X2Xes-000222-7J for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 23:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Pennebaker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jul 2014 03:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17906-submit@debbugs.gnu.org id=B17906.14043579147705 (code B ref 17906); Thu, 03 Jul 2014 03:26:02 +0000 Original-Received: (at 17906) by debbugs.gnu.org; 3 Jul 2014 03:25:14 +0000 Original-Received: from localhost ([127.0.0.1]:40951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2Xe4-00020A-WA for submit@debbugs.gnu.org; Wed, 02 Jul 2014 23:25:13 -0400 Original-Received: from mail-ig0-f173.google.com ([209.85.213.173]:56392) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2Xe1-0001zh-BU for 17906@debbugs.gnu.org; Wed, 02 Jul 2014 23:25:10 -0400 Original-Received: by mail-ig0-f173.google.com with SMTP id uq10so7433646igb.12 for <17906@debbugs.gnu.org>; Wed, 02 Jul 2014 20:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=hDKH+pzwd9eXK8121toyW1NZkAeH6sWWp34k5XIGn/M=; b=C54MyCvTumgf2oBSKFepsLkLUZcNWybV0CZ5YFVPNybPvSsjyWPY716pw68IPP8Jav mxTJ0MpXQH/QFZH56At5kZlmJX+0wez3r9Yq9JTw6xBQbWVVS/KiwfAhE37bTBaD5Bt/ iKGCC7OmgGTSZkLVAhYe77aS5eJoIhOMiX46p7PHtK9/P9nm2EF34ckJEdG40yG7I1zr a9022NNwjijlzHWIjeGtEg0yCOc1Gjm0xpmeT2F7ZKbf1MCctZFm9/iCUjLxF/bjosm0 A9k80T6DNOgb96IK/wJfoFZxDZKkmdU4NYE8pj7b07nCSSPQraH1ZeCsH7z9W+uxeX8w Acvw== X-Received: by 10.50.61.244 with SMTP id t20mr35466853igr.0.1404357903565; Wed, 02 Jul 2014 20:25:03 -0700 (PDT) Original-Received: by 10.42.16.16 with HTTP; Wed, 2 Jul 2014 20:25:03 -0700 (PDT) In-Reply-To: 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:91133 Archived-At: --047d7bdc1adafacab004fd418d3b Content-Type: text/plain; charset=UTF-8 Wow, that was fast! Thanks for keeping nlinum polished, I much prefer it to regular linum. On Wed, Jul 2, 2014 at 9:15 PM, GNU bug Tracking System < help-debbugs@gnu.org> wrote: > Your bug report > > #17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized > > which was filed against the emacs package, has been closed. > > The explanation is attached below, along with your original report. > If you require more details, please reply to 17906@debbugs.gnu.org. > > -- > 17906: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17906 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems > > > ---------- Forwarded message ---------- > From: Stefan Monnier > To: Andrew Pennebaker > Cc: 17906-done@debbugs.gnu.org > Date: Wed, 02 Jul 2014 22:14:37 -0400 > Subject: Re: bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or > not initialized > > (require 'nlinum) > > (global-nlinum-mode) > > > The bug does not occur in windowed (GUI) mode, but appears quite > > visciously in ncurses (CLI) mode. > > Indeed, sorry. I just pushed the patch below which should appear in > nlinum-1.5 tomorrow and seems to fix the problem. > > > Stefan > > > diff --git a/packages/nlinum/nlinum.el b/packages/nlinum/nlinum.el > index 8719e92..82e274c 100644 > --- a/packages/nlinum/nlinum.el > +++ b/packages/nlinum/nlinum.el > @@ -72,12 +72,14 @@ Linum mode is a buffer-local minor mode." > (aref (font-info (face-font face)) 2)) > > (defun nlinum--setup-window () > - (let ((width (ceiling > - ;; We'd really want to check the widths rather than the > - ;; heights, but it's a start. > - (/ (* nlinum--width 1.0 > - (nlinum--face-height 'linum)) > - (frame-char-height))))) > + (let ((width (if (display-graphic-p) > + (ceiling > + ;; We'd really want to check the widths rather than > the > + ;; heights, but it's a start. > + (/ (* nlinum--width 1.0 > + (nlinum--face-height 'linum)) > + (frame-char-height))) > + nlinum--width))) > (set-window-margins nil (if nlinum-mode width) > (cdr (window-margins))))) > > > > > ---------- Forwarded message ---------- > From: Andrew Pennebaker > To: Emacs Bugs > Cc: > Date: Wed, 2 Jul 2014 19:34:26 -0500 > Subject: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized > In Ubuntu 14.04 and Mac OS X 10.9.3, nlinum 1.4 causes a debugger error > on Emacs launch, when the following configuration setting is used. > > ~/.emacs: > > (require 'nlinum) > (global-nlinum-mode) > > The bug does not occur in windowed (GUI) mode, but appears quite > visciously in ncurses (CLI) mode. > > In Mac OS X, the resulting debugger message looks like: > > $ emacs -nw > > "Warning (initialization): An error occurred while loading > `/Users/andrew/.emacs': > error: OpenStep is not in use or not initialized > To ensure normal operation, you should investigate and remove the > cause of the error in your initialization file. Start Emacs with > the `--debug-init' option to view a complete error backtrace." > > What's more, after this message appears, C-x C-c is no longer accepted > as a valid hotkey for quitting Emacs to the shell. As a workaround, I'm > currently closing the terminal tab/window and launching new ones. > > > In GNU Emacs 24.3.1 (x86_64-apple-darwin12.4.1, NS apple-appkit-1187.39) > of 2013-09-20 on Andrews-MacBook-Air.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=cc'' > > Important settings: > locale-coding-system: nil > default enable-multibyte-characters: t > > Major mode: Fundamental > > Cheers, > Andrew Pennebaker > > -- Cheers, Andrew Pennebaker www.yellosoft.us --047d7bdc1adafacab004fd418d3b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Wow, that was fast! Thanks for keeping nlinum polished, I = much prefer it to regular linum.


On Wed, Jul 2, 2014 at 9:15 PM, GNU bug Tracking S= ystem <help-debbugs@gnu.org> wrote:
Your bug report

#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized
which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 17906@debbugs.gnu.org.

--
17906: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17906
GNU Bug Tracking System
Contact help-debbugs@gnu.org wi= th problems


---------- Forwarded message ----------
From:=C2= =A0Stefan Monnier <monnier@i= ro.umontreal.ca>
To:=C2=A0Andrew Pennebaker <andrew.pennebaker@gmail.com>
Cc:=C2=A017906-done@debbugs.g= nu.org
Date:=C2=A0Wed, 02 Jul 2014 22:14:37 -0400
Subject:=C2=A0R= e: bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initial= ized
> (require 'nlinum)
> (global-nlinum-mode)

> The bug does not occur in windowed (GUI) mode, but appears quite
> visciously in ncurses (CLI) mode.

Indeed, sorry. =C2=A0I just pushed the patch below which should appear in nlinum-1.5 tomorrow and seems to fix the problem.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan


diff --git a/packages/nlinum/nlinum.el b/packages/nlinum/nlinum.el
index 8719e92..82e274c 100644
--- a/packages/nlinum/nlinum.el
+++ b/packages/nlinum/nlinum.el
@@ -72,12 +72,14 @@ Linum mode is a buffer-local minor mode."
=C2=A0 =C2=A0(aref (font-info (face-font face)) 2))

=C2=A0(defun nlinum--setup-window ()
- =C2=A0(let ((width (ceiling
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; We'd really= want to check the widths rather than the
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; heights, but it= 's a start.
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(/ (* nlinum--widt= h 1.0
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(nlinum--face-height 'linum))
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (frame-cha= r-height)))))
+ =C2=A0(let ((width (if (display-graphic-p)
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (ceiling + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; W= e'd really want to check the widths rather than the
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; h= eights, but it's a start.
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(/ (= * nlinum--width 1.0
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0(nlinum--face-height 'linum))
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (frame-char-height)))
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nlinum--width)))<= br> =C2=A0 =C2=A0 =C2=A0(set-window-margins nil (if nlinum-mode width)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0(cdr (window-margins)))))




---------- Forwarded message ----------
From:=C2=A0Andrew Penneb= aker <andrew.pennebaker@g= mail.com>
To:=C2=A0Emacs Bugs <bug-gnu-emacs@gnu.org>
Cc:=C2=A0
Date:=C2=A0Wed, 2 Jul 2014 19:34:26 -0500
Subject:=C2=A024.= 3; nlinum 1.4 error: OpenStep is not in use or not initialized
In Ubuntu 14.04 and Mac OS X 10.9.3, nlinum 1.4 causes a debu= gger error
on Emacs launch, when the following configuration setting is use= d.

~/.emacs:

(require 'nlinum)
(global-nlinum-mode)
<= br>
The bug does not occur in windowed (GUI) mode, but appears qu= ite
visciously in ncurses (CLI) mode.

In Mac OS X, the resulting debugger message looks like:

$ emacs -nw

"Warning (initialization): = An error occurred while loading `/Users/andrew/.emacs':
error: OpenStep is not in use or not initialized
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. =C2=A0Start Emacs wit= h
the `--debug-init' option to view a complete error backtrac= e."

What's more, after this message appears, C-x C-c is= no longer accepted
as a valid hotkey for quitting Emacs to the s= hell. As a workaround, I'm
currently closing the terminal tab= /window and launching new ones.


In GNU Emacs 24.3.1 (x86_64-apple-darwin= 12.4.1, NS apple-appkit-1187.39)
=C2=A0of 2013-09-20 on Andrews-M= acBook-Air.local
Windowing system distributor `Apple', versio= n 10.3.1265
Configured using:
=C2=A0`configure '--prefix=3D/usr/loca= l/Cellar/emacs/24.3' '--without-dbus'
=C2=A0'--en= able-locallisppath=3D/usr/local/share/emacs/site-lisp'
=C2=A0= '--infodir=3D/usr/local/Cellar/emacs/24.3/share/info/emacs'
=C2=A0'--without-gnutls' '--with-ns' '--disable-ns= -self-contained' 'CC=3Dcc''

Import= ant settings:
=C2=A0 locale-coding-system: nil
=C2=A0 d= efault enable-multibyte-characters: t

Major mode: Fundamental

Cheers= ,
Andrew Pennebaker




--
Cheers,

Andrew Pennebaker
--047d7bdc1adafacab004fd418d3b--