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:33:39 +0200 Message-ID: <83r3fhjocc.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 1457692605 4187 80.91.229.3 (11 Mar 2016 10:36:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 10:36:45 +0000 (UTC) Cc: 22982@debbugs.gnu.org, nljlistbox2@gmail.com To: John Mastro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 11:36: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 1aeKQr-0006ui-OS for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 11:36:33 +0100 Original-Received: from localhost ([::1]:54025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKQr-0002Qg-7D for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 05:36:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKOR-0006YN-4n for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 05:34:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeKOP-0001Oj-PM for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 05:34:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKOP-0001Of-M4 for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 05:34:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aeKOP-0006Fm-Hv for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 05:34:01 -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:34:01 +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.145769244124035 (code B ref 22982); Fri, 11 Mar 2016 10:34:01 +0000 Original-Received: (at 22982) by debbugs.gnu.org; 11 Mar 2016 10:34:01 +0000 Original-Received: from localhost ([127.0.0.1]:44309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeKOO-0006FX-Ro for submit@debbugs.gnu.org; Fri, 11 Mar 2016 05:34:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38895) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeKON-0006FL-Ef for 22982@debbugs.gnu.org; Fri, 11 Mar 2016 05:33:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeKOH-0001MZ-Gc for 22982@debbugs.gnu.org; Fri, 11 Mar 2016 05:33:54 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKOD-0001LF-Pr; Fri, 11 Mar 2016 05:33:49 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3491 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aeKOD-0008O8-2z; Fri, 11 Mar 2016 05:33:49 -0500 In-reply-to: (message from John Mastro on Thu, 10 Mar 2016 16:14:32 -0800) 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:114743 Archived-At: > From: John Mastro > Date: Thu, 10 Mar 2016 16:14:32 -0800 > Cc: "N. Jackson" > > 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.