From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: A few questions about occur-mode Date: Sat, 21 Sep 2002 15:39:38 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: <20020920131146.369D.LEKTU@terra.es> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1032637764 28206 127.0.0.1 (21 Sep 2002 19:49:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 21 Sep 2002 19:49:24 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17sqFn-0007Kg-00 for ; Sat, 21 Sep 2002 21:49:23 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17sqvF-0006FI-00 for ; Sat, 21 Sep 2002 22:32:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17sqFm-0001ny-00; Sat, 21 Sep 2002 15:49:22 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17sq6O-0008Ke-00 for emacs-devel@gnu.org; Sat, 21 Sep 2002 15:39:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17sq6N-0008KR-00 for emacs-devel@gnu.org; Sat, 21 Sep 2002 15:39:40 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17sq6M-0008KL-00 for emacs-devel@gnu.org; Sat, 21 Sep 2002 15:39:38 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 17sq6M-00032D-00; Sat, 21 Sep 2002 15:39:38 -0400 Original-To: lektu@terra.es In-reply-to: <20020920131146.369D.LEKTU@terra.es> (message from Juanma Barranquero on Fri, 20 Sep 2002 13:44:09 +0200) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8086 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8086 1.- Would anyone object to making some occur functions (namely `occur-mode-goto-occurrence', `occur-mode-display-occurrence' and `occur-mode-goto-occurrence-other-window') to accept an optional argument and do a (recenter arg) after moving the point? My main use of occur is: These functions are part of a series that exist in many different parts of Emacs (including Dired, for instance). So the decision of whether to change them in this way calls for more thought. For now, please don't. 4.- IMO it'd be nice to have bindings in occur-mode to do C-n C-o and C-p C-o (I'd put them in M-n, M-p instead of occur-{next|prev}, but C-M-n and C-M-p would do fine too). Useful, or something to be relegated to my .emacs? :-) If we do this, we should do it in all of those modes. This too calls for more though and study. 2.- Why are the functions called occur-mode-* instead of simply occur-*? No particular reason. 3.- Do `occur-next' and `occur-prev' do something, or are they remnants of some long-deleted code, a half-implemented idea, or what? AFAICS, the 'occur-point property is only referenced in `occur-next', `occur-prev' and `sh-mark-line' (in progmodes/sh-script.el). I don't remember anything about that.