help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing a function for a indented copy of a region


From: Decebal
Subject: Re: Writing a function for a indented copy of a region
Date: Thu, 18 Dec 2008 07:48:41 -0800 (PST)
User-agent: G2/1.0

On 18 dec, 16:05, Andreas Politz <poli...@fh-trier.de> 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 <char> is/should be
> reserved for the user. C-c C-<char> 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:
> >     (defun my-remove-region(begin end)
> >       "Delete region without putting it in the kill-ring"
> >       (interactive "r")
> >       (kill-region begin end)
> >       (pop kill-ring)
> >       )
>
> Have a look at `delete-region'.

Better use that. ;-]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]