From: Eli Zaretskii <eliz@gnu.org>
To: John Mastro <john.b.mastro@gmail.com>
Cc: 22982@debbugs.gnu.org, nljlistbox2@gmail.com
Subject: bug#22982: 25.0.92; Forms Mode seems to fail to open data file
Date: Fri, 11 Mar 2016 12:33:39 +0200 [thread overview]
Message-ID: <83r3fhjocc.fsf@gnu.org> (raw)
In-Reply-To: <CAOj2CQRw=zAVu0395ne1p7rdZq3GnRD7B4fiEb01W9hkr--sww@mail.gmail.com> (message from John Mastro on Thu, 10 Mar 2016 16:14:32 -0800)
> From: John Mastro <john.b.mastro@gmail.com>
> Date: Thu, 10 Mar 2016 16:14:32 -0800
> Cc: "N. Jackson" <nljlistbox2@gmail.com>
>
> This seems to be caused by the call ‘(set-visited-file-name nil)’ in
> ‘forms-mode’. Before that call, ‘forms-file’ is "/etc/passwd";
> afterward, it is nil.
Sorry, I don't see how this is related. According to the backtrace,
find-file-noselect is called with an argument of nil, and I don't
understand how this could happen, since the call I see:
;; find the data file
(setq forms--file-buffer (find-file-noselect forms-file))
invokes find-file-noselect with an argument that cannot be nil, and
has no relation to the visited-file's name.
There's another call to find-file-noselect, in
forms--intuit-from-file, but that one also uses forms-file, after
verifying that it exists (which is not the case in point):
;; Need a file to do this.
(if (not (file-exists-p forms-file))
(error "Need existing file or explicit `forms-number-of-fields'")
;; Visit the file and extract the first record.
(setq forms--file-buffer (find-file-noselect forms-file))
So I don't see how the problem could happen, and I definitely don't
understand how it is related to the set-visited-file-name call.
Does the problem happen to you in "emacs -Q"?
Thanks.
next prev parent reply other threads:[~2016-03-11 10:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 23:46 bug#22982: 25.0.92; Forms Mode seems to fail to open data file N. Jackson
2016-03-11 0:14 ` John Mastro
2016-03-11 0:19 ` John Mastro
2016-03-11 10:34 ` Eli Zaretskii
2016-03-11 10:33 ` Eli Zaretskii [this message]
2016-03-11 10:26 ` Eli Zaretskii
2016-03-11 12:49 ` N. Jackson
2016-03-11 13:25 ` N. Jackson
2016-03-11 15:02 ` Eli Zaretskii
2016-03-11 16:11 ` N. Jackson
2016-03-12 11:07 ` Eli Zaretskii
2016-03-12 16:01 ` N. Jackson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83r3fhjocc.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=22982@debbugs.gnu.org \
--cc=john.b.mastro@gmail.com \
--cc=nljlistbox2@gmail.com \
/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 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.