From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Assignment of misc packages for emacs Date: 17 May 2002 01:39:57 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x3cwr4q7m.fsf@kfs2.cua.dk> References: <200205050534.g455YfF01634@aztec.santafe.edu> <5xbsbumexh.fsf@kfs2.cua.dk> <200205141941.g4EJfud15293@aztec.santafe.edu> <5xvg9qmgzt.fsf@kfs2.cua.dk> <200205151927.g4FJRRW26103@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021588919 529 127.0.0.1 (16 May 2002 22:41:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 May 2002 22:41:59 +0000 (UTC) Cc: rms@gnu.org, assign@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 178Twd-00008Q-00 for ; Fri, 17 May 2002 00:41:59 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 178U8q-0007ZO-00 for ; Fri, 17 May 2002 00:54:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178Twp-00057I-00; Thu, 16 May 2002 18:42:11 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 178Tty-0004qO-00; Thu, 16 May 2002 18:39:14 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id F299A7C016; Thu, 16 May 2002 22:39:11 +0000 (GMT) Original-To: "Stefan Monnier" In-Reply-To: <200205151927.g4FJRRW26103@rum.cs.yale.edu> Original-Lines: 80 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4036 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4036 "Stefan Monnier" writes: Re: M-x match -- > > I personally use > > C-u M-x grep RET RET > > > The latter doesn't (easily) allow you to start the search in another > > directory, and it finds (duplicate) matches in backup files (such as > > xterm.c~), and IMO the prompt is _completely obscure_ unless you are a > > UNIX shell expert... > > Agreed, that's why I prefer zsh's ** construct. I think C-u M-x grep RET > should be more aggressive in its choice of initial command (it only > chooses the files' extension for you the first time you invoke it). > The reason why it's so conservative was because I wanted to install > my code without having to convince anybody that the new behavior was better > so I kept 100% compatibility with the old behavior. I've never liked M-x grep for the very reason that I have to edit the command. > > > > I am not sure it is worth reading the directory rather than just using > > > the current directory. > > This is VERY useful (I use it very often), and to use the current > > directory, just hit RET. > > I must say that I generally prefer the C-u M-x grep approach which does > not force you into a series of questions, but just presents you with > the "complete default" and lets you edit it to your liking. One additional trick is that M-x match prompts you for the directory using ido-read-directory, meaning that it is very easy to navigate to a completely different base directory. > > Yes, you could argue that this is a separate issue -- but I think the > > menu need to be efficient to get the maximum usability... > > You're probably right that we should improve the compilation-mode's support > for such browsing. Maybe only for *grep* buffers, but maybe not. > But that just means rebinding next-error (and previous-error) to more > keys than just C-x `. Right. I'll look at the new grep code (I wasn't aware that grep had been rewritten) as well as my own code again to see whether I can enhance the standard code rather than add a separate package. BTW, M-x match uses jit-lock to fontify the matches in the *Match* buffer. And when you visit a match, it is temporarily highlighted in the target buffer (using an overlay). Re: mini-menu -- > > > I can see the similarity in functionality, but for the simple use for > > which it is intended, I like mine better, as it is less intrusive and > > more similar to a keymap "with intermediate help in echo area". > > I'm still not clear how it compares to HierarKey menus > (see PCL-CVS's `d' prefix or the M-g prefix in the global map). I wasn't aware of the HierarKey feature (it's a very well hidden "fact"). It compares almost 1:1 ... except I don't like HierarKey menus to show the full key bindings, e.g. Set face: default (M-g d), bold (M-g b), italic (M-g i), l = bold-italic (M-g l), undeline (M-g u), Other ... (M-g o) With mini-menu, this would be much simpler, e.g. Set face: d)efault b)old i)talic bo(l)d-italic u)ndeline o)ther ... I guess we could hack the HierarKey menus to look like that -- then mini-menu would definitely have no purpose at all! -- Kim F. Storm http://www.cua.dk