unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Håkon Hægland" <hakon.hagland@gmail.com>
To: 19584@debbugs.gnu.org
Subject: bug#19584: Problem with nil element in load-path in Emacs 24.4
Date: Tue, 13 Jan 2015 13:43:38 +0100	[thread overview]
Message-ID: <CACxbc=D9tvs1Xk9hdpN5LqmSeett3JYFhsUif25wQdvMjCYj6w@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

I just installed Emacs 24.4 from source (on Ubuntu 14.04). I now get the
following error when running Emacs:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("/[._]emacs\\.d/?\\'" nil nil)
  command-line()
  normal-top-level()
For debugging, I reduced my ~/.emacs init file to:

(setq debug-on-error t)
(add-to-list 'load-path nil)

Then the error occurs only when starting Emacs with two arguments, where
the first argument is an option, for example --no-splash, and the second
argument is a file name with a suffix, for example a.txt. Some other
observations:

If I remove the option (--no-splash) it works fine,
if I remove the line (add-to-list 'load-path nil) it works fine,
if I run with Emacs v. 24.3 it works fine,
if I change nil to ".", in ~/.emacs it works fine,
if I remove the suffix from the file name, that is: changing a.txt to a, I
get another error: Args out of range: 0.


M-x emacs-version:

GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of
2015-01-11 on hakon-ThinkPad-Edge-E540

I built Emacs 24.4.1 from source, using with `--with-xft` option to
configure.

This report was first ask as a question on http://emacs.stackexchange.com/

See the following link:

http://emacs.stackexchange.com/questions/7295/problem-with-nil-element-in-load-path-in-emacs-24-4

Best regards,
Håkon Hægland

[-- Attachment #2: Type: text/html, Size: 1988 bytes --]

             reply	other threads:[~2015-01-13 12:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13 12:43 Håkon Hægland [this message]
2015-01-13 16:45 ` bug#19584: Problem with nil element in load-path in Emacs 24.4 Glenn Morris

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='CACxbc=D9tvs1Xk9hdpN5LqmSeett3JYFhsUif25wQdvMjCYj6w@mail.gmail.com' \
    --to=hakon.hagland@gmail.com \
    --cc=19584@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).