We changed our privacy policy. Read more.

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.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
199 views

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 ...
4
votes
0answers
250 views

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 ...
4
votes
0answers
317 views

How to setup comment-start and comment-start-skip?

Haskell has line comments starting with -- and multiline comments of the form {- ... -}. I'd like to make auto-fill-mode work for both of those. Currently line comments are auto-filled correctly: -- ...
4
votes
0answers
69 views

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-...
2
votes
0answers
322 views

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 ...
2
votes
0answers
339 views

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 ...
1
vote
1answer
137 views

Vim-like EOL behavior in Emacs

I'm trying to get Emacs to imitate Vim's EOL behavior. Namely at the end of line ("\n"), the cursor comes to a halt instead of progressing to the start of the next line. The following works ...
1
vote
1answer
55 views

How to use face-remap-set-base to substitute a face for another?

I'd like to locally remap a face to other custom face. The docstring reads: (face-remap-set-base FACE &rest SPECS) Set the base remapping of FACE in the current buffer to SPECS. This causes the ...
1
vote
0answers
319 views

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 ...
1
vote
0answers
143 views

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 ....
1
vote
0answers
128 views

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 ...
0
votes
1answer
16 views

How to disable evil insert key in read only mode

I want to disable evil insert key such as a, i, o in read-only mode (keep navigation key such as j and k), my idea is to disable these keys in local buffer when enabling read-only mode and enable ...
0
votes
0answers
33 views

How to turn the result returned by `org-sbe an-src-block` into list (of lists)?

In MWE.org, the source blocks list-files, summarize-files-1, and summarize-files-2 are defined to summarize files. The list-files source block gives the filenames. The summarize-files-1 and the ...
0
votes
0answers
81 views

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>) ...