New answers tagged

3

You can use func-arity added in 26.1. C-h f func-arity: func-arity is a built-in function in `C source code'. (func-arity FUNCTION) Return minimum and maximum number of args allowed for FUNCTION. FUNCTION must be a function of some kind. The returned value is a cons cell (MIN . MAX). MIN is the minimum number of args. MAX is the maximum ...


0

I figured it out. You have to select the port map by entering into it, and doing: M-x vhdl-port-copy After that, you can place the component, or create the testbench with M-x vhdl-port-paste-testbench in a new testbench file.


2

Not exactly. Function buffer-substring requires two arguments. Function - will accept a single argument, but in that case it just returns the negative of that numeric argument. What you want to do is, in effect, apply such functions to a list of arguments. You can use higher-order function apply to do that. What you can do, if you want, is have a macro or ...


0

You might want to have the documentation display immediately when you type C-h f on a command (that is, without having to press <RET>), while keeping the original behaviour of being able to type the function name when you're anywhere else. That is not so trivial to do, because function-at-point is very greedy. Telling it to display its first ...


2

(mapcar (lambda (fn) (funcall fn 1)) '(desktop-save-mode show-paren-mode))


-2

desktop-save-mode is defined thusly: (define-minor-mode desktop-save-mode so its not a function...


0

The typical way this is done is by assigning the custom commands to keyboard shortcuts of a given major-mode; e.g., add to your Emacs init file ;; Add commands to python mode (require 'extra-python) and then either (eval-after-load "python-mode" '(progn (define-key python-mode-map [f5] 'python-insert-quote) (define-key python-mode-map [f6] 'python-...


Top 50 recent answers are included