|
From: | Andrew Pennebaker |
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 |
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 <monnier@iro.umontreal.ca>
To: Andrew Pennebaker <andrew.pennebaker@gmail.com>
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 <andrew.pennebaker@gmail.com>
To: Emacs Bugs <bug-gnu-emacs@gnu.org>
Cc:
Date: Wed, 2 Jul 2014 19:34:26 -0500
Subject: 24.3; nlinum 1.4 error: OpenStep is not in use or not initializedIn 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 quitevisciously 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 initializedTo ensure normal operation, you should investigate and remove thecause of the error in your initialization file. Start Emacs withthe `--debug-init' option to view a complete error backtrace."What's more, after this message appears, C-x C-c is no longer acceptedas a valid hotkey for quitting Emacs to the shell. As a workaround, I'mcurrently 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.localWindowing system distributor `Apple', version 10.3.1265Configured 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: nildefault enable-multibyte-characters: tMajor mode: FundamentalCheers,Andrew Pennebaker
[Prev in Thread] | Current Thread | [Next in Thread] |