bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17906: closed (Re: bug#17906: 24.3; nlinum 1.4 error: OpenStep is no


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

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 <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 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]