I’m using emacs and I have written a script which uses “current-buffer”. However the emacs system doesn’t recognise “current-buffer”. When I try “M – x current-buffer” i get the response:
no match
: Any idea what I’m doing wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
current-bufferis not an interactive function. That is, can’t be invoked interactively viaM-xas you’ve tried to do. You can execute non-interactive lisp-code directly by usingeval-expressionas follows:Notice that you have to enter a proper lisp expression. If you want to capture the value in a variable, something like this
will store the current buffer into the variable
xyzzy.