An Introduction to Programming in Emacs Lisp phần 3 ppt

An Introduction to Programming in Emacs Lisp phần 3 ppt

An Introduction to Programming in Emacs Lisp phần 3 ppt

... is saved in the mark ring. The next line is (goto-char (point-min)). This expression jumps the cursor to the minimum point in the buffer, that is, to the beginning of the buffer (or to the beginning ... looks 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 (fo...

Ngày tải lên: 09/08/2014, 12:22

31 385 0
An Introduction to Programming in Emacs Lisp phần 1 ppt

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

32 447 0
An Introduction to Programming in Emacs Lisp phần 2 pptx

An Introduction to Programming in Emacs Lisp phần 2 pptx

... area: "Here are 3 variables with nil, nil, and some value." In this example, Emacs binds the symbol birch to the number 3, binds the symbols pine and fir to nil, and binds the symbol oak to the value ... 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 c...

Ngày tải lên: 09/08/2014, 12:22

31 384 0
An Introduction to Programming in Emacs Lisp phần 6 pptx

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

31 386 0
An Introduction to Programming in Emacs Lisp phần 4 pot

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 ... been printed in the echo area, the save-excursion restores point and mark to their original positions; and save-restriction restores the original narrowing, if any....

Ngày tải lên: 09/08/2014, 12:22

31 426 0
An Introduction to Programming in Emacs Lisp phần 5 pps

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

31 349 0
An Introduction to Programming in Emacs Lisp phần 7 pot

An Introduction to Programming in Emacs Lisp phần 7 pot

... its attributes: ("/usr/local/share /emacs/ 21.0.100 /lisp/ abbrev.el" nil 1 1000 100 (15019 32 380) (148 83 48041) (15214 4 933 6) 115 83 "-rw-rw-r " t 34 138 5 776) On the other hand, ‘mail/’ is a directory within the lisp/ ’ directory. The beginning of its listing looks ... defuns-per-range-list)) (setq number-within-range 0) ; Reset count to zero. ;; Move to nex...

Ngày tải lên: 09/08/2014, 12:22

31 363 0
An Introduction to Programming in Emacs Lisp phần 8 ppsx

An Introduction to Programming in Emacs Lisp phần 8 ppsx

... “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 Emacs that moves the line point is on to the ... contains a good many suggestions as to what to put into your own ‘ .emacs file, or into a site-wide initialization file. 16.2 Specifying Variables using defcustom You can specify...

Ngày tải lên: 09/08/2014, 12:22

31 354 0
An Introduction to Programming in Emacs Lisp phần 9 pps

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

Ngày tải lên: 09/08/2014, 12:22

31 396 0
w