* article washing bug/misconfiguration (?) @ 2022-11-27 19:26 Emanuel Berg 2022-11-28 9:59 ` Eric S Fraga 0 siblings, 1 reply; 4+ messages in thread From: Emanuel Berg @ 2022-11-27 19:26 UTC (permalink / raw) To: ding Here is the code ... (defun gnus-article-wash-more () (article-translate-strings '( ("#+begin_src r\n" "") ("#+begin_src emacs-lisp\n" "") ("#+end_src\n" "") ("--8<---------------cut" "") ("here---------------end--------------->8---" "") ("here---------------start------------->8---" "") ("Sendt fra min iPad" "") ("Skickades från E-post för Windows 10" "") ("Skickat från Yahoo Mail för iPhone" "") ("naïve" "naive") ("ʼ" "'") ("⇒" "→") ("➜" "→") ("⟦" "[") ("⟧" "]") ("> > > >" ">>>>") ; ugly ("> > >" ">>>") ("> >" ">>") )) (gnus-article-strip-multiple-blank-lines) ) (defun gnus-article-prepare-hook-f () (gnus-with-article-buffer (gnus-article-wash-more) )) (add-hook 'gnus-article-prepare-hook #'gnus-article-prepare-hook-f) ;; (remove-hook 'gnus-article-prepare-hook #'gnus-article-prepare-hook-f) And here is the problem ... https://dataswamp.org/~incal/error/gnus/after.png https://dataswamp.org/~incal/error/gnus/before.png I have to open and close the button for it to work? :O ??? -- underground experts united https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: article washing bug/misconfiguration (?) 2022-11-27 19:26 article washing bug/misconfiguration (?) Emanuel Berg @ 2022-11-28 9:59 ` Eric S Fraga 2022-11-28 19:44 ` Emanuel Berg 0 siblings, 1 reply; 4+ messages in thread From: Eric S Fraga @ 2022-11-28 9:59 UTC (permalink / raw) To: ding Maybe check values of gnus-cite-hide-absolute and gnus-cite-hide-percentage? -- Eric S Fraga via gnus (Emacs 29.0.50 2022-09-26) on Debian 11.5 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: article washing bug/misconfiguration (?) 2022-11-28 9:59 ` Eric S Fraga @ 2022-11-28 19:44 ` Emanuel Berg 2023-06-04 0:46 ` Emanuel Berg 0 siblings, 1 reply; 4+ messages in thread From: Emanuel Berg @ 2022-11-28 19:44 UTC (permalink / raw) To: ding Eric S Fraga wrote: > Maybe check values of gnus-cite-hide-absolute and > gnus-cite-hide-percentage? Both are at their original values: `gnus-cite-hide-absolute' is 10 and `gnus-cite-hide-percentage' is 50. I think it's a bug then, substitution should not end up outside of the button? That it gets the right way from opening and closing the button also indicate this, that is is a bug. https://dataswamp.org/~incal/error/gnus/before.png https://dataswamp.org/~incal/error/gnus/after.png Is my code good? If it is, it's a bug. https://dataswamp.org/~incal/emacs-init/gnus/article.el (lines 117-145) -- underground experts united https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: article washing bug/misconfiguration (?) 2022-11-28 19:44 ` Emanuel Berg @ 2023-06-04 0:46 ` Emanuel Berg 0 siblings, 0 replies; 4+ messages in thread From: Emanuel Berg @ 2023-06-04 0:46 UTC (permalink / raw) To: ding > https://dataswamp.org/~incal/error/gnus/before.png > https://dataswamp.org/~incal/error/gnus/after.png I now know how to reproduce this bug. First do (setq gnus-treat-hide-citation t) Then open an article from the Gnus summary. If there is a citation represented as a button, don't open it, instead do (article-translate-strings '(("a" "."))) And see the bug appear, in this case a dot, if the citation contains one or more instances of the character "a". -- underground experts united https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-04 0:46 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-11-27 19:26 article washing bug/misconfiguration (?) Emanuel Berg 2022-11-28 9:59 ` Eric S Fraga 2022-11-28 19:44 ` Emanuel Berg 2023-06-04 0:46 ` Emanuel Berg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).