My Emacs on Windows Seven always shows a startup error on a warning, any help?

EDITED 2 . He answered this question, not yet completed, but the solution provided by @ vpit3833 works as I need. So call emacs this way emacs -nw --no-site-file. This will suppress the error message and more .emacs. However, I still cannot find the cause of the error. Any suggestion? But this time not generosity. Thank!

EDITED 1 . I asked generosity to this question for those who can solve this problem. Because it is very annoying when I start Emacs and I have to download the .emacs file manually. Thanks

Hello everybody,

I am using my own Emacs application for Windows. It works well. But now it will not read my .emacs and will always display an error message:

if: Wrong number of arguments: # [(type level message & rest args) "ÄÅÆ  
## "[type message args level display-warning apply format] 6 (" c: /Development/Tools/emacs-23.2/lisp/emacs-lisp/warnings.elc ". 8481)], 2

Everything seems to be working fine. But after I installed Emacs W32 and Ergo Emacs and uninstall both of them, now Emacs Native Windows Applications displays this error.

What happened?

Thanks you

+3
source share
5 answers

.emacs, - Emacs W32 Ergo Emacs, Emacs. , , (...) .

, .emacs, Emacs -q, , , Windows " " ""?

emacs -q

, .emacs. - ,

emacs -q

. emacs -Q , , , Windows.

+3

. , "site- "site-start.el" :

; ****** Added by emacsw32-setup-base at Mon Nov 01 16:16:09 2010
;; Add EmacsW32/lisp to load-path if found.

, .

, .

+3

HOME, .emacs.

Emacs Windows script Unix. Windows :

set drive=D:
set home=u:\Oleg

set emacs_home=%drive%\Soft\Emacs
set cygwin_home=C:/cygwin
set utils=%drive%\utils
set path=%utils%;%cygwin_home%\bin;%utils%\7-Zip;%utils%\gnu-win32;%utils%\putty;%path%
set temp=d:/temp/

%emacs_home%\emacs-23.2\bin\runemacs.exe --debug-init

, HOME, PATH , .

+2

. vpit3833 , , , . EmacsW32 C:\site_lisp. -, . Emacs Windows. , , . "emacs --no-site-file" . , , , - . , site_lisp. , , Emacs.

+1

I just installed 64-bit Emacs for Windows ( http://semantic.supelec.fr/popineau/programming-emacs.html#sec-2 ) and encountered the same error. It turns out that the lisp / site-start.el site had this incorrect elisp:

(lwarn "Can't find %s" lisp-dir)

Looking at the warning.el code, this does not match the parameters of the function. I changed this line as follows:

(lwarn '(emacsw32) :warning "Can't find %s" lisp-dir)

and the download error has disappeared.

+1
source

Source: https://habr.com/ru/post/1790456/


All Articles