Questions tagged [sexp]

The tag has no usage guidance.

0
votes
0answers
17 views

Use diary sexp as repeatable TODO's

So what I am looking for is to Schedule repeatable events with TODO keywords where as soon as in org agenda I mark a TODO item as DONE, just that one event be marked as DONE rather than all of the ...
2
votes
0answers
33 views

Marking sexp diary entries as done in org agenda

I often use sexp diary entries for events in ORG-AGENDA. Is there a way of marking them as "DONE" in agenda-view? E.g. %%(diary-float t 2 3) Send John info for Bulletin E.g. %%(diary-block 12 15 ...
0
votes
1answer
59 views

forward-sexp confusion

The following code is an excerpt from the elisp tutorial, section 14.6. (while (re-search-forward "^(defun" nil t) (setq lengths-list (cons (count-words-in-defun) lengths-list))) Placing the ...
1
vote
1answer
110 views

How can I bring tex-mode's sexp navigation to AucTeX?

I generally prefer AucTeX over the built-in tex-mode, but one thing that is much better in tex-mode is navigation by s-expression. Namely, in tex-mode, forward-sexp (C-M-f) treats LaTeX environments ...
8
votes
4answers
281 views

Correct pronunciation of 'sexp'?

I apologize if this is a dumb question, but I'm just starting out in ELisp, and I'm wondering how you pronounce the word 'sexp'. I.e., if I was talking to someone, how does one say this word?
1
vote
0answers
37 views

Different summaries at different levels in org-columns

I'm trying to use org-mode for keeping track of my grades in university. My grades are all numerical from 0 to 10. I want the column view to output my average score and the final grade of each subject,...
3
votes
1answer
172 views

Folding code between a literal “begin”/“end” block using Hideshow

A formatted input file (*.alm) often contains a large section of columned data. To fold this and improve navigation, I've tried to implement a hs-special-mode-alist entry from hideshow.el. (setq hs-...
1
vote
1answer
95 views

Navigating lisp

I want to programmatically navigate emacs lisp (and similar "nested paren code"). Specific functions I want: Go to first child (which errors if there are no children (maybe lispy-outline-goto-child ...
1
vote
0answers
101 views

Sending an s-expression to another buffer

I'm currently working in Clojure with Arcadia, which is requiring me to use a REPL that doesn't have support with Cider. This has been giving me some trouble given how I usually code, so I'd like to ...
6
votes
1answer
187 views

fill-paragraph (`M-q`) for s-expressions?

With M-q (aka fill-paragraph), it is possible to format a single line of text nicely. Is there a command or function which does a similar thing for lisps s-expressions? It should break one-liner ...
0
votes
1answer
58 views

Unclear expectation of behavior from `scan-sexps`

The docstring of scan-sexps says: If the beginning or end is reached between groupings but before count is used up, nil is returned. Putting point (|) before the first element of a list: (|a b c) ...
3
votes
1answer
412 views

Pretty print s expressions from the command line

I've got a file containing an emacs s-expression and I want to pretty print it from the command line: Is there an easy way of doing this? Paranoia suggests I want to do as little parsing of this data ...
1
vote
0answers
191 views

Orgmode : exporting agenda with sexps to ics

This year, I am having classes with complex descriptions, such as "every 1st and 3rd friday between 2016-11-18 and 2017-5-19", so I chose to use org-mode agenda combined with sexps to describe them ...
0
votes
1answer
54 views

forward-comment doesn't move the point

I tried running (forward-comment -1) by eval command, when the point is actually in the middle of a comment. Like forward-word (or) forward-line, i expected it move to the beginning of the comment &...
4
votes
1answer
87 views

How do I ignore comments with scan-sexps?

I have some lisp code that contains a comment: (while list ;; take the head of LIST (setq len 1)) I want to extract the positions of the sexps. I'm using scan-sexps. If I call M-: (scan-sexps 12 ...
2
votes
0answers
291 views

How to go to the beginning of a word/sexp?

When the point is not at the beginning of a word/sexp, backward-word / backward-sexp places the cursor at the beginning of that word/sexp. If the point is already at the beginning of a word/sexp, this ...
3
votes
4answers
406 views

A elisp function to jump between matched pair

Here is the function spec: (defun jump-to-matched (open-char closed-char) ) say the content of current buffer is "a([b]c()d)". If I move the cursor over the first "(" and run (jump-to-matched "(" ")...
7
votes
3answers
422 views

How can I find surrounding parenthesis (from emacs lisp)?

Is there a way to find out the type of the surrounding parenthesis (i.e. '(', '[' or '{') around point? For example (using | to represent point) { abc, | df } should return '{', and { abc[ | ], ...
7
votes
2answers
324 views

How can I view the full `package-alist` value (without the truncation characters “…”)?

When I do C-h v package-alist, I see something like ((PACKAGE-NAME1 [cl-struct-package-desc PACKAGE-NAME1 (VERSION1) "DESCRIPTION1" (...