From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Re: Writing a function for a indented copy of a region Date: Thu, 18 Dec 2008 07:48:41 -0800 (PST) Organization: http://groups.google.com Message-ID: <8f7e6930-33dd-43ac-b1dd-8b89a3a55c06@k36g2000pri.googlegroups.com> References: <1229612783.940597@arno.fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1229618561 21193 80.91.229.12 (18 Dec 2008 16:42:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2008 16:42:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 18 17:43:46 2008 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 1LDLyO-0003mC-Qu for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Dec 2008 17:43:41 +0100 Original-Received: from localhost ([127.0.0.1]:36548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDLxC-0007FU-Kj for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Dec 2008 11:42:26 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k36g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 85.158.139.99 Original-X-Trace: posting.google.com 1229615321 30848 127.0.0.1 (18 Dec 2008 15:48:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 18 Dec 2008 15:48:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k36g2000pri.googlegroups.com; posting-host=85.158.139.99; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 proxy-26:8080 (squid/2.5.STABLE8), 1.0 netcache-4 (NetCache NetApp/6.0.5), 1.0 netcache-4 (NetCache NetApp/6.0.5), 1.1 cache-1:80 Original-Xref: news.stanford.edu gnu.emacs.help:165476 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:60802 Archived-At: On 18 dec, 16:05, Andreas Politz wrote: > Decebal wrote: > > I made key-combinations for al the three functions. > > Are there standards for naming functions and asigning functions to key > > combinations? > > It is mentioned somewhere in the info files, that C-c is/should be > reserved for the user. C-c C- is often used by major-modes, > whose keymap will potentially shadow your global-map . I saw that. My keys conflict with shell-mode. Have to dink about something better. > > The code: > > =A0 =A0 (defun my-remove-region(begin end) > > =A0 =A0 =A0 "Delete region without putting it in the kill-ring" > > =A0 =A0 =A0 (interactive "r") > > =A0 =A0 =A0 (kill-region begin end) > > =A0 =A0 =A0 (pop kill-ring) > > =A0 =A0 =A0 ) > > Have a look at `delete-region'. Better use that. ;-]