From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83152 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: delete CC Date: Fri, 10 May 2013 12:41:12 +0200 Organization: Probably a good idea Message-ID: References: <87mws39sdq.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368182577 5284 80.91.229.3 (10 May 2013 10:42:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 May 2013 10:42:57 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31418@lists.math.uh.edu Fri May 10 12:42:56 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uakmt-0003GN-Ig for ding-account@gmane.org; Fri, 10 May 2013 12:42:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1UaklV-00030Y-VD; Fri, 10 May 2013 05:41:30 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1UaklU-00030M-90 for ding@lists.math.uh.edu; Fri, 10 May 2013 05:41:28 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1UaklR-00027y-EQ for ding@lists.math.uh.edu; Fri, 10 May 2013 05:41:27 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UaklP-0001cl-Hx for ding@gnus.org; Fri, 10 May 2013 12:41:23 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UaklP-0001YT-1b for ding@gnus.org; Fri, 10 May 2013 12:41:23 +0200 Original-Received: from steria10.steria.no ([195.204.41.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 May 2013 12:41:23 +0200 Original-Received: from sb by steria10.steria.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 May 2013 12:41:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: steria10.steria.no Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (windows-nt) Cancel-Lock: sha1:nVC9guGVR0DkGe7Qe2SfHO1engY= X-Spam-Score: -3.2 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83152 Archived-At: >>>>> Uwe Brauer : > 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...:-) )