all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"
@ 2014-06-05  2:16 Lin Sun
  2014-06-05  2:20 ` Glenn Morris
  2014-06-05 13:37 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Lin Sun @ 2014-06-05  2:16 UTC (permalink / raw)
  To: 17696

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 4615 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"
  2014-06-05  2:16 bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)" Lin Sun
@ 2014-06-05  2:20 ` Glenn Morris
  2014-06-05  3:01   ` bug#17696: 答复: " Lin Sun
  2014-06-05 13:37 ` Stefan Monnier
  1 sibling, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2014-06-05  2:20 UTC (permalink / raw)
  To: Lin Sun; +Cc: 17696

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.)





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17696: 答复: bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"
  2014-06-05  2:20 ` Glenn Morris
@ 2014-06-05  3:01   ` Lin Sun
  2014-06-05 14:44     ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Lin Sun @ 2014-06-05  3:01 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 17696@debbugs.gnu.org

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@gnu.org] 
发送时间: 2014年6月5日 10:21
收件人: Lin Sun (孙林)
抄送: 17696@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!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"
  2014-06-05  2:16 bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)" Lin Sun
  2014-06-05  2:20 ` Glenn Morris
@ 2014-06-05 13:37 ` Stefan Monnier
  2014-06-06  6:55   ` bug#17696: 答复: " Lin Sun
  1 sibling, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2014-06-05 13:37 UTC (permalink / raw)
  To: Lin Sun; +Cc: 17696

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

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


        Stefan





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17696: 答复: bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"
  2014-06-05  3:01   ` bug#17696: 答复: " Lin Sun
@ 2014-06-05 14:44     ` Eli Zaretskii
  2014-06-06  6:35       ` bug#17696: 答复: " Lin Sun
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2014-06-05 14:44 UTC (permalink / raw)
  To: Lin Sun; +Cc: 17696

> From: Lin Sun (孙林) <Lin.Sun@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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17696: 答复: bug#17696: 答复: bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"
  2014-06-05 14:44     ` Eli Zaretskii
@ 2014-06-06  6:35       ` Lin Sun
  0 siblings, 0 replies; 7+ messages in thread
From: Lin Sun @ 2014-06-06  6:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 17696@debbugs.gnu.org

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!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17696: 答复: bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)"
  2014-06-05 13:37 ` Stefan Monnier
@ 2014-06-06  6:55   ` Lin Sun
  0 siblings, 0 replies; 7+ messages in thread
From: Lin Sun @ 2014-06-06  6:55 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 17696@debbugs.gnu.org

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!

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-06  6:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05  2:16 bug#17696: Get an error message "File mode specification error: (invalid-function with-file-modes)" Lin Sun
2014-06-05  2:20 ` Glenn Morris
2014-06-05  3:01   ` bug#17696: 答复: " Lin Sun
2014-06-05 14:44     ` Eli Zaretskii
2014-06-06  6:35       ` bug#17696: 答复: " Lin Sun
2014-06-05 13:37 ` Stefan Monnier
2014-06-06  6:55   ` bug#17696: 答复: " Lin Sun

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.