lisp - Check if current Emacs buffer contains a string -


I have a buffer open in emacs. I need a task that will return t The current buffer has a string, otherwise it returns zero .

  (defun buffer-included - substrings (string) ...)  

It is careful to change where you are, or damage any match data.

  (defun buffer-containing-substring (string) (save-trip (save-match-data (goto-four (point-min)) (search-defined string zero t))) )  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -