* bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized @ 2014-07-03 0:34 Andrew Pennebaker 2014-07-03 2:14 ` Stefan Monnier [not found] ` <handler.17906.D17906.140435368529681.notifdone@debbugs.gnu.org> 0 siblings, 2 replies; 3+ messages in thread From: Andrew Pennebaker @ 2014-07-03 0:34 UTC (permalink / raw) To: 17906 [-- Attachment #1: Type: text/plain, Size: 1491 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 2124 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized 2014-07-03 0:34 bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized Andrew Pennebaker @ 2014-07-03 2:14 ` Stefan Monnier [not found] ` <handler.17906.D17906.140435368529681.notifdone@debbugs.gnu.org> 1 sibling, 0 replies; 3+ messages in thread From: Stefan Monnier @ 2014-07-03 2:14 UTC (permalink / raw) To: Andrew Pennebaker; +Cc: 17906-done > (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))))) ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <handler.17906.D17906.140435368529681.notifdone@debbugs.gnu.org>]
* bug#17906: closed (Re: bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized) [not found] ` <handler.17906.D17906.140435368529681.notifdone@debbugs.gnu.org> @ 2014-07-03 3:25 ` Andrew Pennebaker 0 siblings, 0 replies; 3+ messages in thread From: Andrew Pennebaker @ 2014-07-03 3:25 UTC (permalink / raw) To: 17906 [-- Attachment #1: Type: text/plain, Size: 4247 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 6121 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-03 3:25 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-07-03 0:34 bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized Andrew Pennebaker 2014-07-03 2:14 ` Stefan Monnier [not found] ` <handler.17906.D17906.140435368529681.notifdone@debbugs.gnu.org> 2014-07-03 3:25 ` bug#17906: closed (Re: bug#17906: 24.3; nlinum 1.4 error: OpenStep is not in use or not initialized) Andrew Pennebaker
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.