Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Emacs 24.5 #222

Open
johnjelinek opened this issue Dec 2, 2015 · 5 comments
Open

Doesn't work with Emacs 24.5 #222

johnjelinek opened this issue Dec 2, 2015 · 5 comments

Comments

@johnjelinek
Copy link

The Compile Log shows warnings on boot and I can't save files. When I C-x C-s, it spits out some elisp instead.

@jeffma
Copy link

jeffma commented Aug 25, 2016

same problem on emacs 25.0

@dogjaw2233
Copy link

Same with me

@ubermenschjo
Copy link

same on emacs 25.1-1

@ubermenschjo
Copy link

This bug seems to appear only when you specify using live-add-packs.

@herrsebi
Copy link

Same here this is the error message that i get:

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

This happens on a clean install in Emacs 25.1, still works in 24.4.
The error also breaks existing installations on upgrade of emacs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants