I can't overwrite any file

91 views
Skip to first unread message

max...@gmail.com

unread,
Dec 26, 2015, 2:47:11 PM12/26/15
to Emacs Live
Hi!!

Im trying to use Emacs Live that I think is awesome but I have a very little problem. When I try save the buffer send me this error in mini-buffer:

save-buffer: Wrong number of arguments: (lambda nil "Save the current buffer in its visited file, if it has been modified.
The hooks `write-contents-functions' and `write-file-functions' get a chance
to do the job of saving; if they do not, then the buffer is saved in
the visited file in the usual way.
Before and after saving the buffer, this function runs
`before-save-hook' and `after-save-hook', respectively." (interactive) (save-current-buffer (if (buffer-base-buffer) (set-buffer (buffer-base-buffer))) (if (or (buffer-modified-p) (and buffer-file-name (not (file-exists-p buffer-file-name)))) (let ((recent-save (recent-auto-save-p)) setmodes) (set-window-buffer (frame-selected-window) (current-buffer)) (if (or buffer-file-name (y-or-n-p "Buffer has no associated file and not saved. Save it? ")) (progn (or buffer-file-name (let ((filename ...)) (if (file-exists-p filename) (if ... ... ...) (let ... ...)) (set-visited-file-name filename))) (or (verify-visited-file-modtime (current-buffer)) (not (file-exists-p buffer-file-name)) (yes-or-no-p (format "%s has changed since visited or saved.  Save anyway? " (file-name-nondirectory buffer-file-name))) (error "Save not confirmed")) (save-restriction (widen) (save-excursion (and (> ... ...) (not find-file-literally) (/= ... 10) (not ...) (or ... ... ...) (save-excursion ... ...))) (vc-before-save) (run-hooks (quote before-save-hook)) (or (run-hook-with-args-until-success (quote write-contents-functions)) (run-hook-with-args-until-success (quote local-write-file-hooks)) (run-hook-with-args-until-success (quote write-file-functions)) (setq setmodes (basic-save-buffer-1))) (if save-buffer-coding-system (setq save-buffer-coding-system last-coding-system-used) (setq buffer-file-coding-system last-coding-system-used)) (setq buffer-file-number (nthcdr 10 (file-attributes buffer-file-name))) (if setmodes (condition-case nil (progn ... ...) (error nil)))) (delete-auto-save-file-if-necessary recent-save) (vc-after-save) (run-hooks (quote after-save-hook))))) (message "(No changes need to be saved)")))), 1

Someone have any explication or how fix it?

Thanks!!

max...@gmail.com

unread,
Dec 26, 2015, 3:14:52 PM12/26/15
to Emacs Live, max...@gmail.com
Response myself. 

All my problems occurs withe the git version of Emacs for Archlinux, The versión is 25.0.50 

I finally uninstall that version and reinstall the 24 version, stable package. With this version I haven't problems.


nick rothwell

unread,
Oct 5, 2016, 9:52:59 AM10/5/16
to Emacs Live, max...@gmail.com
I have this too. Busted in Emacs 25.x, fine in 24.x.

Patricio Martinez

unread,
Oct 10, 2016, 4:36:37 AM10/10/16
to nick rothwell, Emacs Live

Thanks!

Reply all
Reply to author
Forward
0 new messages