From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrey Tykhonov Newsgroups: gmane.emacs.help Subject: Re: Search StackOverflow and paste code snippets without leaving the edited file Date: Sat, 11 Jan 2014 01:33:16 +0200 Message-ID: References: <871u0ni3nt.fsf@nl106-137-194.student.uu.se> <1389357782.26879.3.camel@homebase> <6e4b1aba-1a4c-42bb-b69d-d90a81720fda@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1389396826 2685 80.91.229.3 (10 Jan 2014 23:33:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2014 23:33:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Emanuel Berg , psmith@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 11 00:33:53 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W1laK-00054d-My for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jan 2014 00:33:52 +0100 Original-Received: from localhost ([::1]:59495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1laK-0001Pb-8c for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jan 2014 18:33:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1la8-0001PO-HW for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 18:33:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1la7-0003TL-IS for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 18:33:40 -0500 Original-Received: from mail-oa0-x22c.google.com ([2607:f8b0:4003:c02::22c]:47529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1la5-0003T5-Qs; Fri, 10 Jan 2014 18:33:37 -0500 Original-Received: by mail-oa0-f44.google.com with SMTP id h16so5811702oag.3 for ; Fri, 10 Jan 2014 15:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qQs6ApGoDcH7yNJMca0cDamFQB3Qo6yfORLvRFOdiwo=; b=YRXnL6Wgy5JLQjrxttWfN68umtEqf6m7hGPjVM+BDUGoGVFE5ZWFJL5MG4Zj2Koqjx JRoTViPkjfqYm1I6zVV45BVTAYrtP+kWi9cMFBDuZWDQd5Ke8/FGjCyl5ZccyN1BdiX1 /9fu3zY7SoPspeFHCpNQi7T7XTGjnHyybGHNg0thxoSEV/z2an5IPFFcUQkRf3tZDpS3 UUJn54Qbx9zZxS5heoJZV5o71tohWIJQEwPt4KE+QRAps2IspmRv16VDtwbnT2zRMdUe TJPnPxRISgmj3Dq8wIuQy6lYbPxfHdDZVSZltOY3vGqqvmMTKtFkYP1t6FswP4KOgsJz qrCg== X-Received: by 10.60.135.130 with SMTP id ps2mr10408430oeb.46.1389396817025; Fri, 10 Jan 2014 15:33:37 -0800 (PST) Original-Received: by 10.76.169.42 with HTTP; Fri, 10 Jan 2014 15:33:16 -0800 (PST) In-Reply-To: <6e4b1aba-1a4c-42bb-b69d-d90a81720fda@default> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22c X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95350 Archived-At: 2014/1/10 Drew Adams > > > I'm not sure that I chose right prefix "C-c o". I hope it will be > > > ok. > > > > Please do not use bindings with "C-c ". They seem unused > > because they are reserved for customization by the individual user. > > They're the only key bindings so reserved, and we really need to not > > override them. > > Yes. To elaborate: > > In the Elisp manual, `i key TAB' shows `key bindings, conventions for'. > Choosing that takes you to node `Key Binding Conventions', where you > see this among other guidelines, right near the beginning: > > * Don't define `C-c LETTER' as a key in Lisp programs. Sequences > consisting of `C-c' and a letter (either upper or lower case) are > reserved for users; they are the *only* sequences reserved for > users, so do not block them. > If you are writing a major mode, you owe it to yourself to check > the manual for this and other advice about writing modes. > `i convention TAB' shows you, for example, index entries > `conventions for writing major modes' and `conventions for writing > minor modes'. > Thank you for these references, Drew! I feel that I need to investigate this question more deeper before changing existing code. I've started with major mode conventions and will put appropriate changes step by step.