From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14257 Path: news.gmane.org!not-for-mail From: Sharad Pratap Newsgroups: gmane.emacs.gnus.user Subject: Re: gnus-posting-styles - how to match message with more than N lines ? Date: Sat, 24 Jul 2010 01:45:58 +0530 Organization: A noiseless patient Spider Message-ID: <86y6d2vts1.fsf@personal.machine.of.sharard.com> References: <8639vaypj7.fsf@personal.machine.of.sharard.com> <87eieuq9dt.fsf@topper.koldfront.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291957171 13696 80.91.229.12 (10 Dec 2010 04:59:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 04:59:31 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Dec 10 05:59:27 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQv4p-0006rB-69 for gegu-info-gnus-english@m.gmane.org; Fri, 10 Dec 2010 05:59:27 +0100 Original-Received: from localhost ([127.0.0.1]:60264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQutf-0007Ln-Sc for gegu-info-gnus-english@m.gmane.org; Thu, 09 Dec 2010 23:47:55 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 42 Injection-Date: Fri, 23 Jul 2010 20:16:08 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="lLrbQe2LpT4BLEss3AXpSQ"; logging-data="6100"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nfQ+8Ll7qbM8u9Una4zDu" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:dyGjzh9GdCRvWUNYRGfif2DKTno= sha1:sWPBO6ihFXzTTZfX0J9QJ6UtSco= Jabber-ID: sh4r4d@gmail.com Original-Xref: usenet.stanford.edu gnu.emacs.gnus:84556 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:27:57 -0500 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14257 Archived-At: On Sat, Jul 24 2010, Adam Sjøgren wrote: > On Sat, 24 Jul 2010 00:49:24 +0530, Sharad wrote: > >> I want to set message-cite-reply-above to t for those mail which has >> more than 20 lines, for this I am not able to find correct >> `gnus-posting-styles' rule. > > That sounds like a thoroughly bad idea - why not cite and trim properly? This is for those mail (not for News article) that I do need to read, and reply similar type of text (I use posting-style's body attribute.) >> I have just put message-lines imaginary function, where I need some >> real condition to get the desired result. > >> (setq gnus-posting-styles >> ((message-lines > 20) >> (eval (progn >> (set (make-local-variable 'message-cite-reply-above) >> t))))) > > Don't you need to stick a lambda in there somewhere? (Or defun the > function elsewhere and use it in the posting styles?) Yes I have tried [1] (count-lines (point-min) (point-max)) Did not get result, I was not able to find how guns-posting-style used from sources, I have assumed guns-posting-style must be used in reply article's buffer. Footnotes: [1] (setq gnus-posting-styles ((count-lines (point-min) (point-max)) (eval (progn (set (make-local-variable 'message-cite-reply-above) t))))) -- Regards, -sharad