Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: boxquote: Article ID?
       [not found] <Szs2c.41924$Ri6.23822@lakeread04>
@ 2004-03-07  0:24 ` Karl Pflästerer
       [not found]   ` <GBw2c.44036$Ri6.28700@lakeread04>
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Pflästerer @ 2004-03-07  0:24 UTC (permalink / raw)


On  6 Mar 2004, Bob Bernstein <- bernstein@cesmail.net wrote:

> How does one actually put into effect the "non-trivial example" for
> the value of 'boxquote-kill-ring-save-title' shown above? 

With `M-x customize-variable RET boxquote-kill-ring-save-title RET' or a
setq in your .gnus.el

Could be:

(setq boxquote-kill-ring-save-title 
	#'(lambda ()
	    (if (string= mode-name \"Article\")
	      (aref gnus-current-headers 4)
	      (buffer-name))))

Simply eval that form (put your cursor behind the last closing
parentheses and press `C-x C-e'.  Then try to copy something from an
article buffer.
 
> As it stands, using the sequence described in the snippet above,

How did you use it?



   KP

-- 
"But it has nothing to do with what a _value_ is.  This has to do with
whether you pass whatever-a-value-is or wherever-whatever-is-a-value-is
whenever you pass an argument to a function.  (Call it the Shakira
theory. :)"    [Erik Naggum in cllisp über call-by-value und call-by-reference]


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: boxquote: Article ID?
       [not found]   ` <GBw2c.44036$Ri6.28700@lakeread04>
@ 2004-03-07  4:14     ` Bob Bernstein
  0 siblings, 0 replies; 2+ messages in thread
From: Bob Bernstein @ 2004-03-07  4:14 UTC (permalink / raw)



,----[ <GBw2c.44036$Ri6.28700@lakeread04> ]
| > (setq boxquote-kill-ring-save-title 
| >         #'(lambda ()
| >             (if (string= mode-name \"Article\")
| >               (aref gnus-current-headers 4)
| >               (buffer-name))))
`----

The answer is: the quotes around "Article" do not need to be escaped.

(if (string= mode-name "Article")

...works just fine.

Thanks for the feedback!

-- 
Bob Bernstein

    ...in the common Practice of the World, those who possess most
    Wealth, make the least Parade; which they leave to others, who
    have nothing else to bear them out, in shewing their Faces on the
    Exchange.
    
    Jonathan Swift, "A Short View of the State of Ireland", 1727


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-07  4:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Szs2c.41924$Ri6.23822@lakeread04>
2004-03-07  0:24 ` boxquote: Article ID? Karl Pflästerer
     [not found]   ` <GBw2c.44036$Ri6.28700@lakeread04>
2004-03-07  4:14     ` Bob Bernstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).