GNU bug report logs - #17696
Get an error message "File mode specification error: (invalid-function with-file-modes)"

Previous Next

Package: emacs;

Reported by: Lin Sun (孙林) <Lin.Sun <at> mediatek.com>

Date: Thu, 5 Jun 2014 02:18:01 UTC

Severity: normal

Tags: moreinfo, notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17696 in the body.
You can then email your comments to 17696 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17696; Package emacs. (Thu, 05 Jun 2014 02:18:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lin Sun (孙林) <Lin.Sun <at> mediatek.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 05 Jun 2014 02:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lin Sun (孙林) <Lin.Sun <at> mediatek.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Get an error message "File mode specification error:
 (invalid-function with-file-modes)"
Date: Thu, 5 Jun 2014 02:16:18 +0000
[Message part 1 (text/plain, inline)]
Hi Pals

I got an error message
"File mode specification error: (invalid-function with-file-modes)"
when open an org file.

In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-05-23 on PC11024116
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --prefix d:/mydata/emacs-24.4/
 --with-pkg-config-prog=/d/MinGW/bin/pkg-config.exe
 CFLAGS=-I/d/MinGW/libxpm-3.5.8-w32-src/src'

Best Regards
   Sunline
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17696; Package emacs. (Thu, 05 Jun 2014 02:22:01 GMT) Full text and rfc822 format available.

Message #8 received at 17696 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Lin Sun (孙林) <Lin.Sun <at> mediatek.com>
Cc: 17696 <at> debbugs.gnu.org
Subject: Re: bug#17696: Get an error message "File mode specification error:
 (invalid-function with-file-modes)"
Date: Wed, 04 Jun 2014 22:20:59 -0400
Lin Sun (孙林) wrote:

> I got an error message
> "File mode specification error: (invalid-function with-file-modes)"
> when open an org file.

Please provide a recipe starting from emacs -Q.

(Since with-file-modes is a macro defined in subr.el, I'm going to guess
that you just have a broken installation of Emacs, where some files got
compiled with an old Emacs binary.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17696; Package emacs. (Thu, 05 Jun 2014 03:03:01 GMT) Full text and rfc822 format available.

Message #11 received at 17696 <at> debbugs.gnu.org (full text, mbox):

From: Lin Sun (孙林) <Lin.Sun <at> mediatek.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "17696 <at> debbugs.gnu.org" <17696 <at> debbugs.gnu.org>
Subject: 答复: bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"
Date: Thu, 5 Jun 2014 03:01:56 +0000
Hi Glenn:

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. 
Thank you.

Best Regards
   Sunline

-----original mail-----
发件人: Glenn Morris [mailto:rgm <at> gnu.org] 
发送时间: 2014年6月5日 10:21
收件人: Lin Sun (孙林)
抄送: 17696 <at> debbugs.gnu.org
主题: Re: bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"

Lin Sun (孙林) wrote:

> I got an error message
> "File mode specification error: (invalid-function with-file-modes)"
> when open an org file.

Please provide a recipe starting from emacs -Q.

(Since with-file-modes is a macro defined in subr.el, I'm going to guess
that you just have a broken installation of Emacs, where some files got
compiled with an old Emacs binary.)

************* Email Confidentiality Notice ********************
The information contained in this e-mail message (including any 
attachments) may be confidential, proprietary, privileged, or otherwise
exempt from disclosure under applicable laws. It is intended to be 
conveyed only to the designated recipient(s). Any use, dissemination, 
distribution, printing, retaining or copying of this e-mail (including its 
attachments) by unintended recipient(s) is strictly prohibited and may 
be unlawful. If you are not an intended recipient of this e-mail, or believe 
that you have received this e-mail in error, please notify the sender 
immediately (by replying to this e-mail), delete any and all copies of 
this e-mail (including any attachments) from your system, and do not
disclose the content of this e-mail to any other person. Thank you!

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17696; Package emacs. (Thu, 05 Jun 2014 13:38:02 GMT) Full text and rfc822 format available.

Message #14 received at 17696 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lin Sun (孙林) <Lin.Sun <at> mediatek.com>
Cc: 17696 <at> debbugs.gnu.org
Subject: Re: bug#17696: Get an error message "File mode specification error:
 (invalid-function with-file-modes)"
Date: Thu, 05 Jun 2014 09:37:32 -0400
> "File mode specification error: (invalid-function with-file-modes)"
> when open an org file.

My crystal ball says you need to "make bootstrap".


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17696; Package emacs. (Thu, 05 Jun 2014 14:46:01 GMT) Full text and rfc822 format available.

Message #17 received at 17696 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lin Sun <Lin.Sun <at> mediatek.com> (孙林)
Cc: rgm <at> gnu.org, 17696 <at> debbugs.gnu.org
Subject: Re: bug#17696: 答复: bug#17696: Get an
 error	message "File mode specification error:
 (invalid-function	with-file-modes)"
Date: Thu, 05 Jun 2014 17:44:42 +0300
> From: Lin Sun (孙林) <Lin.Sun <at> mediatek.com>
> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17696; Package emacs. (Fri, 06 Jun 2014 06:37:02 GMT) Full text and rfc822 format available.

Message #20 received at 17696 <at> debbugs.gnu.org (full text, mbox):

From: Lin Sun (孙林) <Lin.Sun <at> mediatek.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "rgm <at> gnu.org" <rgm <at> gnu.org>,
 "17696 <at> debbugs.gnu.org" <17696 <at> debbugs.gnu.org>
Subject: 答复: bug#17696: 答复: bug#17696: Get an error	message "File mode specification error: (invalid-function	with-file-modes)"
Date: Fri, 6 Jun 2014 06:35:50 +0000
Hi Pals:

After toggle-debug-on-error, the follow callstack appear when open an org file:
Debugger entered--Lisp error: (invalid-function with-file-modes)
  with-file-modes(448 "d:/windows/USER-T~1/babel-4476TKC")
  make-temp-file("babel-" t)
  byte-code("^H\204!^@\302\301!\204!^@\303\302\301!\203^[^@\304 !\203^[^@      $
  require(ob-core)
  byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\$
  require(ob)
  require(ob-emacs-lisp)
  #[(pair) "^HA\303^H@!^Y\211^Z\203^V^@\304\305\306     P!!\202%^@\307\305\310 $
  mapc(#[(pair) "^HA\303^H@!^Y\211^Z\203^V^@\304\305\306        P!!\202%^@\307\$
...
It's seems that the macro ` with-file-modes' was treat as a function in make-temp-file. It's seems a issue of my local build.
I'll rebuild emacs and check this issue again.

Thanks
Sunline


************* Email Confidentiality Notice ********************
The information contained in this e-mail message (including any 
attachments) may be confidential, proprietary, privileged, or otherwise
exempt from disclosure under applicable laws. It is intended to be 
conveyed only to the designated recipient(s). Any use, dissemination, 
distribution, printing, retaining or copying of this e-mail (including its 
attachments) by unintended recipient(s) is strictly prohibited and may 
be unlawful. If you are not an intended recipient of this e-mail, or believe 
that you have received this e-mail in error, please notify the sender 
immediately (by replying to this e-mail), delete any and all copies of 
this e-mail (including any attachments) from your system, and do not
disclose the content of this e-mail to any other person. Thank you!

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17696; Package emacs. (Fri, 06 Jun 2014 06:56:01 GMT) Full text and rfc822 format available.

Message #23 received at 17696 <at> debbugs.gnu.org (full text, mbox):

From: Lin Sun (孙林) <Lin.Sun <at> mediatek.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: "17696 <at> debbugs.gnu.org" <17696 <at> debbugs.gnu.org>
Subject: 答复: bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"
Date: Fri, 6 Jun 2014 06:55:17 +0000
Dear Stefan:

> My crystal ball says you need to "make bootstrap".

You're right! All things OK now after 'make bootstrap'. 
Thank you very much.

Best Regards
   Sunline


************* Email Confidentiality Notice ********************
The information contained in this e-mail message (including any 
attachments) may be confidential, proprietary, privileged, or otherwise
exempt from disclosure under applicable laws. It is intended to be 
conveyed only to the designated recipient(s). Any use, dissemination, 
distribution, printing, retaining or copying of this e-mail (including its 
attachments) by unintended recipient(s) is strictly prohibited and may 
be unlawful. If you are not an intended recipient of this e-mail, or believe 
that you have received this e-mail in error, please notify the sender 
immediately (by replying to this e-mail), delete any and all copies of 
this e-mail (including any attachments) from your system, and do not
disclose the content of this e-mail to any other person. Thank you!

Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 06 Jun 2014 07:17:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17696 <at> debbugs.gnu.org and Lin Sun (孙林) <Lin.Sun <at> mediatek.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 06 Jun 2014 07:17:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 04 Jul 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 49 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.