unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: 28492-done@debbugs.gnu.org
Subject: bug#28492: 27.0.50; File mode specification error for some files during desktop-read
Date: Mon, 18 Sep 2017 14:36:05 +0000	[thread overview]
Message-ID: <CAFyQvY1ofA+KBe2FEKoppV=qyUY=JzyQ1Hi03a6P98bssfsxQQ@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY0JiTAOm6-pCp_dYjq7vDoX7i_d4_f_he6bEQH5JaHFAg@mail.gmail.com>

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

Sorry about the noise.

Turns out that a string-match-p was doing with a nil values variable in a
function I added to the verilog-mode-hook. (And that variable was
evaluating to nil only for a particular project.)

The error backtrace was confusing though.. it looked like set-auto-mode was
throwing the error.

But actually it was

set-auto-mode
  - set-auto-mode-0
    - (funcall mode)
      - run-hooks .. (running the major mode hook)
        - One of the functions in that hook

Is there a way so that an error like

    Error in one of the functions in verilog-mode-hook while running
some.file

gets printed instead of a misleading message that doesn't even mention the
file causing it:

File mode specification error: (wrong-type-argument stringp nil)
-- 

Kaushal Modi

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

      reply	other threads:[~2017-09-18 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18 13:58 bug#28492: 27.0.50; File mode specification error for some files during desktop-read Kaushal Modi
2017-09-18 14:36 ` Kaushal Modi [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='CAFyQvY1ofA+KBe2FEKoppV=qyUY=JzyQ1Hi03a6P98bssfsxQQ@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=28492-done@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).