manateelazycat / popweb

Show popup web window for Emacs
146 stars 17 forks source link

Lisp error: (void-variable gnus-button-url-regexp) #41

Closed bbenchen closed 1 year ago

bbenchen commented 1 year ago

Debugger entered--Lisp error: (void-variable gnus-button-url-regexp) popweb-current-line-url() popweb-url-prompt-input("preview url: ") popweb-url-input()

(popweb-url-input)

apply(# popweb-url-input) funcall-interactively(popweb-url-input)

(popweb-url-input record nil)

apply(# (popweb-url-input record nil)) explain-pause--wrap-call-interactively(# popweb-url-input record nil) apply(explain-pause--wrap-call-interactively # (popweb-url-input record nil)) call-interactively(popweb-url-input record nil) command-execute(popweb-url-input record) execute-extended-command(nil "popweb-url-input" nil)

(execute-extended-command nil "popweb-url-input" nil)

apply(# (execute-extended-command nil "popweb-url-input" nil)) funcall-interactively(execute-extended-command nil "popweb-url-input" nil)

(execute-extended-command nil nil)

apply(# (execute-extended-command nil nil)) explain-pause--wrap-call-interactively(# execute-extended-command nil nil) apply(explain-pause--wrap-call-interactively # (execute-extended-command nil nil)) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command)

bbenchen commented 1 year ago

环境是emacs 28.2

ginqi7 commented 1 year ago

gnus-button-url-regexp 应该是27.1 就引入了的默认变量。不知道为何你这边没有。 image 可以考虑,先手动定义一下,我后续看看是否替换掉这个变量。

(setq  gnus-button-url-regexp "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|gemini\\|nntp\\|news\\|telnet\\|wais\\|mailto\\|info\\):\\)\\(//[-a-z0-9_.]+:[0-9]*\\)?\\(?:[-a-z0-9_=#$@~%&*+\\/[:word:]!?:;.,]+([-a-z0-9_=#$@~%&*+\\/[:word:]!?:;.,]+)\\(?:[-a-z0-9_=#$@~%&*+\\/[:word:]!?:;.,]+[-a-z0-9_=#$@~%&*+\\/[:word:]]\\)?\\|[-a-z0-9_=#$@~%&*+\\/[:word:]!?:;.,]+[-a-z0-9_=#$@~%&*+\\/[:word:]]\\)\\)")
manateelazycat commented 1 year ago

那是因为需要用户手动 import gnus-art @ginqi7

已经修复了。