From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: Re: next-error accepts a prefix argument, but previous-error doesn't Date: 23 Aug 2003 02:05:55 +0300 Organization: JURTA Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ada1e1ik.fsf@mail.jurta.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061626031 12711 80.91.224.253 (23 Aug 2003 08:07:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Aug 2003 08:07:11 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 23 10:07:08 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19qTQS-0003o4-00 for ; Sat, 23 Aug 2003 10:07:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qTPl-0002IC-7d for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Aug 2003 04:06:25 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19qLgy-00026z-Hx for bug-gnu-emacs@prep.ai.mit.edu; Fri, 22 Aug 2003 19:51:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19qLdf-0000oB-Aq for bug-gnu-emacs@prep.ai.mit.edu; Fri, 22 Aug 2003 19:48:46 -0400 Original-Received: from [130.59.10.2] (helo=chx400.switch.ch) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qL7Q-0004Pw-Pm for bug-gnu-emacs@prep.ai.mit.edu; Fri, 22 Aug 2003 19:14:56 -0400 Original-Received: from kadri.ut.ee ([193.40.5.94]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 19qL75-0003rB-00 for gnu-emacs-bug@moderators.isc.org; Sat, 23 Aug 2003 01:14:35 +0200 Original-Received: from kadri.ut.ee (news@localhost [IPv6:::1]) by kadri.ut.ee (8.12.1/8.12.1/kadri-1.39) with ESMTP id h7MNDqGj028195 for ; Sat, 23 Aug 2003 02:13:52 +0300 (EEST) Original-Received: (from news@localhost) by kadri.ut.ee (8.12.1/8.12.1/Submit) id h7MNDpeC028185 for gnu-emacs-bug@moderators.isc.org; Sat, 23 Aug 2003 02:13:51 +0300 (EEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 34 Original-NNTP-Posting-Host: 80-235-40-204-dsl.mus.estpak.ee Original-X-Trace: kadri.ut.ee 1061594031 23770 80.235.40.204 (22 Aug 2003 23:13:51 GMT) Original-X-Complaints-To: usenet@kadri.ut.ee Original-NNTP-Posting-Date: Fri, 22 Aug 2003 23:13:51 +0000 (UTC) Original-To: Kevin Rodgers In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5603 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5603 Kevin Rodgers writes: > Juri Linkov wrote: > > You should change the argument argp of previous-error to be optional, > > just as argument of next-error already is: > > > > (defun next-error (&optional argp) > > Definitely. > > It would also be nice if just `C-u' as a prefix argument for > previous-error had a special meaning, like it does for next-error. > I'd like it to reparse the error messages and move to the last > error, but that is a bigger change and harder to implement. The > difficulty is that compilation-next-error-locus's MOVE and REPARSE > arguments are not orthogonal: > > (compile-reinitialize-errors reparse nil (and (not reparse) (max 0 move))) I think moving to the last error is hardly needed. But still lacking feature is the moving point to the next or previous file. There are already implemented functions compilation-next-file and compilation-previous-file, but they work only in the compilation buffer. There should be possibility to call them globally from any buffer. I propose to use `C-u' argument of next-error and previous-error to move point to the next or previous file. The existing meaning of reparsing the error messages can be reassigned to the value 0 of this argument (invoked by typing `M-0' or `C-0'). And, of course, to add also your suggested moving by a specified amount of errors to the previous-error function. -- http://www.jurta.org/emacs/