From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: gnus-emphasis-alist and strickthru Date: Thu, 31 Mar 2005 18:11:37 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112311136 30804 80.91.229.2 (31 Mar 2005 23:18:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 23:18:56 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 01 01:18:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DH8vV-00066O-TC for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2005 01:18:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH9CI-0005Kx-K3 for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 18:35:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DH99w-00046m-9u for emacs-devel@gnu.org; Thu, 31 Mar 2005 18:33:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DH99t-00045L-Gs for emacs-devel@gnu.org; Thu, 31 Mar 2005 18:33:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH99s-00040g-T1 for emacs-devel@gnu.org; Thu, 31 Mar 2005 18:33:05 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DH8pC-0000Ap-CF for emacs-devel@gnu.org; Thu, 31 Mar 2005 18:11:42 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E6116340019; Thu, 31 Mar 2005 18:11:41 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id D1A524AC231; Thu, 31 Mar 2005 18:11:37 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id AF955E6C15; Thu, 31 Mar 2005 18:11:37 -0500 (EST) Original-To: bugs@gnus.org, emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.827, requis 5, autolearn=not spam, AWL 0.07, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35448 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35448 I like gnus-emphasis-alist, especially now that it has been fixed to not hide the * around things like *scratch*. I have only one disagreement with it: the rule for strikethru. I've *never* seen an article where -foo- was used with the intention to mean that the text should be understood as being striked-through. OTOH I occasionally see some text incorrectly caught by Gnus and marked as strikethru, so I suggest we just drop this rule. Any objection? Stefan --- orig/lisp/gnus/gnus-art.el +++ mod/lisp/gnus/gnus-art.el @@ -366,9 +366,7 @@ (or (nth 4 spec) 3) (intern (format "gnus-emphasis-%s" (nth 2 spec))))) types)) - '(("\\(\\s-\\|^\\)\\(-\\(\\(\\w\\|-[^-]\\)+\\)-\\)\\(\\s-\\|[?!.,;]\\)" - 2 3 gnus-emphasis-strikethru) - ("\\(\\s-\\|^\\)\\(_\\(\\(\\w\\|_[^_]\\)+\\)_\\)\\(\\s-\\|[?!.,;]\\)" + '(("\\(\\s-\\|^\\)\\(_\\(\\(\\w\\|_[^_]\\)+\\)_\\)\\(\\s-\\|[?!.,;]\\)" 2 3 gnus-emphasis-underline)))) "*Alist that says how to fontify certain phrases. Each item looks like this: