From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22982: 25.0.92; Forms Mode seems to fail to open data file Date: Fri, 11 Mar 2016 12:26:48 +0200 Message-ID: <83shzxjonr.fsf@gnu.org> References: <87io0t6gmu.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1457692125 29020 80.91.229.3 (11 Mar 2016 10:28:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 10:28:45 +0000 (UTC) Cc: 22982@debbugs.gnu.org To: nljlistbox2@gmail.com (N. Jackson) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 11:28:34 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aeKJ8-0001iW-FA for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 11:28:34 +0100 Original-Received: from localhost ([::1]:53953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKJ7-0002PN-P3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 05:28:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKIh-0001vW-4x for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 05:28:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeKIc-0000HP-I4 for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 05:28:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKIc-0000HL-Ex for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 05:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aeKIc-00066f-8Z for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 05:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Mar 2016 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22982-submit@debbugs.gnu.org id=B22982.145769203023414 (code B ref 22982); Fri, 11 Mar 2016 10:28:02 +0000 Original-Received: (at 22982) by debbugs.gnu.org; 11 Mar 2016 10:27:10 +0000 Original-Received: from localhost ([127.0.0.1]:44305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeKHl-00065a-RR for submit@debbugs.gnu.org; Fri, 11 Mar 2016 05:27:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37139) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeKHj-00065N-Pb for 22982@debbugs.gnu.org; Fri, 11 Mar 2016 05:27:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeKHa-0008A5-Dk for 22982@debbugs.gnu.org; Fri, 11 Mar 2016 05:27:02 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKHa-00089o-9y; Fri, 11 Mar 2016 05:26:58 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3487 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aeKHZ-0000mp-K3; Fri, 11 Mar 2016 05:26:58 -0500 In-reply-to: <87io0t6gmu.fsf@gmail.com> (nljlistbox2@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114742 Archived-At: > 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"?