Skip to main content

Questions tagged [symbol-function]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

Looking for an `ignore` function which returns t

I want to create a new function which just calls a given function do-the-work but chanegs all calls to y-or-n-p which happen inside of do-the-work to return always t. At the moment I do it like this: ...
halloleo's user avatar
  • 1,345
1 vote
2 answers
44 views

How to create an independent copy of a function's definition?

I want to create a modified copy of re-search-forward and advise this copy to be sensitive to isearch-filter-predicate. I tried: (defun make-search-sensitive-to-ifpmod-advice (orig-fun &rest args) ...
Gabriele's user avatar
  • 1,662
0 votes
1 answer
101 views

Push to GitHub via Magit retrieves error: "error in process sentinel: Symbol’s function definition is void: compat-assoc" but works. How to fix it?

I am using Magit in my Emacs. This is my config file. I have been using this package for a long time without issues. Recently, some weird error messages started to appear. After pressing to push a ...
Pedro Delfino's user avatar
0 votes
1 answer
245 views

Aquamacs error while loading .emacs : Symbol's function definition is void: register-definition-prefixes

I'm on macOS Monterey and I'm using aquamacs as an IDE to ocaml. Ocaml is install with opam and everything was working well until I delete the wrong switch. Emacs is still working with tuareg in the ...
Dusehu Théo's user avatar
0 votes
1 answer
77 views

How can I save a function defintion

I want to extend a standard Emacs function (package--save-selected-packages), but to cover my tracks I want to save the old defintion under a new name and then redintion teh standard function. I tried ...
halloleo's user avatar
  • 1,345
1 vote
1 answer
90 views

How to pass the current scopes function symbol as an argument to an elisp function

I am trying to create an org-capture template which works with yankpad and yasnippets to such that if I am working with some c code like this: example.c static int somefunc(int a) { if (a ==5) { ...
Reginald Marr's user avatar
0 votes
1 answer
52 views

Convert function-quoted form #'... to string

I have tried (symbol-name x), but it doesn't work if the argument is a lambda: ok: #'execute-extended-command not ok: #'(lambda (&optional frame) (interactive) (message "hi 8"))
HappyFace's user avatar
  • 830
2 votes
1 answer
159 views

What is the correct way of passing a function with a default argument to a function?

Here is the code with two things I tried as the ":filter" in ": my-pass-it-on-filter": (defun my-pass-it-on-sentinel (proc _msg) "Process entire output of PROC line-wise." (when (and (eq (process-...
codygman's user avatar
  • 153
1 vote
1 answer
178 views

oddp vs cl-oddp in elisp script

I am trying to write a short script file with elisp for the first time which will serve me to install all the required packages that I use. Thus when I change from one computer to another, I can get ...
Kadir Gunel's user avatar
3 votes
1 answer
104 views

How to get Emacs to know that a symbol has a function definition

While reading the source file prelude-ivy.el in the Prelude modules directory, I saw that there was a warning associated with "here" in the last line, specifically that prelude-required-packages was ...
pajato0's user avatar
  • 399
1 vote
2 answers
437 views

Error with org-fstree: Symbol's function definition is void: reduce

I want to use the package org-fstree (MELPA Link). But in a file when I press C-c C-c at #+BEGIN_FSTREE: ~/ I get the following error: Symbol's function definition is void: reduce I am not sure ...
Inspired_Blue's user avatar
2 votes
2 answers
146 views

Monkey patch and restore builtin set-window-dedicated-p during advice

I would like to make set-window-dedicated-p a NOP when called from xref--show-pos-in-buf. Below is an attempt to do so using advice. It doesn't work, I think because fset is not really copying the ...
sandinmyjoints's user avatar
0 votes
1 answer
54 views

Display lambda expression as let-bound symbol

Q: How can I display this let-bound lambda expression as a symbol -- i.e., display it as my-func instead of (lambda (arg1 ...))? I'd like the best of both worlds -- i.e., be able to use funcall in ...
lawlist's user avatar
  • 19.2k
1 vote
1 answer
153 views

Elisp equivalent of FUNCTION-LAMBDA-EXPRESSION?

In Common Lisp, there is a function called function-lambda-expression, which returns the LAMBDA form that defines a function (or NIL on implementations that compile everything to native code). Is ...
Throw Away Account's user avatar