From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Hori Newsgroups: gmane.emacs.devel Subject: Re: keybinding to duplicate the current line. Date: Sun, 17 Jan 2010 07:30:13 -0800 Message-ID: References: <27198868.post@talk.nabble.com> <87k4vgeppx.fsf@mithlond.arda> <7b501d5c1001170718r6b571c36l80d03c59e43af8d1@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e649ce30b34c61047d5de9cc X-Trace: ger.gmane.org 1263742232 5210 80.91.229.12 (17 Jan 2010 15:30:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Jan 2010 15:30:32 +0000 (UTC) Cc: "alin.s" , Teemu Likonen , Emacs-devel@gnu.org To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 17 16:30:24 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NWX55-0006Jy-Ka for ged-emacs-devel@m.gmane.org; Sun, 17 Jan 2010 16:30:23 +0100 Original-Received: from localhost ([127.0.0.1]:47724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWX56-0005Iz-A6 for ged-emacs-devel@m.gmane.org; Sun, 17 Jan 2010 10:30:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWX51-0005It-89 for emacs-devel@gnu.org; Sun, 17 Jan 2010 10:30:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWX4w-0005IX-QV for Emacs-devel@gnu.org; Sun, 17 Jan 2010 10:30:18 -0500 Original-Received: from [199.232.76.173] (port=49074 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWX4w-0005IU-K9 for Emacs-devel@gnu.org; Sun, 17 Jan 2010 10:30:14 -0500 Original-Received: from mail-pw0-f47.google.com ([209.85.160.47]:49796) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWX4w-0001pU-49 for Emacs-devel@gnu.org; Sun, 17 Jan 2010 10:30:14 -0500 Original-Received: by pwj10 with SMTP id 10so1404878pwj.26 for ; Sun, 17 Jan 2010 07:30:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Q+4nd7JVdkx7zP3y21QFgOjToT9lhZ1l9pE75rU9uCQ=; b=urPcyDl1jXM0MSkwSeu7hOR+rJnhaxswT1qZrY32PUuFzsJX2FRwQ5Qau4TSyNBmz1 hN/WnbDKEAqBSCaI/Ssm1vvCghJe9fo+xia7QXuEeOpNrkoUq5NXBp3RE8zO2+qyvle1 soIJLZTIpOnfpAP9kgyrlli8+B1N1bDavzTXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=edDvV8ZFX6sbkk6D94dblBGZyLZK+6+jT4v+sTD+hQT/cbaZ2MuYYVmb4xdv08aYCi R5zDmRLv+47mfAPNfwjHtsiweRpZHRBlxWZ5hT547nkwc7GCmoNL9aGnT+2DwFKFVGIZ erR3GhbR7yN8g/WOM6s5IeeEuZSE9z0qAOKB0= Original-Received: by 10.114.5.21 with SMTP id 21mr3386678wae.84.1263742213114; Sun, 17 Jan 2010 07:30:13 -0800 (PST) In-Reply-To: <7b501d5c1001170718r6b571c36l80d03c59e43af8d1@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120155 Archived-At: --0016e649ce30b34c61047d5de9cc Content-Type: text/plain; charset=ISO-8859-1 C-c prefix is supposed to be "reserved" for end-users. But the sad reality is that more than several major-modes break the convention by overriding C-c ... . So I no longer use C-c prefix and instead define my own keymap. It is more secure, at least probabilistically speaking. Actually, I even append a hook to after-change-major-mode-hook so that important local keybindings will never be taken by a major mode. On Sun, Jan 17, 2010 at 7:18 AM, Deniz Dogan wrote: > 2010/1/17 Ken Hori : > > Oh please... > > > > How about sacrificing one keyseq and make your own keymap like this: > > > > Or just use "C-c ". > > -- > Deniz Dogan > --0016e649ce30b34c61047d5de9cc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
C-c prefix is supposed to be "reserved" for end-users.
Bu= t the sad reality is that more than several major-modes
break the conve= ntion by overriding C-c ... . So I no longer
use C-c prefix and instead = define my own keymap.
It is more secure, at least probabilistically speaking.

Actually, I= even append a hook to after-change-major-mode-hook so that
important lo= cal keybindings will never be taken by a major mode.


On Sun, Jan 17, 2010 at 7:18 AM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
2010/1/17 Ken Hori <fplemma@gmail.c= om>:
> Oh please...
>
> How about sacrificing one keyseq and make your own keymap like this: >

Or just use "C-c <one letter>".

--
Deniz Dogan

--0016e649ce30b34c61047d5de9cc--