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

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

[debbugs-tracker] bug#17906: closed (24.3; nlinum 1.4 error: OpenStep is


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17906: closed (24.3; nlinum 1.4 error: OpenStep is not in use or not initialized)
Date: Thu, 03 Jul 2014 02:15:02 +0000

Your message dated Wed, 02 Jul 2014 22:14:37 -0400
with message-id <address@hidden>
and subject line Re: bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use 
or not initialized
has caused the debbugs.gnu.org bug report #17906,
regarding 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17906: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17906
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized Date: Wed, 2 Jul 2014 19:34:26 -0500
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

--- End Message ---
--- Begin Message --- Subject: Re: bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized Date: Wed, 02 Jul 2014 22:14:37 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
> (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)))))
 


--- End Message ---

reply via email to

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