突出显示缓冲区修改 [英] Highlight buffer modifications
问题描述
截至Emacs 22.1(至少),'保存-buffers-kill-emacs
( Cx Cc 的默认绑定)会提示您输入具有文件的每个未保存的缓冲区。在提示保存并查看差异时键入 d
从帮助文档中:
保存一些修改后的文件访问缓冲区。向用户询问每个人。
你可以回答`y'保存,`n'不保存`````````````````````````` b $ b使用`diff-buffer-with-file'来查看差异。
如果您看到提示,应该说如下:
保存文件/path/to/file.txt? (y,n,!,。,q,Cr,d或Ch)
键入< > Ch 给你一些更详细的描述(但 d 是你要求的):
键入SPC或`y'保存当前缓冲区;
DEL或`n'跳过当前的缓冲区;
RET或`q'放弃保存(跳过所有剩余的缓冲区);
C-g退出(取消整个命令);
!保存所有剩余的缓冲区;
C-r查看此缓冲区;
d查看此缓冲区中的更改;
或。 (期间)保存当前缓冲区并退出。
It often occurs that a file buffer is modified (duh!). Before exiting, emacs asks whether to save the changes. Now it would be interesting to know what actually changed. Is there a way to find out?
As of Emacs 22.1 (at least), 'save-buffers-kill-emacs
(the default binding for C-x C-c) prompts you for each unsaved buffer that has a file. Type a d when prompted to save and see the diff.
From the help documentation:
Save some modified file-visiting buffers. Asks user about each one.
You can answer `y' to save, `n' not to save, `C-r' to look at the
buffer in question with `view-buffer' before deciding or `d' to
view the differences using `diff-buffer-with-file'.
If you look at the prompt, it should say something like:
Save file /path/to/file.txt? (y, n, !, ., q, C-r, d, or C-h)
Typing C-h gives you a little more verbose description (but d is what you are asking for):
Type SPC or `y' to save the current buffer;
DEL or `n' to skip the current buffer;
RET or `q' to give up on the save (skip all remaining buffers);
C-g to quit (cancel the whole command);
! to save all remaining buffers;
C-r to view this buffer;
d to view changes in this buffer;
or . (period) to save the current buffer and exit.
这篇关于突出显示缓冲区修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!