lisp
Lisp Insert Sorting Problem
Use insert to write a function sort1 which sorts a list of integers into increasing order. [We are done if the list is nil. Otherwise insert the car of the list into the sorted cdr.][详细]
2023-03-20 23:37 分类:问答Column of buffer position in Emacs Lisp?
In Emacs Lisp, if you have a buffer position stored in a variable, how开发者_开发知识库 do you find what column it is in?Check out documentation for columns and for save-excursion.[详细]
2023-03-18 08:28 分类:问答sleep in emacs lisp
script A (insert (current-time-string)) (sleep-for 5) (insert (current-time-string)) M-x eval-buf开发者_开发技巧fer, two time strings are inserted with 5 secs apart[详细]
2023-03-17 12:48 分类:问答how to answer yes or no automatically in emacs
I binded function semantic-symref to key C-c C-r like this: (global-set-key (kbd \"C-c C-r\") \'semantic-symref)[详细]
2023-03-17 07:37 分类:问答Install lisp on my linux machine
I use Vim as my editor. \"Practical common Lisp\" suggest installing Lispbox, I don\'t know how to use emacs, don\'t know how to run lisp code with that T.T after that i find lisp plugin for vim calle[详细]
2023-03-16 12:57 分类:问答Why can't GIMP handle this script?
I have this script as an .scm in Gimp: ;MIT license. (define (script-fu-export-layers img drw path outnameformat)[详细]
2023-03-16 08:09 分类:问答implementing lisp in Python
First: yes, i have taken a very long look at Norvig\'s lispy. Second: I have reused part of his code.[详细]
2023-03-16 06:48 分类:问答Switching between auto-inserts on the fly / by context
Using emacs for multiple projects from legacy to current ones, I have to use multiple conventions, e.g. for comments or file headers. For example, I use this function to insert file headers for C++ fi[详细]
2023-03-16 04:46 分类:问答Executes a function until it returns a nil, collecting its values into a list
I got this idea from XKCD\'s Hofstadter comic; what\'s the best way to create a conditional loop in (any) Lisp dialect that executes a function until it returns NIL at which time it collects the retur[详细]
2023-03-16 03:55 分类:问答How can I make a string with expandable keywords in Scheme?
I\'m writing a GIMP script to export layers to files. I want to provide a user-specifiable field where they can provide the format for the filenames to be开发者_StackOverflow exported, with tilde-char[详细]
2023-03-15 23:39 分类:问答