一个给内容编号的 Emacs 函数: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

30 September 2025

  • curprev 15:2515:25, 30 September 2025Mwroot talk contribs 1,121 bytes +1 No edit summary
  • curprev 15:2515:25, 30 September 2025Mwroot talk contribs 1,120 bytes +1,120 Created page with "<syntaxhighlight lang="bash" line> (defun generate-sequence-and-insert (prefix suffix width start end step) "生成指定格式的数字序列并插入到当前行的行首。 参数: PREFIX: 前缀字符串 SUFFIX: 后缀字符串 WIDTH: 数字位数(用0补足) START: 起始数字 END: 终止数字 STEP: 步长 示例: (generate-sequence-and-insert \"w\" \"m\" 2 3 21 3) 在当前行的行首分别插入: w03m, w06m, w09m, w12m, w15m, w18m, w21m" (inter..."