From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: saneman Newsgroups: gmane.emacs.help Subject: Re: Toggle commenting in auctex? Date: Fri, 18 Apr 2008 13:27:58 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: <48088580$0$90272$14726298@news.sunsite.dk> References: <4807bb6e$0$90267$14726298@news.sunsite.dk> <4807cd59$0$90270$14726298@news.sunsite.dk> <871w53y4qa.fsf@gmail.com> <480865f1$0$90262$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1208612902 14676 80.91.229.12 (19 Apr 2008 13:48:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2008 13:48:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 19 15:48:43 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jmoz8-0008So-I1 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Apr 2008 13:42:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmoyT-00039z-MC for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Apr 2008 07:41:49 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Thunderbird 2.0.0.12 (X11/20080227) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 13 Original-NNTP-Posting-Host: 130.225.245.182 Original-X-Trace: news.sunsite.dk DXC=\00[Ef]mXI:=M\fUi`VZV1? Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:158008 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53384 Archived-At: Johan Bockgård wrote: > saneman writes: > >> In emacs 'd' and the 'delete' key are the same for some reason. Is >> there a way to assign the operation to 'd' without also assigning it >> too 'delete'? > > (global-set-key "\C-d" 'comment-dwim) > (define-key function-key-map [delete] [deletechar]) > Does not work. If I have selected a region of text and press delete it get commented and not deleted.