From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38208 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: %C Date: Thu, 23 Aug 2001 18:41:25 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035174109 21140 80.91.224.250 (21 Oct 2002 04:21:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:21:49 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 585 invoked from network); 23 Aug 2001 16:41:49 -0000 Original-Received: from quimby.gnus.org (195.204.10.139) by gnus.org with SMTP; 23 Aug 2001 16:41:49 -0000 Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id SAA01294 for ding@gnus.org; Thu, 23 Aug 2001 18:41:47 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 998584906 10687 195.204.10.148 (23 Aug 2001 16:41:46 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 23 Aug 2001 16:41:46 GMT Mail-Copies-To: never X-Now-Playing: Harold Budd and Hector Zazou's _Glyph_: "Around the Corner From Everywhere" User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ %C is not working if the spec begins with %C, i.e %C%U%R... > then I get: > > Args out of range: #, 0, 1 Hm; yes. One can't use zero-width text props (which is how %C is implemented), so it sets the property on the preceding character. And that's not possible when the %C comes first. Although I guess I could just special-case for that and just leave the text prop off entirely if it comes first. That will leave point at the start of the line. (Except when there's a colon on the line.) >> %50T to go to column 50 >> %-50T to go to column 50 -- possibly deleting text that's already >> been inserted to get to the column > > shouldn't T be = ? Or do I missinterpret the docs? I changed my mind between writing the mail and writing the code. It's "%=". > By the way both %C and %nn= (or %nnT) is missing in the > gnus-summary-line-format description. None of the general specs are described in any of the specific line format doc strings. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen