unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrew Pennebaker <andrew.pennebaker@gmail.com>
To: 17906@debbugs.gnu.org
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	[thread overview]
Message-ID: <CAHXt_SWPhjxpvwthuOGSo+WApP6uZ-tV-vhOwBbWLT_utwkcFQ@mail.gmail.com> (raw)
In-Reply-To: <handler.17906.D17906.140435368529681.notifdone@debbugs.gnu.org>

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

      parent reply	other threads:[~2014-07-03  3:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Andrew Pennebaker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHXt_SWPhjxpvwthuOGSo+WApP6uZ-tV-vhOwBbWLT_utwkcFQ@mail.gmail.com \
    --to=andrew.pennebaker@gmail.com \
    --cc=17906@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).