From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: Maintenance suggestion on an emacs mode Date: Mon, 31 Mar 2008 00:24:02 +0200 Message-ID: <7dbe73ed0803301524i5bf9de08s68a3438f3517cb9e@mail.gmail.com> References: <7dbe73ed0803301450i4ffe064dx91705d331234dca1@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206915857 2235 80.91.229.12 (30 Mar 2008 22:24:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 22:24:17 +0000 (UTC) Cc: paul r , rms@gnu.org, emacs-devel@gnu.org To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 31 00:24:48 2008 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 1Jg5xG-0000pI-U8 for ged-emacs-devel@m.gmane.org; Mon, 31 Mar 2008 00:24:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg5we-0006mM-S1 for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 18:24:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jg5wb-0006mG-Q8 for emacs-devel@gnu.org; Sun, 30 Mar 2008 18:24:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jg5wZ-0006js-G4 for emacs-devel@gnu.org; Sun, 30 Mar 2008 18:24:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg5wZ-0006jp-Au for emacs-devel@gnu.org; Sun, 30 Mar 2008 18:24:03 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jg5wZ-0008F9-2t for emacs-devel@gnu.org; Sun, 30 Mar 2008 18:24:03 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so1660955wah.10 for ; Sun, 30 Mar 2008 15:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=n26eyDi72jw8I6yfm5uAwuGQ1kJPVj65eCSG294r9Vs=; b=YLAebw8Cpu3Jn4HJcToGmZ09AbxvfEWODQRfsncthvvKKP6NLS7b2NVcM4cQxYAxeiRFjvzzm7YdxCUf6pu/amMRKgju0MAMBhwwDyFOD5hkyA8yDVsSS+DD/UFhWGwNUJBd9nwuq2GYMVopsilDykh7OwB5a37+Jrj6he+uJsQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MdgWGVAoHUCcLAvAHGR3umnKdb0pXlKVfJeB2s6Pmj5rE3j9vbA5Wzpeelx9JX44Q6MXOsWoiSr5+TAQwnrCI7x1i57uBnS9pcFdDaG31eR10L3ZHinf5t0ZiYSj16nAt4M9O+Sh6mNjYCAhwv2jvlkD214svGhx1ajO1SqDrDc= Original-Received: by 10.114.110.12 with SMTP id i12mr8675401wac.73.1206915842208; Sun, 30 Mar 2008 15:24:02 -0700 (PDT) Original-Received: by 10.114.146.9 with HTTP; Sun, 30 Mar 2008 15:24:02 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: 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:93967 Archived-At: > > In this case it is up to the user if he wants to set `html-quick-keys' > > to true so I think we should leave that alone. The important thing is > > that we do not bind any C-c[a-zA-Z] keys by default, right? If the > > user wants this convenience feature we should not make it less > > convenient. > > No, that's not how it works. Sorry, I don't understand what you mean. What part of what I write above have I misunderstood? Here is some code from sgml-mode.el: (defvar html-quick-keys sgml-quick-keys "Use C-c X combinations for quick insertion of frequent tags when non-nil. This defaults to `sgml-quick-keys'. This takes effect when first loading the library.") and later comes: ... (define-key map "\C-c\C-cn" 'html-name-anchor) (define-key map "\C-c\C-ci" 'html-image) (when html-quick-keys (define-key map "\C-c-" 'html-horizontal-rule) (define-key map "\C-co" 'html-ordered-list) (define-key map "\C-cu" 'html-unordered-list) (define-key map "\C-cr" 'html-radio-buttons) (define-key map "\C-cc" 'html-checkboxes) (define-key map "\C-cl" 'html-list-item) (define-key map "\C-ch" 'html-href-anchor) (define-key map "\C-cn" 'html-name-anchor) (define-key map "\C-ci" 'html-image)) (define-key map "\C-c\C-s" 'html-autoview-mode) (define-key map "\C-c\C-v" 'browse-url-of-buffer) ... It looks to me as the user makes a choice to have these bindings. Is it then still not allowed to bind keys like this?