* lisp/progmodes/project.el (project-save-some-buffers): New command.
(project-prefix-map): Bind it to C-x p C-x s.
* etc/NEWS: Announce the new command and binding.
(cherry picked from commit
db0bed7a68cd2308eba61247a6a77f73533ffef6)
(define-key map "o" 'project-any-command)
(define-key map "\C-b" 'project-list-buffers)
(define-key map "`" 'project-go-to-diagnostic)
+ (define-key map "\C-xs" 'project-save-some-buffers)
map)
"Keymap for project commands.")
((funcall query-user)
(mapc #'kill-buffer bufs)))))
+;;;###autoload
+(defun project-save-some-buffers (arg)
+ "Like `save-some-buffers', but only for this project's buffers."
+ (interactive "P")
+ (save-some-buffers arg (save-some-buffers-root)))
+
\f
;;; Project list