As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [elisp]

*ONLY* for questions about Emacs Lisp as a language, compared to other languages, in particular, compared to other Lisp dialects. That is, it is for questions *about the language* itself. *DO NOT USE IT* for questions about *using* Emacs Lisp. Emacs Lisp is the scripting and programming language that the Emacs editor is built on.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers

Structure-preserving copying of sequences

The form (cl-copy-tree TREE t) returns a deep-copy of a sequence TREE. The the Common Lisp Hyper Spec explains that copy-tree does not preserve circularities and sharing of substructures. I.e., even ...
Tobias's user avatar
  • 32.1k
4 votes
0 answers

Is there an ELISP decompiler?

I'm thinking of writing one so that when I get those horrible tracebacks from bytecode files, I can better see where I was at. Is there one already? Are there any other tools for showing an error ...
rocky's user avatar
  • 888
4 votes
0 answers

Handle a SLIME/Swank error in Elisp

Is it possible to handle a SLIME/Swank error in Emacs Lisp? For example, suppose I have a Lisp buffer with a syntax error in it. How can I do something like: (condition-case nil (slime-eval-...
nanny's user avatar
  • 5,644
2 votes
0 answers

guile emacs integration update?

Is Guile Emacs, the project to integrate a guile-based elisp interpreter, still alive? It was making headway a few years ago, and seemed like a promising project. Is it on hold because of lack of ...
BGKia's user avatar
  • 171
2 votes
0 answers

How can I export particular org files/headings with export settings to specified filenames?

I'd like to export headings with particular names/tags, with a particular set of export options, to particular file locations. I'd like to do this all via elisp, so that I can have it part of a ...
avv's user avatar
  • 1,563
1 vote
0 answers

Insert output of slow external process in current buffer, character-by-character

Imagine in the current buffer I have the text: Hello Bye I want to call an external program and add the output of it at the end of the buffer. The tricky thing is that the external program provides ...
scaramouche's user avatar
  • 1,760
1 vote
0 answers

Export a particular org heading with elisp?

I'd like to specify a heading (using either link or agenda syntax) and export just that heading as a file, using elisp. I'm not trying to do this - since this specifies the file to export to in the ...
avv's user avatar
  • 1,563
1 vote
0 answers

My function seems to not know a variable has changed and gives the wrong output

I want to change the shebang string every time I create a new Python file, some projects use Python 2 and other use Python 3, so the shebang should change according to the value of a variable in the ....
shackra's user avatar
  • 2,692
1 vote
0 answers

Unwrapping password from auth-sources

I'm using auth-source-search to retrieve passwords from ~/.authinfo.gpg. According to the documentation I may have to unwrap the secret property because it's in a function. (let ((secret (plist-get ...
Martin Yrjölä's user avatar
0 votes
0 answers

Byte Compiling Functions Using `defalias` for `progn`

The following code: (defalias 'new-progn 'progn) (defun foo () (new-progn "foo")) (byte-compile 'foo) (foo) gives this error: Debugger entered--Lisp error: (invalid-function #<subr progn>) ...
cutejumper's user avatar