]> git.eshelyaron.com Git - emacs.git/commitdiff
New next-error framework, use in occur.
authorKim F. Storm <storm@cua.dk>
Wed, 21 Apr 2004 21:39:26 +0000 (21:39 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 21 Apr 2004 21:39:26 +0000 (21:39 +0000)
etc/NEWS
lisp/ChangeLog

index 285dd57a1525819e4716979c389907f8ca9d85fc..752473f71317935a5db7a339a356e26d2ed16726 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -88,6 +88,9 @@ types any more.  Add -DUSE_LISP_UNION_TYPE if you want union types.
 \f
 * 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.
 
index fddcf6c138f087be89380302486375216af3c472..2c4e79091cc8eaa33d50cc163c5198af3d2d7cc7 100644 (file)
@@ -1,3 +1,30 @@
+2004-04-21  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * 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  <lektu@terra.es>
 
        * makefile.w32-in (WINS): Add url/ directory.