Questions tagged [symbol-function]

12 questions
3
votes
1 answer

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 not known to be a defined function. I recognize…
pajato0
  • 399
  • 1
  • 8
2
votes
1 answer

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-status proc) 'exit) (zerop…
codygman
  • 153
  • 6
2
votes
2 answers

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 original function definition, just pointing things…
1
vote
1 answer

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) { return 1; } else { return 0; …
1
vote
1 answer

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 all the basic tools that I use daily. My purpose…
Kadir Gunel
  • 233
  • 1
  • 10
1
vote
2 answers

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 if I installed the package correctly (this is the…
1
vote
1 answer

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 there a function in ELisp that does something…
0
votes
1 answer

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 branch elsewhere being it the branch…
Pedro Delfino
  • 1,369
  • 3
  • 13
0
votes
1 answer

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 console but I can't use aquamacs with it…
0
votes
1 answer

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 fset but that creates rather something like an…
halloleo
  • 1,215
  • 9
  • 23
0
votes
1 answer

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
  • 751
  • 4
  • 16
0
votes
1 answer

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 one area of the code, yet extract a pretty name…
lawlist
  • 18,826
  • 5
  • 37
  • 118