From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: New special-mode parent Date: Fri, 13 Jun 2008 17:52:51 -0400 Message-ID: References: <200806131825.m5DIPIkF005162@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213394048 27182 80.91.229.12 (13 Jun 2008 21:54:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2008 21:54:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 13 23:54:51 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 1K7HEP-0005ut-UB for ged-emacs-devel@m.gmane.org; Fri, 13 Jun 2008 23:54:50 +0200 Original-Received: from localhost ([127.0.0.1]:58889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7HDc-0001uS-2x for ged-emacs-devel@m.gmane.org; Fri, 13 Jun 2008 17:54:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7HDX-0001tt-0v for emacs-devel@gnu.org; Fri, 13 Jun 2008 17:53:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7HDW-0001td-9D for emacs-devel@gnu.org; Fri, 13 Jun 2008 17:53:54 -0400 Original-Received: from [199.232.76.173] (port=34135 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7HDW-0001tX-4i for emacs-devel@gnu.org; Fri, 13 Jun 2008 17:53:54 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51206) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K7HDV-00025g-Qz for emacs-devel@gnu.org; Fri, 13 Jun 2008 17:53:54 -0400 Original-Received: from ceviche.home (vpn-132-204-232-72.acd.umontreal.ca [132.204.232.72]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m5DLrqa6004617 for ; Fri, 13 Jun 2008 17:53:52 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id A3FA5B4087; Fri, 13 Jun 2008 17:52:51 -0400 (EDT) In-Reply-To: <200806131825.m5DIPIkF005162@sallyv1.ics.uci.edu> (Dan Nicolaescu's message of "Fri, 13 Jun 2008 11:25:18 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered HAS_X_HELO=0, RV3038=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:99149 Archived-At: >> (defvar special-mode-map >> (let ((map (make-sparse-keymap))) >> (suppress-keymap map) >> (define-key map "q" 'quit-window) >> (define-key map " " 'scroll-up) >> (define-key map "\C-?" 'scroll-down) >> (define-key map "?" 'describe-mode) > This one does not seem that useful view-mode provides it and it seemed like it wouldn't hurt. But I don't really care about it. >> (define-key map ">" 'end-of-buffer) >> (define-key map "<" 'beginning-of-buffer) >> (define-key map "g" 'revert-buffer) > or this one You mean the "g" one? That's actually one I find important: all/most special modes provide it. > How about having an even more minimalistic version of this turned on > even for read-only files? It'd be kind of incompatible with the idea of a major mode. Stefan