Ask Your Question
3

How can the format specifier of emacs-lisp % be deactivated?

asked 2021-10-27 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-01-28 22:00:00 +0000

bukephalos gravatar image

To deactivate the format specifier % in emacs-lisp, you can escape it by using a backslash before it (\%). This will prevent it from being recognized as a format specifier and will treat it as a regular character. For example, if you want to insert the string "10%" in a buffer, you can use the following Emacs Lisp code:

(insert "10\\%")

This will insert the string "10%" in the buffer.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-27 11:00:00 +0000

Seen: 4 times

Last updated: Jan 28 '23