From: Kim F. Storm Date: Wed, 21 Apr 2004 21:39:26 +0000 (+0000) Subject: New next-error framework, use in occur. X-Git-Tag: ttn-vms-21-2-B4~6660 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d88beab585b2c1b0c4b1f624780d228da92b0114;p=emacs.git New next-error framework, use in occur. --- diff --git a/etc/NEWS b/etc/NEWS index 285dd57a152..752473f7131 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -88,6 +88,9 @@ types any more. Add -DUSE_LISP_UNION_TYPE if you want union types. * Changes in Emacs 21.4 +** You can now use next-error (C-x `) and previous-error to advance to +the next/previous matching line found by M-x occur. + +++ ** New command line option -Q. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fddcf6c138f..2c4e79091cc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,30 @@ +2004-04-21 Teodor Zlatanov + + * simple.el (next-error-last-buffer, next-error-function): + New variables for the next-error framework. + (next-error-buffer-p): New function. + (next-error-find-buffer): Generalize compilation-find-buffer. + (next-error, previous-error, first-error, next-error-no-select) + (previous-error-no-select): Move from compile.el. + + * replace.el (occur-next-error, occur-1): Hook into the next-error + framework. + + * progmodes/compile.el (compilation-start): + Set next-error-last-buffer so next-error knows where to jump. + (compilation-setup): Set the buffer-local variable + next-error-function to 'compilation-next-error-function. + (compilation-buffer-p, compilation-buffer-internal-p): Use an + alternate way to find if a buffer is a compilation buffer, for + next-error convenience. + (next-error-no-select, previous-error-no-select, next-error) + (previous-error, first-error): Move to simple.el. + (compilation-find-buffer): Move to next-error-find-buffer in simple.el. + (compilation-last-buffer): Remove. + (compilation-start, compilation-next-error, compilation-setup) + (compilation-next-error-function, compilation-find-buffer): + Remove compilation-last-buffer use. + 2004-04-21 Juanma Barranquero * makefile.w32-in (WINS): Add url/ directory.