【问题标题】:Marker does not point anywhere from align-regexp (Emacs)标记不指向对齐正则表达式(Emacs)的任何地方
【发布时间】:2012-10-30 04:27:14
【问题描述】:

我在调用align-regexp 时遇到了标记问题。不知何故,这不起作用并给出错误“Marker does not point anywhere”。

该函数的想法是它搜索一个新段落,标记它,然后对其执行 align-regexp。为什么它不起作用?

(defun cleanR-align-smallerthan-dash ()
  (interactive)
  (save-excursion
    (goto-char (point-min))
    (while (search-forward-regexp "[\n][\n]" nil t) ; confirmed to work
      (mark-paragraph)                            ; the error is probably in here
      (align-regexp (region-beginning) (region-end) "<-"))))

【问题讨论】:

    标签: regex r emacs alignment


    【解决方案1】:

    您传递的正则表达式不是 align-regexp 所期望的。

    看我的回答here

    【讨论】:

      【解决方案2】:

      我的猜测是你遇到了一个错误,并且这个错误不久前在 Emacs 的主干中修复了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多