Hot answers tagged

3

Welcome to SE Emacs. The nil you are seeing is not an extra iteration: it is simply the return value of the dolist or dotimes function.


2

(setq org-confirm-shell-link-function nil) But: Shell links can be dangerous: just think about a link [[shell:rm -rf ~/*][Google Search]] This link would show up in your Org document as "Google Search", but really it would remove your entire home directory. Therefore we advise against setting this variable to nil. Just change it to ‘y-or-n-p’ if ...


1

Look at the help for execute-extended-command (via C-h f execute-extended-command): It is bound to , , M-x. (execute-extended-command PREFIXARG &optional COMMAND-NAME TYPED) This function is for interactive use only; in Lisp code use ‘command-execute’ instead. Read a command name, then read the arguments and call the command. To pass a prefix argument ...


1

A quoted list doesn't evaluate its args, so it consists of a string, a list containing a symbol and another string. You can selectively evaluate it using backquote and unquote: `("foo" ,(foobar) "bar") ;=> ("foo" "foobar" "bar") (string-join `("foo" ,(foobar) "bar") "|") ;=>...


1

The issue come because the print output stream and the eval output stream are the same. If you create a different output stream as the default one, the trouble diseapear. (setq foo '(cat dog rat bar )) (dolist (ele foo) (print ele (get-buffer-create "kill-me"))) The print is now int the "kill-me" buffer and the nil in the default ...


Only top voted, non community-wiki answers of a minimum length are eligible