An Introduction to Programming in Emacs Lisp phần 1 ppt
... You can learn from it and mine it for ideas. Having GNU Emacs is like having a dragon’s cave of treasures. In addition to learning about Emacs as an editor and Emacs Lisp as a programming language, ... as an approachable hill, rather than as a daunting mountain. This introduction to Programming in Emacs Lisp has a companion doc- ument, The GNU Emacs Lisp Refe...
Ngày tải lên: 09/08/2014, 12:22
... area. The type-of-animal Function in Detail 41 If you are reading this inside of GNU Emacs, you can evaluate the function definition in the usual way to install it in Emacs, and then you can evaluate the ... this: (buffer-name)"*scratch*" You cannot do this in Info since Info is read-only and it will not allow you to change the contents of the buffer. But you can do thi...
Ngày tải lên: 09/08/2014, 12:22
... like. Finally, the last line of the beginning-of-buffer command says to move point to the beginning of the next line if the command is invoked with an argument: (if arg (forward-line 1) )) This ... command is a good function to start with since you are likely to be familiar with it and it is easy to understand. Used as an interactive command, beginning-of-buffer moves the curso...
Ngày tải lên: 09/08/2014, 12:22
An Introduction to Programming in Emacs Lisp phần 6 pptx
... evaluate the (beginning-of-line) expression and move point to the beginning of the line. Then there is an inner while loop. This while loop is designed to move the cursor out of the blank space between paragraphs, ... compiled and installed when Emacs is built. (etags is not an Emacs Lisp function or a part of Emacs; it is a C program.) To create a ‘TAGS’ file, first switch to...
Ngày tải lên: 09/08/2014, 12:22
An Introduction to Programming in Emacs Lisp phần 4 pot
... text to the kill ring as the latest item, and sets the kill-ring-yank-pointer variable to p oint to it. 8.3 delete-and-extract-region: Digressing into C The zap -to- char command uses the delete-and-extract-region ... 90 Chapter 8: Cutting and Storing Text 8 .1 zap -to- char The zap -to- char function barely changed between GNU Emacs version 19 and GNU Emacs version 21. However, z...
Ngày tải lên: 09/08/2014, 12:22
An Introduction to Programming in Emacs Lisp phần 5 pps
... yank and yank- pop functions is: (insert (car kill-ring-yank-pointer)) To begin to understand how yank and yank-pop work, it is first necessary to look at the kill-ring-yank-pointer variable and ... used to the idea. A list is kept using a series of pairs of pointers. In the series, the first pointer in each pair p oints to an atom or to another list, and the second pointer i...
Ngày tải lên: 09/08/2014, 12:22
An Introduction to Programming in Emacs Lisp phần 7 pot
... its attributes: ("/usr/local/share /emacs/ 21. 0 .10 0 /lisp/ abbrev.el" nil 1 1000 10 0 (15 019 32380) (14 883 480 41) (15 214 49336) 11 583 "-rw-rw-r " t 3 413 85 776) On the other hand, ‘mail/’ is a directory within the lisp/ ’ directory. The beginning of ... top-of-ranges ’ (10 20 30 40 50 60 70 80 90 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0...
Ngày tải lên: 09/08/2014, 12:22
An Introduction to Programming in Emacs Lisp phần 8 ppsx
... defuns-per-range function. ;; (Shorter list than we will use later.) (setq top-of-ranges ’ (11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 200)) (setq sorted-lengths ’(85 86 11 0 11 6 12 2 12 9 15 4 17 6 17 9 200 265 ... “Autoload” in The GNU Emacs Lisp Reference Manual, for more information. 16 .11 A Simple Extension: line -to- top-of-window Here is a simple extension to...
Ngày tải lên: 09/08/2014, 12:22
An Introduction to Programming in Emacs Lisp phần 9 pps
... rotate-yank-pointer function changes the element in the kill ring to which kill-ring-yank-pointer points. For example, it can change kill-ring-yank-pointer from pointing to the second element to point ... C-e. Indeed, 1 is printed in the echo area.) Using % in rotate-yank-pointer When the kill-ring-yank-pointer points to the beginning of the kill ring, and the argument passed...
Ngày tải lên: 09/08/2014, 12:22