emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a question about `,' in backquote


From: Masatake YAMATO
Subject: a question about `,' in backquote
Date: Mon, 25 Apr 2005 02:49:59 +0900 (JST)

I found a following line in the definition of `tags-search':

   (setq tags-loop-scan `(re-search-forward ',regexp nil t)

Could you tell me why "'" is needed before "," ?
Is there any strong reason?

I think it is easier to read next line:

   (setq tags-loop-scan `(re-search-forward ,regexp nil t)


;;;###autoload
(defun tags-search (regexp &optional file-list-form)
  "Search through all files listed in tags table for match for REGEXP.
Stops when a match is found.
To continue searching for next match, use command \\[tags-loop-continue].

See documentation of variable `tags-file-name'."
  (interactive "sTags search (regexp): ")
  (if (and (equal regexp "")
           (eq (car tags-loop-scan) 're-search-forward)
           (null tags-loop-operate))
      ;; Continue last tags-search as if by M-,.
      (tags-loop-continue nil)
    (setq tags-loop-scan `(re-search-forward ',regexp nil t)
          tags-loop-operate nil)
    (tags-loop-continue (or file-list-form t))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]