From: Eli Zaretskii <eliz@gnu.org>
To: nljlistbox2@gmail.com (N. Jackson)
Cc: 22982@debbugs.gnu.org
Subject: bug#22982: 25.0.92; Forms Mode seems to fail to open data file
Date: Fri, 11 Mar 2016 12:26:48 +0200 [thread overview]
Message-ID: <83shzxjonr.fsf@gnu.org> (raw)
In-Reply-To: <87io0t6gmu.fsf@gmail.com> (nljlistbox2@gmail.com)
> From: nljlistbox2@gmail.com (N. Jackson)
> Date: Thu, 10 Mar 2016 19:46:17 -0400
>
> I get the error "Wrong-type-argument: stringp, nil" when I try to start
> Forms Mode with
>
> M-x forms-find-file RET ~/Documents/test-forms.el RET
>
> The backtrace is:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> expand-file-name(nil)
> find-file-noselect(nil)
> forms-mode(t)
> forms-find-file("~/Documents/test-forms.el")
> funcall-interactively(forms-find-file "~/Documents/test-forms.el")
> call-interactively(forms-find-file record nil)
> command-execute(forms-find-file record)
> execute-extended-command(nil "forms-find-file" nil)
> funcall-interactively(execute-extended-command nil "forms-find-file" nil)
> call-interactively(execute-extended-command nil nil)
> command-execute(execute-extended-command)
>
> My forms control file (~/Documents/test-forms.el) is as follows:
>
> ;; This demo visits ‘/etc/passwd’.
>
> (setq forms-file "/etc/passwd")
> (setq forms-number-of-fields 7)
> (setq forms-read-only t) ; to make sure
> (setq forms-field-sep ":")
> ;; Don’t allow multi-line fields.
> (setq forms-multi-line nil)
>
> (setq forms-format-list
> (list
> "====== /etc/passwd ======\n\n"
> "User : " 1
> " Uid: " 3
> " Gid: " 4
> "\n\n"
> "Name : " 5
> "\n\n"
> "Home : " 6
> "\n\n"
> "Shell: " 7
> "\n"))
>
> which is copied directly from the example in the Forms manual
> (info "(forms) Format Description"). And /etc/passwd exists and is
> accessible from Emacs.
>
> I get exactly the same error with all forms control files I've tried,
> even something as seemingly simple as:
>
> (setq forms-file "~/test-forms.dat")
> (setq forms-number-of-fields 2)
> (setq forms-format-list
> (list
> "Field1 : " 1
> "Field2 : " 2
> "\n"))
>
> with a not yet existent data file.
I cannot reproduce this, neither with the 25.0.92 pretest nor with the
current emacs-25 branch. I tried both control files, and they both
worked (although I needed to change the file names a bit to adapt them
to my system's directory hierarchy).
Does this happen for you in "emacs -Q"?
next prev parent reply other threads:[~2016-03-11 10:26 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
2016-03-11 10:26 ` Eli Zaretskii [this message]
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
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=83shzxjonr.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=22982@debbugs.gnu.org \
--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 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).