Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
标记不指向align regexp(Emacs)的任何位置_Regex_R_Emacs_Alignment - Fatal编程技术网

标记不指向align regexp(Emacs)的任何位置

标记不指向align regexp(Emacs)的任何位置,regex,r,emacs,alignment,Regex,R,Emacs,Alignment,我在调用align regexp时遇到标记问题。不知何故,这不起作用,并给出错误“标记不指向任何地方” 该函数的思想是搜索新段落,对其进行标记,然后对其执行align regexp。为什么不起作用 (defun cleanR-align-smallerthan-dash () (interactive) (save-excursion (goto-char (point-min)) (while (search-forward-regexp "[\n][\n]" nil

我在调用
align regexp
时遇到标记问题。不知何故,这不起作用,并给出错误“
标记不指向任何地方”

该函数的思想是搜索新段落,对其进行标记,然后对其执行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) "<-"))))
(将清洁器与划线()对齐)
(互动)
(省去远足
(转到字符(最小点))
(while(向前搜索regexp“[\n][\n]”nil t);已确认有效
(标记段落);错误可能在这里

(align regexp(region-start)(region-end)“我猜您遇到了一个bug,而这个bug不久前在Emacs的主干中已经修复。

您传递的regexp不是
align regexp
所期望的

看看我的答案