On Fri, 20 Sep 2002, Steven T. Hatton wrote:
[...]
I'm back to working on my treaties entitled _A Critique of Pure
XEmacs. It's something I started some months ago, but never had much
time to dedicate to it. I now have a bit of time for the project.
There isn't much here yet. Item 8 is kind of scratch draft of where
I'm trying to go with UTF-8:
http://66.92.149.152/open-source/org/xemacs/cpx/ch04.html
Answers:
1) You want the faces 'zmacs-region', 'highlight',
'primary-selection',
'secondary-selection' and 'isearch' for this. The exact face used in
various situations depends on the intent of the highlighting.
In general it's going to be the zmacs-region that you want, though.
2) C-q C-j -- C-q is 'insert next character literally', C-j is the
newline you want.
3) You need better examples. The regexp stuff in XEmacs doesn't allow
any operation more complex than 'substring' and 'move' on the
original, though.
I believe that Emacs now offers a programmatic regexp replace
function, where you can write arbitrarily complex Lisp as the right
hand side.
If someone /has/ ported this to XEmacs, I would love to hear it, but
it shouldn't be too hard to do otherwise.
6) I never used the macro stuff myself; it's almost always easier to
write Lisp.
7) Try the 'skeleton' library and the 'tempo' library. Both are good for
this sort of 'fill in the blanks' stuff.
9) Type "C-h k", then select the menu item with the mouse. Really.
10) Try the library 'time-stamp', plus either 'skeleton' or a tiny lisp
routine that uses `insert' to insert the timestamp.
11) There are two ways of interacting with CVS, both useful for
different things:
VC integration -- do (require 'vc), then visit a CVS controlled file
and hit "C-x v C-h" to see the keybindings. Reading the comments in
the 'vc.el' file also helps.
PCL-CVS -- run 'cvs-update' and point it at your CVS project
directory. The INFO file has the rest of the commands.
12) Useful tools for this:
* "C-h a" shows a list of functions and variables matching the
regular expression you enter, their documentation, properties
and values.
* 'list-faces-display' is the best way to browse the defined faces.
Also, if you find a variable or function that you are interested in,
use `find-variable' or `find-function' to jump to the source file,
then read the comments and variable declarations at the top of the
file -- that often gives a good overview of what a library can do.
13) 'find-variable', and so forth.
14) "C-x C-r" -- found by hitting "C-h w" for "where is
function", then
putting in 'find-file' and hitting TAB twice, then picking
'...-read-only'
HTH. HAND.
Daniel
--
You must have the devil in you to succeed in any of the arts.
-- Voltaire