Gnus development mailing list
 help / color / mirror / Atom feed
* delete CC
@ 2013-05-10  8:00 Uwe Brauer
  2013-05-10 10:41 ` Steinar Bang
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2013-05-10  8:00 UTC (permalink / raw)
  To: ding

Hello

Sometimes I hit gnus-summary-followup instead of gnus-summary-reply and
then I have a unwanted CC field. There seems to be no function which
allows me to delete it, without jumping to the field. I mean something
like

(defun my-eliminate-cc ()
  (interactive)
  (save-excursion
	(goto-char (point-min))
		   (flush-lines "^cc: \\|^Cc: \\| ^CC:")))

Or do I miss something?

thanks

Uwe Brauer 




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

* Re: delete CC
  2013-05-10  8:00 delete CC Uwe Brauer
@ 2013-05-10 10:41 ` Steinar Bang
  0 siblings, 0 replies; 2+ messages in thread
From: Steinar Bang @ 2013-05-10 10:41 UTC (permalink / raw)
  To: ding

>>>>> Uwe Brauer <oub@mat.ucm.es>:

> Or do I miss something?

My fingers just did `C-c C-f C-c C-a C-k C-k' and it worked (at first
try...:-) )

`C-c C-f C-c' is message-goto-cc
`C-a' is message-beginning-of-line
`C-k' is kill-line

So... I guess this will also work, but it isn't any easier than your
example... 
 (defun sb-eliminate-cc ()
   (interactive)
   (save-excursion
     (message-goto-cc)
     (message-beginning-of-line)
     (kill-line)
     (kill-line)))

There is no real benefit to using message-beginning-of-line, in this
context.  We always want to go to the start of the line, so this would
be a better kandidate:
 (defun sb-eliminate-cc ()
   (interactive)
   (save-excursion
     (message-goto-cc)
     (beginning-of-line)
     (kill-line)
     (kill-line)))

(but still no real improvement to your code, if you feel the command is
needed, that is...:-) )




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

end of thread, other threads:[~2013-05-10 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-10  8:00 delete CC Uwe Brauer
2013-05-10 10:41 ` Steinar Bang

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).