From: jbw@cs.bu.edu (Joe Wells)
Subject: tags-search pulls all files into memory
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 10 Apr 1992 12:51:48 GMT

>>>>> "RMS" == Richard Stallman <rms@gnu.ai.mit.edu> writes:

RMS> tags-search does not pull all files into memory.

RMS> If on some occasion it does so, could you please send a bug report?

Here is an example of the output of "M-x list-buffers RET" after "M-x
tags-search RET this-string-does-not-occur! RET":

----------------------------------------------------------------------
 MR Buffer         Size  Mode           File
 -- ------         ----  ----           ----
.   position.h     175   C              /home/jbw/less-177/position.h
    option.h       1163  C              /home/jbw/less-177/option.h
    less.h         2640  C              /home/jbw/less-177/less.h
    funcs.h        4744  C              /home/jbw/less-177/funcs.h
    defines.h      3186  C              /home/jbw/less-177/defines.h
    cmd.h          1191  C              /home/jbw/less-177/cmd.h
    version.c      15971 C              /home/jbw/less-177/version.c
    vecho.c        572   C              /home/jbw/less-177/vecho.c
    ttyin.c        1331  C              /home/jbw/less-177/ttyin.c
    tags.c         3484  C              /home/jbw/less-177/tags.c
    signal.c       3749  C              /home/jbw/less-177/signal.c
    search.c       7058  C              /home/jbw/less-177/search.c
    screen.c       13110 C              /home/jbw/less-177/screen.c
    prompt.c       8517  C              /home/jbw/less-177/prompt.c
    position.c     4271  C              /home/jbw/less-177/position.c
    output.c       5312  C              /home/jbw/less-177/output.c
    os.c           2919  C              /home/jbw/less-177/os.c
    opttbl.c       6220  C              /home/jbw/less-177/opttbl.c
    option.c       9526  C              /home/jbw/less-177/option.c
    optfunc.c      5816  C              /home/jbw/less-177/optfunc.c
    mark.c         4105  C              /home/jbw/less-177/mark.c
    main.c         4647  C              /home/jbw/less-177/main.c
    lsystem.c      5576  C              /home/jbw/less-177/lsystem.c
    linenum.c      9905  C              /home/jbw/less-177/linenum.c
    line.c         10440 C              /home/jbw/less-177/line.c
    lesskey.c      7769  C              /home/jbw/less-177/lesskey.c
    jump.c         5121  C              /home/jbw/less-177/jump.c
    input.c        4978  C              /home/jbw/less-177/input.c
    ifile.c        3852  C              /home/jbw/less-177/ifile.c
    help.c         1307  C              /home/jbw/less-177/help.c
    forwback.c     7544  C              /home/jbw/less-177/forwback.c
    filename.c     6373  C              /home/jbw/less-177/filename.c
    edit.c         7970  C              /home/jbw/less-177/edit.c
    decode.c       8229  C              /home/jbw/less-177/decode.c
    command.c      21227 C              /home/jbw/less-177/command.c
    cmdbuf.c       2178  C              /home/jbw/less-177/cmdbuf.c
    charset.c      3534  C              /home/jbw/less-177/charset.c
    ch.c           11258 C              /home/jbw/less-177/ch.c
    brac.c         2029  C              /home/jbw/less-177/brac.c
    *scratch*      0     Lisp Interaction
    TAGS           9789  Fundamental    /home/jbw/less-177/TAGS
 *  *Buffer List*  2230  Buffer Menu
----------------------------------------------------------------------

You will notice that tags-search has left all the files mentioned in the
TAGS table lying around in memory, even though the searched-for string
does not occur in any of them.

This is fixed in my rewrite of tags.el.

-- 
Enjoy,

Joe Wells <jbw@cs.bu.edu>

Member of the League for Programming Freedom --- send e-mail for details

Newsgroups: gnu.emacs.bug