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#17696: =?UTF-8?Q?=E7=AD=94=E5=A4=8D:?= bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)" Date: Thu, 05 Jun 2014 17:44:42 +0300 Message-ID: <83zjhr5sbp.fsf@gnu.org> References: <954n00hzas.fsf@fencepost.gnu.org> 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 1401979583 29402 80.91.229.3 (5 Jun 2014 14:46:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2014 14:46:23 +0000 (UTC) Cc: 17696@debbugs.gnu.org To: Lin Sun (=?UTF-8?Q?=E5=AD=99=E6=9E=97?=) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 05 16:46:17 2014 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 1WsYvo-0001wb-OL for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jun 2014 16:46:16 +0200 Original-Received: from localhost ([::1]:41868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsYvo-00043H-CQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jun 2014 10:46:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsYvf-00040o-Me for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 10:46:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsYva-0003HQ-CA for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 10:46:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsYva-0003HB-9O for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 10:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WsYvZ-0007dn-Pv for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 10:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jun 2014 14:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17696 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17696-submit@debbugs.gnu.org id=B17696.140197951329275 (code B ref 17696); Thu, 05 Jun 2014 14:46:01 +0000 Original-Received: (at 17696) by debbugs.gnu.org; 5 Jun 2014 14:45:13 +0000 Original-Received: from localhost ([127.0.0.1]:45847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsYuj-0007c1-6v for submit@debbugs.gnu.org; Thu, 05 Jun 2014 10:45:12 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:42590) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsYud-0007b5-Dh for 17696@debbugs.gnu.org; Thu, 05 Jun 2014 10:45:07 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0N6P00E00A0L2U00@a-mtaout23.012.net.il> for 17696@debbugs.gnu.org; Thu, 05 Jun 2014 17:44:54 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6P00D5IAATSR90@a-mtaout23.012.net.il>; Thu, 05 Jun 2014 17:44:54 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:90053 Archived-At: > From: Lin Sun (孙林) > Date: Thu, 5 Jun 2014 03:01:56 +0000 > > I think the `with-file-modes' maybe have problem on MS Windows. > I compile the emacs 24.4 from git source with MinGW32 on windows, and start Emacs in command line: > Emacs -Q > Then open an empty org file "a.org" for example, the the error message > "File mode specification error: (invalid-function with-file-modes)" > appear on minibuffer. > > Could you evaluate the `with-file-modes' is proper for Windows or not, please. There's nothing wrong with with-file-modes on Windows. The Windows port of Emacs supports that macro as much as it can (which is to say it only caters to the user-write bit in the argument MODE). FWIW, I have no problems visiting a .org file on MS-Windows, I see no error like the one you reported.