From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [ANN] Changes to lists Date: Wed, 09 Feb 2011 19:33:48 +0100 Message-ID: <87d3n13vn7.fsf@Rainer.invalid> References: <87k4hve0y7.wl%n.goaziou@gmail.com> <87sjwe18cm.fsf@Rainer.invalid> <877hdqkro8.wl%n.goaziou@gmail.com> <87wrlme543.wl%dmaus@ictsoc.de> <87fws1qfxx.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=52300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnErf-0003xN-Ha for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 13:34:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnErd-0004JO-PH for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 13:34:06 -0500 Received: from lo.gmane.org ([80.91.229.12]:42349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnErd-0004J3-Jm for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 13:34:05 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PnErc-0004L1-1w for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 19:34:04 +0100 Received: from p57aadf0e.dip.t-dialin.net ([87.170.223.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Feb 2011 19:34:04 +0100 Received: from Stromeko by p57aadf0e.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Feb 2011 19:34:04 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > I've pushed a change in that direction. Unchecked boxes do not rely > anymore on visibility:hidden style property. Looks OK, but the space should probably be replaced by   to avoid possible tearing of the checkbox. The regex for matching does not catch "[-]", which explains why this type of checkbox is not boldened. I think something like (if (string-match "^[ \t]*\\[\\([X -]\\)\\]" line) (setq line (replace-match (if (equal (match-string 1 line) " ") "[ ]" (concat "[" (match-string 1 line) "]") t t line)))) should work, but I don't have enough experience with the string replacement functions to be sure that it always does. Meanwhile I've encountered the same questionable construct in the HTML export of "\\___" (whitespace placeholder). Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra