How do you write an elisp lambda to provide an argument to save-some-buffers? -


I'm trying to accomplish this:

  (global-set-key [F7] (lambda (save -f-buffers t))  

It is [F7] that all file buffers are left without asking any questions. The problem is that I do not have to express lambda, so that I can provide the option to save some buffer.

  Save-Some buffers have an interactive compiled LISP function. It is bound to the C-X (save-some buffers and optional ARG PRED) Save some modified file-visit buffers About each one the user asks you to reply to save 'y' to `n ' Not to save, 'buffer-file' to see buffer with 'visual-buffer' or 'D' before deciding to 'CR' to see the difference. This command saves any buffers, where 'buffer-to-without-without-query' is non-zero without asking without asking. Alternative argument (prefix) means non-zero to save all without any questions. Optional second argument PRED determines which buffers are considered: If PRED is zero, then all file-visit buffers are considered. If the PRED is t, then some non-file buffers will also be considered. If the PRED is a zero-logic function, then it indicates for each buffer whether it is to consider it or not when the buffer is called with the current. If you want to change the additional actions you can take on files, see 'Save-some buffers-action-ulst'    

Two things are missing: the logic list (which will be empty in this case), and without a interactive declaration, without which AMAX calls you a key binding function Will not let you

  (global-set-key [f7] (lambda (interactive) (save-a-buffers t))  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -