在emacs中向后比较windows以返回到以前的差异
我经常使用compare windows,但希望有向后的功能“回到以前的差异”。在emacs中向后比较windows以返回到以前的差异,emacs,compare,window,Emacs,Compare,Window,我经常使用compare windows,但希望有向后的功能“回到以前的差异”。 有这样的功能吗?看看比较窗口的代码,似乎它已经成功了。而doc字符串也说了同样的话。您是否尝试过使用C-u C-SPC或任何其他方式在标记环周围导航 ,---- | compare-windows is an interactive autoloaded Lisp function in | `compare-w.el'. | | It is bound to C-M-=, C-= w, menu-bar too
有这样的功能吗?看看
比较窗口的代码,似乎它已经成功了。而doc字符串也说了同样的话。您是否尝试过使用C-u C-SPC
或任何其他方式在标记环周围导航
,----
| compare-windows is an interactive autoloaded Lisp function in
| `compare-w.el'.
|
| It is bound to C-M-=, C-= w, menu-bar tools compare window.
|
| (compare-windows IGNORE-WHITESPACE)
|
| Compare text in current window with text in next window.
| Compares the text starting at point in each window,
| moving over text in each one as far as they match.
|
| This command pushes the mark in each window
| at the prior location of point in that window.
| If both windows display the same buffer,
| the mark is pushed twice in that buffer:
| first in the other window, then in the selected window.
|
| A prefix arg means reverse the value of variable
| `compare-ignore-whitespace'. If `compare-ignore-whitespace' is
| nil, then a prefix arg means ignore changes in whitespace. If
| `compare-ignore-whitespace' is non-nil, then a prefix arg means
| don't ignore changes in whitespace. The variable
| `compare-windows-whitespace' controls how whitespace is skipped.
| If `compare-ignore-case' is non-nil, changes in case are also
| ignored.
|
| If `compare-windows-sync' is non-nil, then successive calls of
| this command work in interlaced mode:
| on first call it advances points to the next difference,
| on second call it synchronizes points by skipping the difference,
| on third call it again advances points to the next difference and so on.
`----
,----
|compare windows是中的一个交互式自动加载Lisp函数
|“比较-w.el”。
|
|它绑定到C-M-=,C-=w,菜单栏工具比较窗口。
|
|(比较windows忽略和空白)
|
|将当前窗口中的文本与下一窗口中的文本进行比较。
|比较每个窗口中从点开始的文本,
|移动每个文本中的文本,直到它们匹配为止。
|
|此命令在每个窗口中推送标记
|在该窗口中点的先前位置。
|如果两个窗口显示相同的缓冲区,
|该标记在该缓冲区中按下两次:
|首先在另一个窗口中,然后在选定的窗口中。
|
|前缀arg表示反转变量的值
|'比较忽略空白'。如果选择“比较忽略空白”
|nil,则前缀arg表示忽略空白中的更改。如果
|'compare ignore whitespace'为非nil,则前缀arg表示
|不要忽略空格中的更改。变量
|“比较windows空白”控制跳过空白的方式。
|如果“比较忽略大小写”为非nil,则大小写中的更改也将被忽略
|忽略。
|
|如果“比较windows同步”为非nil,则
|此命令在隔行模式下工作:
|在第一次呼叫时,它将指向下一个差异,
|在第二次调用时,它通过跳过差异来同步点,
|在第三次呼叫时,它再次将点向前推进到下一个差异,以此类推。
`----
虽然有用,但不清楚这个答案是如何回答这个问题的?不清楚“围绕标记环导航的其他方式”与最初提问者提出的问题有什么关系-如何“返回到以前的差异”。想象一下,我有两个可见的缓冲区,我在它们的末尾。两个缓冲区的结尾相同,但每个缓冲区的开头不同。我如何向后搜索缓冲区发散的位置(向后读取)?@其他人:你说得对。在一个缓冲区中导航标记环也不会将点移动到另一个窗口中相应的差异。我将保留书面答案,但我同意它不能回答问题。谢谢。