如何将Elisp中的点移动到<enter description here>
的开头并删除该文本。我想把它放在我的〜/ .emacs-p4中,这是通过P4EDITOR使用的,
$ echo $P4EDITOR
emacs -nw --no-init-file --no-splash --load ~/.emacs-p4
p4 submit
的模板用途是:
# A Perforce Change Specification.
#
# Change: The change number. 'new' on a new changelist.
# Date: The date this specification was last modified.
# Client: The client on which the changelist was created. Read-only.
# User: The user who created the changelist.
# Status: Either 'pending' or 'submitted'. Read-only.
# Description: Comments about the changelist. Required.
# Jobs: What opened jobs are to be closed by this changelist.
# You may delete jobs from this list. (New changelists only.)
# Files: What opened files from the default changelist are to be added
# to this changelist. You may delete files from this list.
# (New changelists only.)
Change: new
Client: aflott
User: aflott
Status: new
Description:
<enter description here>
答案 0 :(得分:0)
我认为(没有测试)您需要做的就是:
(search-forward "<enter description here>")
(delete-region (line-beginning-position) (line-end-position))