From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: [OT] What's wrong with Gnus citations? Date: Tue, 14 Feb 2017 09:59:16 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87r330ked7.fsf@lifelogs.com> References: <87k29d7zvw.fsf@engster.org> <87fuk08i01.fsf@engster.org> <87d1f36xnc.fsf@engster.org> <87a8a4ees0.fsf@engster.org> <87poiz2raf.fsf@engster.org> <83k28v2zj0.fsf@gnu.org> <864lzzoxqg.fsf@stephe-leake.org> <86mvdpopdm.fsf@stephe-leake.org> <83a89p27ob.fsf@gnu.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487084401 12410 195.159.176.226 (14 Feb 2017 15:00:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2017 15:00:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 14 15:59:54 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdeaA-0002sx-AJ for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2017 15:59:54 +0100 Original-Received: from localhost ([::1]:35314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdeaF-0007LH-TK for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2017 09:59:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdeZn-00076l-W4 for emacs-devel@gnu.org; Tue, 14 Feb 2017 09:59:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdeZj-0007yI-Bn for emacs-devel@gnu.org; Tue, 14 Feb 2017 09:59:32 -0500 Original-Received: from [195.159.176.226] (port=50681 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cdeZj-0007xG-3y for emacs-devel@gnu.org; Tue, 14 Feb 2017 09:59:27 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cdeZa-0000e3-1g for emacs-devel@gnu.org; Tue, 14 Feb 2017 15:59:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:Nc7Xu+MNg5w8sjDHyvSD7r2pr+Y= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212370 Archived-At: On Mon, 13 Feb 2017 12:57:56 -0800 John Wiegley wrote: >>>>>> Eli Zaretskii writes: >> John, why does Gnus reverse "SL" as if it were some RTL script? >> This is not the first time I see this; here's another, even more hilarious, >> example: JW> Sigh, this is flyspell-auto-correct-mode messing with me, since apparently it JW> thinks LS is correct, but SL is not. I try to fix these by hand before I send, JW> but I sometimes forget. If I disable it entirely, even more hilarity will JW> result within the bodies of my messages. JW> The real solution will be to change flyspell-auto-correct to ignore any word JW> that ends in >. Flyspell could ignore text with the face `message-cited-text' like it does with `flyspell-prog-mode' and `flyspell-prog-text-faces': #+begin_src emacs-lisp (defvar flyspell-prog-text-faces '(font-lock-string-face font-lock-comment-face font-lock-doc-face) "Faces corresponding to text in programming-mode buffers.") (defun flyspell-generic-progmode-verify () "Used for `flyspell-generic-check-word-predicate' in programming modes." ;; (point) is next char after the word. Must check one char before. (let ((f (get-text-property (- (point) 1) 'face))) (memq f flyspell-prog-text-faces))) ... (setq flyspell-generic-check-word-predicate #'flyspell-generic-progmode-verify) #+end_src John, it's easy to add this manually to your own setup, but maybe we can make it work for everyone. I don't know if it should go into message.el or flyspell.el though? Ted