home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / epoch / misc / 1118 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  51.4 KB

  1. Xref: sparky gnu.epoch.misc:1118 news.answers:4032
  2. Newsgroups: gnu.epoch.misc,news.answers
  3. Path: sparky!uunet!brunix!brunix!dbc
  4. From: dbc@cs.brown.edu (Brook Conner)
  5. Subject: Epoch Frequently Asked Questions (FAQ)
  6. Message-ID: <1992Nov17.153833.5025@cs.brown.edu>
  7. Followup-To: poster
  8. Summary: Epoch FAQ for Oct '92
  9. Keywords: Epoch FAQ
  10. Sender: news@cs.brown.edu
  11. Reply-To: dbc.epoch-faq@cs.brown.edu
  12. Organization: Brown University Department of Computer Science
  13. Date: Tue, 17 Nov 1992 15:38:33 GMT
  14. Approved: news-answers-request@mit.edu
  15. Lines: 1350
  16.  
  17. Archive-name: epoch-faq
  18. Last-modified: Fri Oct 16 14:44:54 EDT 1992
  19. Version: 2.0
  20. Posting-frequency: bimonthly
  21.  
  22. *   Epoch FAQ (Frequently Asked Questions)
  23. *   (or at least Occasionally Wondered-About Questions)
  24.  
  25. *   Maintained by Brook Conner (dbc.epoch-faq@cs.brown.edu)
  26. *   Last Modified Fri Oct 16 14:45:31 EDT 1992
  27. *   by Brook Conner (dbc.epoch-faq@cs.brown.edu)
  28.  
  29. If you are viewing this text in a GNU Emacs buffer, you can type
  30. "M-2 C-x $" to get an overview of just the questions.  Then, when
  31. you want to look at the text of the answers, just type "C-x $".
  32.  
  33. To search for a question numbered XXX, type "M-C-s ^XXX:", followed by
  34. a C-r if that doesn't work; type ESC to end the search.
  35.  
  36. !! The latest version of this file will be always available via anonymous
  37. !! FTP to ftp.ncsa.uiuc.edu in /outgoing/marca/epoch or cs.uiuc.edu in
  38. !! /pub/epoch-files/epoch 
  39.  
  40. Please feel free to send comments, suggestions, additions, and
  41. corrections to dbc.epoch-faq@cs.brown.edu
  42.  
  43. *                   === REALLY IMPORTANT NOTE ===
  44.  
  45. Unless otherwise attributed, information below is based only on Yours
  46. Truly's use and experience with Epoch and is BY NO MEANS GUARANTEED to
  47. be correct, complete, or even coherent.  If it works for you, great;
  48. if it doesn't, let me know, but there are no guarantees.
  49.  
  50. *             === CHANGES IN THIS VERSION OF THE FAQ ===
  51.   
  52.   Here is a list of changes made since the FAQ's last bimonthly
  53.   posting to gnu.epoch.misc and news.answers:
  54.   
  55.   No changes.  Sorry, folks.  Stuff came up.  Remember, mail me at
  56.   dbc.epoch-faq@cs.brown.edu if you have things you'd like to see
  57.   here.
  58.  
  59. *                       === PREREQUISITES ===
  60.   
  61.   In the answers that follow, I assume at least a little familiarity
  62.   with GNU Emacs Lisp.  Suggested resources that could be considered
  63.   necessary references for material in this FAQ are: 
  64.  
  65. --> The GNU Emacs and Epoch manuals (available online via C-h i).  
  66.   
  67. --> The GNU Elisp manual (available via anonymous FTP from
  68.     prep.ai.mit.edu (18.71.0.38) as /pub/gnu/elisp-manual-1.03.tar.Z).
  69.   
  70. --> The gnu.emacs.help FAQ in the file etc/FAQ (the latest version
  71.     is available in the gnu.emacs.help Usenet newsgroup or via FTP from
  72.     pit-manager.mit.edu (18.172.1.27) in /pub/usenet/gnu.emacs.help).
  73.  
  74. *                          === CAVEATS ===
  75.   
  76.   Many of the answers given herein APPLY ONLY to Epoch 4.2.  I run
  77.   Epoch on SPARCstations, DECstation 5000s, IBM RS/6000s, and HP 700s;
  78.   other configurations may behave differently.  Please let me know of
  79.   any such differences.
  80.  
  81. *                    === EPOCH AND GNU EMACS ===
  82.  
  83. A-1: What is Epoch?
  84.   
  85.   Epoch is GNU Emacs on steroids: an adaptation of GNU Emacs with lots
  86.   of additional support for features made possible by the X11
  87.   windowing system.  These features include multiple editing windows,
  88.   arbitrary colors and fonts (fixed-width and proportional),
  89.   selectable zones per buffer with arbitrary display styles (font,
  90.   color, underline, stipple, pixmap), an optional separate minibuffer
  91.   window, improved keyboard and mouse handling, full 8-bit character
  92.   set support, and more.
  93.   
  94.   Epoch, like GNU Emacs, is very customizable; much of this FAQ
  95.   describes ways to customize Epoch for specific purposes.
  96.   
  97. A-2: How can I get Epoch?
  98.   
  99.   Epoch is available via anonymous FTP to cs.uiuc.edu (128.174.252.1)
  100.   in pub/epoch-files/epoch.  The main file of interest is currently
  101.   epoch-4.2.tar.Z.
  102.   
  103.   According to Simon Marshall (S.Marshall@sequent.cc.hull.ac.uk):
  104.   
  105.   Like GNU & X11 stuff, epoch is available in the UK from
  106.   uk.ac.ic.doc.src (00000510200001).  You can log on; there's help to
  107.   tell you the different ways of getting source.  Epoch is in
  108.   /gnu/epoch.
  109.   
  110.   Epoch is also available from aix370.rrz.uni-koeln.de (134.95.132.2)
  111.   in /gnu/emacs/epoch.
  112.   
  113.   Volunteers for other FTP sites outside the United States, or for
  114.   mail access to Epoch source, please step forward.
  115.   
  116. A-3: What is the latest version of Epoch?
  117.   
  118.   The latest version is 4.2.  Previous versions still in use by some
  119.   people include 4.0 patchlevels 0,1, and 2, 4.1, the 4.0 alpha and
  120.   beta levels, and version 3.2.
  121.   
  122.   Epoch 4.2 is based on GNU Emacs 18.58, which is the most recent
  123.   version of GNU Emacs.
  124.   
  125.   Existing installations of Epoch 4.1 should be upgraded to 4.2 as
  126.   soon as possible.
  127.   
  128. A-4: I recently moved to Epoch 4.0b0 (or later), and elisp code that
  129. worked before has stopped working.  Why?
  130.   
  131.   In one of the beta versions of epoch, the term "button" was replaced
  132.   by the term "zone".  The idea was, "button" was misleading (since it
  133.   refered to a mouse button or a pushbutton as well).  It didn't
  134.   really describe Epoch's attributed text.
  135.   
  136.   As a consequence, the names of all the button-related function names
  137.   and variables were changed.  There are two ways to deal with this
  138.   change:
  139.   
  140.   METHOD #1:
  141.   
  142.     Put the following command at the head of each file of elisp code
  143.     that uses buttons:
  144.     
  145.     (require 'button)
  146.     
  147.     (This simply does a series of fset's to replace the "button" names
  148.     with the new "zone" names.)
  149.     
  150.   METHOD #2:
  151.     
  152.     Convert all references of "button" to "zone".  You can use the
  153.     function convert-current-buffer in epoch-lisp/convert-buttons.el
  154.     (in the Epoch distribution) to do this automatically.
  155.     
  156.     NOTE: There may be additional problems; in particular, since
  157.     attributes were eliminated in Epoch 4.0, any use of them will have
  158.     to be eliminated also.  This is less simple than switching from
  159.     buttons to zones.  Fortunately, most Epoch packages on the net now
  160.     support 4.0.  Therefore, I won't bother to come up with an answer
  161.     for this one (unless someone actually needs to know).
  162.     
  163. A-5: I recently moved to a newer version of Epoch, and my X resources
  164.   are suddenly being ignored.  Why?
  165.   
  166.   Old versions of Epoch extracted its X default resources from
  167.   the user's .Xdefaults file by hand; this is no longer the case.  If
  168.   Epoch isn't picking up resources like previous versions did on your
  169.   system, prior to starting Epoch do this:
  170.   
  171.     xrdb -merge $HOME/.Xdefaults
  172.   
  173.   This makes the X server's database pick up and maintain all of the
  174.   resource definitions found in $HOME/.Xdefaults.
  175.   
  176.   Alternatively, you can use the '-ud' command line flag to force
  177.   Epoch to manually scan $HOME/.Xdefaults.
  178.   
  179.   A second problem is that Epoch uses the first word in the command
  180.   that executed Epoch (argument 0) to search the X resource database
  181.   for Epoch resources.  Thus, if you invoke Epoch with the name:
  182.   
  183.     epoch-4.2
  184.   
  185.   ...Epoch will use the string 'epoch-4.2' to search the resource
  186.   database, thereby missing the resources specified by the name
  187.   'epoch'.  The workaround is to use the '-name' or '-rn' command-line
  188.   option like so:
  189.   
  190.     epoch-4.2 -name epoch
  191.    
  192.   or:
  193.   
  194.     epoch-4.2 -rn epoch
  195.   
  196.   Using -name is more recommended, as it is a sort-of standard option
  197.   among X applications (most X Toolkit applications support it).
  198.   
  199.   [From Martin Boyer (mboyer@ireq-robot.hydro.qc.ca).]
  200.   
  201. A-6: What's the difference between Epoch and GNU Emacs version 19?
  202.   
  203.   To quote directly from the GNU 'status' file (obtained via anonymous
  204.   FTP to prep.ai.mit.edu (18.71.0.38) as /pub/gnu/status):
  205.   
  206.   -- BEGIN QUOTE -----------------------------------------------------
  207.   Emacs 18 maintenance continues for simple bug fixes.  Version 19
  208.   approaches release, counting among its new features before and after
  209.   change hooks, source-level debugging of Emacs Lisp programs, X
  210.   selection processing, including CLIPBOARD selections, scrollbars,
  211.   support for European character sets, floating point numbers,
  212.   per-buffer mouse commands, interfacing with the X resource manager,
  213.   mouse-tracking, lisp-level binding of function keys, and multiple X
  214.   windows (`screens' to emacs).
  215.   
  216.   Thanks go to Alan Carroll and the people who worked on Epoch for
  217.   generating initial feedback to a multi-windowed emacs.  Emacs 19
  218.   supports two styles of multiple windows, one with a separate screen
  219.   for the minibuffer, and another with a minibuffer attached to each
  220.   screen.
  221.   
  222.   A couple of other features of Version 19 are buffer allocation, which
  223.   uses a new mechanism capable of returning storage to the system when a
  224.   buffer is killed, and a new input system--all input now arrives in the
  225.   form of Lisp objects.
  226.   
  227.   Other features under consideration for later releases of Version 19
  228.   include:
  229.   
  230.   ** Associating property lists with regions of text in a buffer.
  231.   ** Multiple font, color, and pixmaps defined by those properties.
  232.   ** Different visibility conditions for the regions, and for various
  233.      windows showing one buffer.
  234.   ** Hooks to be run if point or mouse moves outside a certain range.
  235.   ** Incrementally saving undo history in a file, so that recover-file
  236.      also reinstalls buffer's undo history.
  237.   ** Static menu bars, and better pop-up menus.
  238.   -- END QUOTE -------------------------------------------------------
  239.   
  240.   Epoch currently supports much of the new functionality of GNU Emacs
  241.   v19, including some features that apparently won't be immediately
  242.   available in GNU Emacs v19 (notably, associating property lists with
  243.   regions of text, and multiple fonts/colors/pixmaps defined by those
  244.   properties).
  245.   
  246.   A postscript to this answer is a message that Richard Stallman
  247.   (Mr. Gnu himself) posted to gnu.emacs.help in Apr 1992:
  248.   
  249.   -- BEGIN QUOTE -----------------------------------------------------
  250.   Emacs 19 won't support text highlighting, but a later version will.
  251.   
  252.   We have code basically working for attaching arbitrary properties to
  253.   parts of the text, including choice of font and color.
  254.   
  255.   This feature is designed for attributes which are considered part of
  256.   the text itself.  What Epoch provides is highlighting that is part
  257.   of the presentation of the text, not logically part of the text itself.
  258.   That is useful also; I hope we will find the wherewithal to implement
  259.   that along with the other highlighting features.
  260.   -- END QUOTE -------------------------------------------------------
  261.   
  262.   There is also a version of Emacs 19 written by Lucid.  Called "Lucid
  263.   Emacs", this is something from its README about it:
  264.   
  265.   -- BEGIN QUOTE -----------------------------------------------------
  266.   Lucid GNU Emacs 19.3 is now available.  This is a version of GNU
  267.   Emacs derived from an early version of Emacs version 19 from the
  268.   Free Software Foundation. 
  269.   
  270.   You can get it via anonymous FTP from the host labrea.Stanford.EDU
  271.   (36.8.0.47). It is currently available only by FTP.  We don't have
  272.   the manpower to make tapes right now.
  273.   
  274.   Log in with the user "anonymous" and "username@host" as a password
  275.   (that is, your email address.)  Execute the command "cd
  276.   pub/gnu/lucid/".  These are the files you will find there:
  277.  
  278.   lemacs-19.3.tar.Z
  279.         The complete source distribution.  This file is about 8 megabytes.
  280.         When untarred and uncompressed, the source distribution will take up
  281.         about 20 megs. You will need an additional 12 megs or so to compile it.
  282.   
  283.   lemacs-19.3-sun4.tar.Z
  284.         This is a ready-to-run set of Sun4 executables, and a DOC file.  If
  285.         you want to use these executables, you will still need to get the file
  286.         lemacs-19.3.tar.Z, because Emacs cannot function very well without the
  287.         lisp library online.  This file is about 1.7 megs, 3.8 megs when
  288.         unpacked, 3 megs of which is the Emacs executable itself (2.1 megs if
  289.         stripped.)
  290.   
  291.   Don't forget to set "binary" mode when transferring these files.
  292.   Unpack them with some variation of the command "zcat
  293.   lemacs-19.3.tar.Z | tar -vxf -". 
  294.   
  295.   .... [edit out info on lucid emacs mailing lists] ....
  296.   
  297.   Why Another Version of Emacs?
  298.   =============================
  299.   
  300.   Lucid's latest product, Energize, is a C/C++ development
  301.   environment.  Rather than invent (and force our users to learn) a
  302.   new user-interface, we chose to build part of our environment on top
  303.   of the world's best editor, GNU Emacs. (Though our product is
  304.   commercial, the work we did on GNU Emacs is free software, and is
  305.   useful without having to purchase our product.) 
  306.   
  307.   We needed a version of Emacs with mouse-sensitive regions, multiple
  308.   fonts, the ability to mark sections of a buffer as read-only, the
  309.   ability to detect which parts of a buffer has been modified, and
  310.   many other features. 
  311.   
  312.   Why Not Epoch?
  313.   ==============
  314.   
  315.   For our purposes, the existing version of Epoch was not sufficient;
  316.   it did not allow us to put arbitrary pixmaps/icons in buffers,
  317.   `undo' did not restore changes to regions, regions did not overlap
  318.   and merge their attributes in the way we needed, and several other
  319.   things. 
  320.   
  321.   We could have devoted our time to making Epoch do what we needed
  322.   (and, in fact, we spent some time doing that) but, since the FSF
  323.   planned to include Epoch-like features in their version 19, we
  324.   decided that our efforts would be better spent improving Emacs19
  325.   instead of Epoch.  
  326.   
  327.   Our original hope was that our changes to Emacs would be
  328.   incorporated into the "official" v19.  However, scheduling conflicts
  329.   arose, and we found that, given the amount of work still remaining
  330.   to be done, we didn't have time to merge with the FSF's code.
  331.   Consequently, we have released our work as a forked branch of Emacs,
  332.   instead of delaying any longer. 
  333.   
  334.   It seems likely that a merger of Epoch and Lucid Emacs will occur in
  335.   the not-too-distant future.
  336.   -- END QUOTE -------------------------------------------------------
  337.   
  338.   
  339. *                     === CONFIGURING EPOCH ===
  340.  
  341. B-1: How can my .emacs file deal with both GNU Emacs and Epoch?
  342.   
  343.   An easy way to handle both GNU Emacs and Epoch within the same .emacs
  344.   file is to define a variable 'running-epoch' as follows:
  345.   
  346.   (defvar running-epoch (boundp 'epoch::version))
  347.   
  348.   Then, the rest of your .emacs file can look like this:
  349.   
  350.     (if running-epoch
  351.       (progn
  352.         ... [Epoch-specific code here] ...
  353.     ))
  354.   
  355.   ... [Emacs code here] ...
  356.   
  357.   (After this, when I refer to 'your .emacs file', read that as 'the
  358.   Epoch-specific portion of your .emacs file', under the assumption that
  359.   you have both general and Epoch-specific parts as detailed above.)
  360.   
  361.   If you have a large amount of Epoch-specific code it may be better to
  362.   put it in a separate file (e.g., "epoch-specific.el"), possibly
  363.   byte-compile it, then load it from your .emacs file like so:
  364.   
  365.     (if (boundp 'epoch::version) (load "epoch-specific"))
  366.   
  367. B-2: What if I want to have separate sections for Epoch 3.2 and 4.0 in
  368.  my .emacs file?
  369.   
  370.   The variable 'epoch::version' is a string that contains the current
  371.   Epoch version ID.  For instance, evaluating epoch::version under
  372.   Epoch 4.2 gives:
  373.   
  374.   "Epoch 4.2"
  375.   
  376.   A simple way to determine if version 4.x is running is to do something
  377.   like this:
  378.   
  379.     (string-match " 4" epoch::version)
  380.   
  381.   This will result in 't' if the string " 4" is a substring of
  382.   epoch::version (as would be the case when epoch::version is
  383.   "Epoch 4. ..."), and 'nil' otherwise.
  384.   
  385. B-3: How can I configure Epoch to support full 8-bit character sets?
  386.   
  387.   There are two parts to this: display and input.
  388.   
  389.   Display is handled by the variables "meta-printable" and
  390.   "ctl-arrow".  From the documentation string for "meta-printable":
  391.   
  392.   Non-nil means meta characters, that is characters in the range
  393.   0240..0377, are printable.  Nil means display meta chars  with
  394.   backslash and octal digits.  Automatically becomes local when set in
  395.   any fashion.  
  396.   
  397.   From the documentation string for "ctl-arrow":
  398.   
  399.   t means display control chars with uparrow. Nil means use backslash
  400.   and octal digits. Automatically becomes local when set in any
  401.   fashion.
  402.   
  403.   Input is handled by the flag "EIGHTBIT_KEYBOARD", which is set in config.h:
  404.   
  405.   /* Define EIGHTBIT_KEYBOARD if you want keys in range 0240 to 0377
  406.    * to insert corresponding eight-bit characters.
  407.    */
  408.   /* #define EIGHTBIT_KEYBOARD */
  409.   
  410.   Define this flag only if you are using a keyboard with direct
  411.   support for 8-bit characters. 
  412.   
  413. *                          === WINDOWS ===
  414.  
  415. C-1: How do I get the minibuffer back at the bottom of my edit window?
  416.   
  417.   Start Epoch with the command-line option '-nm'.  Alternately, in your
  418.   general .Xdefaults file, specify:
  419.   
  420.     epoch.nonlocal.minibuf: False
  421.   
  422. C-2: How do I prevent the initial edit window from appearing?  (In
  423.  other words, how do I get only the minibuffer upon startup?)
  424.   
  425.   There is a variable that controls whether or not an initial edit
  426.   window will be provided. By default, of course, one is; to stop this
  427.   from happening, put the following in your .emacs:
  428.   
  429.     (setq inhibit-initial-screen-mapping t)
  430.   
  431.   This will have no effect if you're using local minibuffers (i.e. when
  432.   the minibuffer is a part of each edit window), as described above.
  433.   
  434.   [Thanks to Chris Love (love@cs.uiuc.edu).]
  435.   
  436. C-3: How do I stop the windows from automatically raising upon entry?
  437.   
  438.   Specify the following in your .emacs file:
  439.   
  440.     (setq auto-raise-screen 'minibuf)
  441.   
  442.   This makes the minibuffer raise when an Epoch edit window is
  443.   entered; if you don't want the minibuffer to raise itself either, do
  444.   the following instead:
  445.   
  446.     (setq auto-raise-screen nil)
  447.   
  448. C-4: How do I change the cursor?
  449.   
  450.   Another noticeable change from GNU Emacs is the cursor glyph (which is
  451.   a pencil shape).  To change this to a more normal-appearing arrow
  452.   shape, put this in your .emacs file:
  453.   
  454.     (cursor-glyph 68)
  455.     (cursor-glyph 68 (epoch::minibuf-screen))
  456.     (push '(cursor-glyph . 68) epoch::screen-properties)
  457.   
  458.   NOTE: You can specify a different cursor glyph for the minibuffer,
  459.   if you like.
  460.   
  461.   There are also X resources for the screen and minibuffer cursor
  462.   glyphs; equivalent to the above elisp code would be the following (in
  463.   your .Xdefaults file):
  464.   
  465.     epoch.screen.cursor.glyph: 68
  466.     epoch.minibuf.cursor.glyph: 68
  467.   
  468.   For either of these approaches, any valid cursor ID number will do; to
  469.   see the available cursors and their ID numbers, take a look at the
  470.   file /usr/include/X11/cursorfont.h.
  471.   
  472.   (See below for details on how to customize the cursor glyph based on
  473.   the mode of a screen's initial buffer.)
  474.   
  475. C-5: How do I define edit screen attributes on a per-mode basis?  Or,
  476.  how do I make my C++ edit windows come up with 48 lines and a big
  477.  round dot for a cursor?
  478.   
  479.   You can define styles for new edit screens created with
  480.   find-file-other-screen (which is, by default, bound to 'C-z 4 C-f' and
  481.   'C-z 4 f') based on the initial buffer's mode like so:
  482.   
  483.     (setq epoch-mode-alist
  484.       (append (list
  485.           (cons 'c-mode
  486.             (list
  487.               (cons 'geometry "80x52")
  488.               (cons 'cursor-glyph 94)))
  489.           (cons 'LaTeX-mode
  490.             (list
  491.               (cons 'geometry "90x48")
  492.               (cons 'cursor-glyph 58)))
  493.           (cons 'c++-mode
  494.             (list
  495.               (cons 'geometry "80x48")
  496.               (cons 'cursor-glyph 38))))
  497.         epoch-mode-alist))
  498.   
  499. C-6: How do I make Epoch manage edit window and icon names based on the
  500.  name of the current buffer(s)?
  501.   
  502.   The base Epoch distribution doesn't support this, but there have
  503.   been a number of small packages written that accomplish this.  There
  504.   is one written by Derek Ney (derek@boingo.med.jhu.edu) up for
  505.   anonymous FTP at ftp.ncsa.uiuc.edu (141.142.20.50) as
  506.   /outgoing/marca/epoch/derek-title.el.Z.  Another one can be found in
  507.   the epoch sources at ftp.uu.net (in the directory
  508.   /languages/emacs-lisp/epoch).
  509.   
  510. C-7: How do I iconify my entire Epoch session at once?
  511.   
  512.   By default, 'C-z i' is bound to iconify-screen, which only iconifies
  513.   the current edit window.  To iconify everything, define a small
  514.   function iconify-everything in your .emacs file like so:
  515.   
  516.     (defun iconify-everything () 
  517.       "Iconify entire Epoch session at once."
  518.       (interactive)
  519.       (dolist (s (screen-list))
  520.         (iconify-screen s))
  521.       (iconify-screen 0)
  522.     )
  523.   
  524.   Then bind it to a key sequence (e.g. 'C-z C-i') like so:
  525.   
  526.     (global-set-key "\C-z\C-i" 'iconify-everything)
  527.   
  528. C-8: Does Epoch support scrollbars?
  529.   
  530.   No; native support for scrollbars is a technical challenge that so far
  531.   no one has taken up for either GNU Emacs or Epoch.
  532.   
  533.   Alternatively, pick up the widgets package from cs.uiuc.edu, in
  534.   pub/epoch-files/widgets/widgets.tar.Z.  This is a Motif-only "widget
  535.   server" that epoch can talk to.  It will produce a nice Motif
  536.   scroll-bar on the side of your epoch screen.  It does a lot more,
  537.   but as far as I can tell, that's all it does out of the box (i.e.,
  538.   without writing some lisp code).  Somebody correct me if I'm wrong,
  539.   here.
  540.   
  541.   [Thanks to Pierre Bondono (bondono@vnet.ibm.com) for the following:]
  542.   
  543.   Related to this, there is a ``scrolling concept'' inside the IMOUSE
  544.   packages that may be of interest.  IMOUSE can be found via anonymous
  545.   FTP from ireq-robot.hydro.qc.ca (131.195.2.130); see question H-1
  546.   below.
  547.   
  548. C-9: My workstation's screen area is overwhelmed by all the windows I
  549.  create in my Epoch editing sessions.  How can I squeeze more windows
  550.  into my working environment?
  551.   
  552.   This is only a half-facetious question; there's only room on most
  553.   workstation screens (usually 1024x768 or 1280x1024 pixels in area) for
  554.   a couple of windows with decent-sized fonts.  To help alleviate the
  555.   discomfort of cramped space, try the 'tvtwm' window manager.  (I sound
  556.   like a cough-drop commercial.)
  557.   
  558.   Tvtwm, a superset of the twm window manager, allows windows to be
  559.   placed on a virtual root window that can be of any size (for example,
  560.   3000 by 3000 pixels).  This virtual root can be navigated via tvtwm's
  561.   'panner', a reduced-size overview of your entire environment.
  562.   
  563.   Tvtwm can be found on your local comp.sources.x archive or in the
  564.   X11R4 and X11R5 distributions.  Try anonymous FTP to ftp.uu.net
  565.   (137.39.1.9) in /usenet/comp.sources.x.
  566.   
  567.   For those people that actually like the OpenLook window manager :-),
  568.   a similarly modified version of Olwm can be found in ftp.uu.net
  569.   /usenet/comp.sources.x/volume14/olvwm (and a lot of other places,
  570.   too).
  571.   
  572.   People running on HP workstations can use the rooms metaphor built
  573.   into the vuewm.  A similar, but less powerful alternative is the vr
  574.   program in the contrib directory at export.lcs.mit.edu.  It,
  575.   however, doesn't support spreading epoch windows around different
  576.   rooms.
  577.   
  578. *                      === COLORS AND FONTS ===
  579.  
  580. D-1: How do I interactively select my foreground color?
  581.   
  582.   First, define a style for each of your desired foreground colors in
  583.   your .emacs file, like so:
  584.   
  585.     (setq red-style (make-style))
  586.     (set-style-foreground red-style "red")
  587.   
  588.   Then, define a short command 'goto-style' like so:
  589.   
  590.     (defun goto-style (newstyle)
  591.       "Set current buffer to a given font NEWSTYLE."
  592.       (setq buffer-style newstyle)
  593.       (redraw-display))
  594.   
  595.   Next, bind commands to keys like so:
  596.   
  597.     (global-set-key "\C-c1" (definteractive (goto-style red-style)))
  598.   
  599.   This binds a command that changes the current foreground color to red
  600.   to the key sequence C-c 1.
  601.   
  602.   The following function allows you to interactive specify a new color
  603.   for the current buffer's foreground:
  604.   
  605.     (defun set-foreground (newfg)
  606.       "Set current foreground color to NEWFG."
  607.       (interactive "sForeground color: ")
  608.       (set-style-foreground buffer-style newfg)
  609.       (redraw-display))
  610.   
  611.   This function is activated by typing:
  612.   
  613.     M-x set-foreground
  614.   
  615.   Or, it can be bound to a key like so:
  616.   
  617.     (global-set-key "\C-z\C-s" 'set-foreground)
  618.   
  619. D-2: How do I switch fonts interactively?
  620.   
  621.   To change fonts, you don't have to define new styles.  Just define a
  622.   short command 'goto-font', like so:
  623.   
  624.     (defun goto-font (newfont)
  625.       "Set current buffer to a given font NEWFONT."
  626.       (font newfont)
  627.       (redraw-display))
  628.   
  629.   Then, bind commands to keys like so:
  630.   
  631.     (global-set-key "\C-c1" (definteractive (goto-font "8x13")))
  632.   
  633.   This changes the current edit window's font to "8x13" when the key
  634.   sequence 'C-c 1' is entered.
  635.   
  636.   The following function allows you to interactively input a font name:
  637.   
  638.     (defun set-font (newfont)
  639.       "Set current font to NEWFONT."
  640.       (interactive "sFont name: ")
  641.       (font newfont)
  642.       (redraw-display))
  643.   
  644.   This function is activated by typing:
  645.   
  646.     M-x set-font
  647.   
  648.   Or, it can be bound to a key like so:
  649.   
  650.     (global-set-key "\C-z\C-s" 'set-font)
  651.   
  652.   If the font you specify with either of these methods isn't valid for
  653.   your X server (i.e. if the font doesn't exist in a directory listed in
  654.   your X server's font path and in that directory's fonts.dir file, or
  655.   isn't available from the font server if you're running X11R5), you
  656.   will get this message in your minibuffer:
  657.    
  658.   Bad font name
  659.   
  660.   Font names are ordinary X font names; for example, a 14-point non-bold
  661.   non-italic Helvetica font can be referred to as:
  662.   
  663.   "*helvetica-medium-r-normal--14*"
  664.   
  665.   The standard X client 'xlsfonts' will give you a list of the fonts
  666.   registered with your X server.  The standard X client 'xfontsel' lets
  667.   you interactively put together an X font specification string based on
  668.   individual attributes (e.g., family, size).
  669.   
  670. D-3: How can I associate a certain foreground color with a file
  671.  so that every time I load that file my foreground color is
  672.  automatically set?
  673.   
  674.   You can easily do this by using GNU Emacs' ability to handle file
  675.   variables.  For example, if you have defined style 'red-style' to
  676.   specify a red foreground color, and want file 'foobar.c' to always
  677.   have the foreground color red, add this to the bottom of 'foobar.c':
  678.   
  679.     ^L
  680.     /*
  681.     Local Variables:
  682.     buffer-style: red-style
  683.     End:
  684.     */
  685.   
  686.   NOTE: '^L' is a newline character; you can enter one in an edit
  687.   buffer by typing 'C-q C-l'.
  688.   
  689.   Then, whenever 'foobar.c' is loaded, the variable 'buffer-style' will
  690.   be set to 'red-style', and as a result the foreground color for that
  691.   buffer will be red.
  692.   
  693. D-4: How do I design my own really funky technicolor modeline?
  694.   
  695.   Using the tried-and-true Learning By Example(tm) educational method,
  696.   I'll just give the (heavily commented) elisp code I use to define my
  697.   own customized modeline:
  698.   
  699.   ;; A style to emphasize things I find important
  700.   (defvar mode:*hilight-style*  (make-style)
  701.     "Style for modeline hilights"
  702.   )
  703.   (let ((s1 mode:*hilight-style*))
  704.    ;; Do something reasonable if we're on a monochrome screen
  705.     (if (> (epoch::number-of-colors) 2)
  706.         (progn
  707.       (set-style-foreground s1 "#83558c")
  708.       (set-style-background s1 (foreground)))
  709.       (progn
  710.       (set-style-foreground s1 (background))
  711.       (set-style-background s1 (foreground))))
  712.     (set-style-font s1 "*helvetica-bold-r-*-*-12-*")
  713.   )
  714.   
  715.   ;; A style for normal modeline contents -- inverted from normal
  716.   ;;  buffer  
  717.   (defvar mode:*normal-style* (make-style)
  718.     "Normal modeline style"
  719.   )
  720.   (let ((s2 mode:*normal-style*))
  721.     (set-style-foreground s2 (background))
  722.     (set-style-background s2 (foreground))
  723.     (set-style-font s2 "*helvetica-medium-r-*-*-12*")
  724.   )
  725.   
  726.   ;; define  a simpler-looking modeline format
  727.   (setq default-mode-line-format
  728.     (list
  729.       ""
  730.       'mode:*normal-style*     
  731.       'mode-line-modified
  732.       ;; Highlight the buffer name
  733.       'mode:*hilight-style*
  734.       " %17b"
  735.       'mode:*normal-style*
  736.       "   "
  737.       'global-mode-string
  738.       "   %[("
  739.       'mode-name 'minor-mode-alist "%n" 'mode-line-process
  740.       ")%]--"
  741.       ;; Highlight where we are in the buffer
  742.       'mode:*hilight-style*
  743.       (cons -3 "%p")
  744.       'mode:*normal-style*
  745.       "-%-"
  746.       )
  747.     )
  748.   
  749.   
  750. D-5: How do I replace the mouse region selection underlining with a
  751.  different style?
  752.   
  753.   The appearance of the region underlined with the mouse is described
  754.   by the style in the variable "motion::style".  You can use the
  755.   normal style functions to manipulate this variable.  For example,
  756.   you can turn off underlining with the following:
  757.   
  758.     (set-style-underline motion::style nil)
  759.   
  760.   Now, nothing will show up.  To have just the text foreground color
  761.   change on mouse selection, do:
  762.   
  763.     (set-style-foreground motion::style "yellow")
  764.     (set-style-background motion::style (background))
  765.     
  766.   Replace "yellow" with any desired X color name.
  767.   
  768.   To have the selected region appear as reverse video, try:
  769.   
  770.     (set-style-foreground motion::style (background))
  771.     (set-style-background motion::style (foreground))
  772.   
  773.   To have the selected region appear with an overlayed diagonal stipple
  774.   pattern, try:
  775.   
  776.     (set-style-background motion::style "red")
  777.     (set-style-background-stipple motion::style
  778.       (make-bitmap 4 4 "\167\273\335\356"))
  779.   
  780.   The style bound to motion::style has default settings as follows:
  781.   
  782.     (set-style-foreground motion::style (foreground))
  783.     (set-style-background motion::style (background))
  784.     (set-style-underline motion::style (foreground))
  785.   
  786. *                           === MENUS ===
  787.  
  788. E-1: Does Epoch support popup menus or menubars?
  789.   
  790.   The base Epoch distribution does not have native support for popup
  791.   menus or menubars.  However, there are other ways to use menus with
  792.   Epoch.
  793.   
  794.   METHOD #1:
  795.   
  796.   If you're running the window manager GWM (available via anonymous
  797.   FTP to export.lcs.mit.edu (18.24.0.12) in /contrib/gwm), you can use
  798.   the Epoch contrib 'wm-menu' package (found in the contrib tar file
  799.   on cs.uiuc.edu) to have GWM provide menus that pass messages to
  800.   Epoch.
  801.   
  802.   METHOD #2:
  803.   
  804.   If you're running a window manager that has user-specifiable menus
  805.   (as all of the common window managers do), you can perform
  806.   particular commands from a menu.  These commands can communicate
  807.   with epoch, and get it to do things.
  808.   
  809.   One way to do this is to use "xse" (XSendEvent) and send characters
  810.   that happen to be bound to the commands you want to activate.  To
  811.   bind arbitrary commands to menu entries in this manner, you need to
  812.   define a unique keystroke pattern (with global-set-key) for each
  813.   command and then send that keystroke pattern with xsendevent via the
  814.   menu.  See the section on rebind-key (below) for more information on
  815.   this technique.  (Of course, you are also free to have xsendevent
  816.   send a key sequence like 'ESC x u n d o RET' directly to Epoch.)
  817.   
  818.   A better way is to use gnudoit, which communicates to gnuserv.
  819.   Gnuserv, gnuclient, and gnudoit are replacements for emacsclient and
  820.   its server.  With gnudoit, you can pass in an Emacs Lisp form to
  821.   evaluate, rather than the less readable X Event description for a
  822.   key binding.
  823.   
  824.   Some window managers (such as TWM) do not allow the user to specify
  825.   client-specific menus -- you can only add menus to all clients.
  826.   This is not an ideal solution, since all windows (Epoch or not) in
  827.   the session will have the menu attached to them, but it does work
  828.   and is quite convenient for use with Epoch.  Other window managers
  829.   (Mwm in particular) allow you to specify a menu on a
  830.   client-by-client basis.  Thus, you can have different menus on
  831.   terminal windows from on Epoch (Mwm will even let you have different
  832.   menus on different screens and on the minibuffer).
  833.   
  834.   Here's a couple of sample Twm menu descriptions.  Note that these
  835.   would show up on all applications that have title bars.
  836.  
  837.   menu "epoch"
  838.   {
  839.     "Epoch Menu"   f.title
  840.     "Undo"         ! "xse 'Ctrl<Key>x' '<Key>u'"
  841.     "Quit"         ! "xse 'Ctrl<Key>x' 'Ctrl<Key>c'"
  842.   }
  843.   LeftTitleButton "~/epochbitmap.bm" = f.menu "epoch"
  844.   
  845.   Or, using gnudoit (notice the more readable function names):
  846.   
  847.   menu "epoch"
  848.   {
  849.     "Epoch Menu"   f.title
  850.     "Undo"         ! "gnudoit '(undo)'"
  851.     "Quit"         ! "gnudoit '(save-buffers-kill-emacs)'"
  852.   }
  853.   LeftTitleButton "~/epochbitmap.bm" = f.menu "epoch"
  854.   
  855.   
  856.   Here's an equivalent Mwm menu, along with resources that will place
  857.   the menu only on Epoch windows.
  858.   
  859.   This goes in your Mwm config file:
  860.   Menu EpochMenu
  861.   {
  862.       "Epoch" f.title
  863.       "Undo"  ! "gnudoit '(undo)'"
  864.       "Quit"  ! "gnudoit '(save-buffers-kill-emacs)'"
  865.   }
  866.  
  867.   This goes in your X defaults:
  868.   Mwm*epoch*windowMenu: EpochMenu
  869.   
  870.   Note the "*epoch*" -- this is the class name of the screen.  If you
  871.   use the -name or -rn options (as described in A-6), this name will
  872.   change.  See the "class" attribute of screens in the epoch manual
  873.   for more on this.
  874.   
  875.   You can get xsendevent at export.lcs.mit.edu (18.24.0.12) in /contrib
  876.   or at ftp.uu.net (137.39.1.9) in /packages/X/contrib.  Gnuserv,
  877.   gnuclient and gnudoit are available at ee.utah.edu, in
  878.   /emacs/etc/gnuserv (and probably other sites, too, but I can't find
  879.   any with Xarchie -- anyone got a good one?).
  880.   
  881.   [From Philippe Bondono (bondono@vnet.ibm.com)., with Mwm and
  882.   gnuclient additions by Brook]
  883.   
  884.   METHOD #3:
  885.   
  886.   A completely different technique involves using a separate X client
  887.   that posts a menu and has Epoch (or for that matter, GNU Emacs)
  888.   receive commands from it.  One example of this technique is
  889.   /gnu/emacs/buttons.tar.Z from anonymous FTP to aix370.rrz.uni-koeln.de
  890.   (134.95.132.2).
  891.   
  892.   METHOD #4:
  893.   
  894.   Another method uses xmenu or xmenu2, which are available at any
  895.   comp.sources.x archive.  (If you don't know of such an archive, try
  896.   anonymous FTP to ftp.uu.net (137.39.1.9) in /usenet/comp.sources.x.)
  897.   After you have compiled xmenu or xmenu2, define the following function
  898.   in your .emacs file:
  899.   
  900.   (defun interpret-output (process output)
  901.     (command-execute (car (read-from-string output))))
  902.   
  903.   Then you can define other functions that make specific menus, with
  904.   menu entries bound to commands, like the following example shows:
  905.   
  906.   (defun make-menu ()
  907.     (interactive)
  908.     (set-process-filter (start-process "xmenu" nil
  909.         "/usr/local/bin/xmenu" "-heading" "Epoch Menu"
  910.         "Undo=undo")
  911.       'interpret-output))
  912.   
  913.   This example uses /usr/local/bin/xmenu to post a one-entry menu to the
  914.   screen; the menu entry's label is "Undo" and the action it triggers in
  915.   Epoch is 'undo'.  Specify as many "Label=action" pairs as you like as
  916.   part of the start-process command.
  917.   
  918.   [From Philippe Bondono (bondono@vnet.ibm.com).]
  919.   
  920.   If you use XView/Open Windows, Dev Joneja (dj7@cunixf.cc.columbia.edu)
  921.   has written a menu/button client similar to xmenu; it's available via
  922.   anonymous FTP from ftp.ncsa.uiuc.edu (141.142.20.50) as
  923.   /outgoing/marca/epoch/xvmenu.tar.Z.
  924.   
  925.   Bob Weiner (rsw@cs.brown.edu) says the following concerning menus
  926.   within Hyperbole:
  927.   
  928.   ----------------------------------------------------------------------
  929.   If you use Hyperbole, you know what the Smart Key system is, context
  930.   sensitive key bindings for many Emacs modes and subsystems.  There is
  931.   a Smart Menu system that goes along with this but has not been
  932.   released because it needs some additional menus and some integration
  933.   work.  It is window manager and window system independent, works under
  934.   Emacs, with a slightly customized version that can highlight selected
  935.   menu items and display menus in a separate Epoch screen, and is
  936.   written entirely in Elisp, so no patching is needed.  It provides much
  937.   easier subsystem access for novices and experienced users and has been
  938.   in use at a few sites for the last several years.
  939.   
  940.   I'd like to get it in a form for release but won't have the time for
  941.   several months.  If an experienced Elisp programmer wanted to
  942.   integrate it with Hyperbole and make any other changes, I [Bob, not
  943.   Marc] would be willing to send it out and coordinate on and test the
  944.   final changes.
  945.   ----------------------------------------------------------------------
  946.   
  947.   See the list of FTP sites below for more information on Hyperbole.
  948.  
  949. *                          === KEYBOARD ===
  950.  
  951. F-1: How do I make the backspace key work properly?
  952.   
  953.   This is actually a GNU Emacs question, but it's included in this FAQ
  954.   because it's probably more important to more people than all the
  955.   other questions here.  (One of the great mysteries of GNU Emacs is
  956.   why the backspace key _still_ doesn't do its job.)
  957.   
  958.   Here are four ways to fix this:
  959.   
  960.   METHOD #1:
  961.   
  962.   Put this in your .emacs file:
  963.   
  964.     (rebind-key "BackSpace" nil "\C-?")
  965.   
  966.   This is the cleanest Epoch-specific solution.  It rebinds 
  967.   the X representation for the backspace key directly to that
  968.   of the delete key.
  969.   
  970.   [Thanks to Joe Wells (jbw@bigbird.bu.edu).]
  971.   
  972.   METHOD #2:
  973.   
  974.   Put this in your .emacs file:
  975.   
  976.     (global-set-key "\C-^bdc" 'backward-delete-char-untabify)
  977.     (rebind-key "BackSpace" nil "\C-^bdc")
  978.   
  979.   This rebinds the X representation for the backspace key to the
  980.   appropriate command for deleting a character backward.  Like the
  981.   first method, this is Epoch-specific.
  982.   
  983.   If you don't like to have your backspace key also untabify (i.e.,
  984.   convert tags to spaces on the fly), use this instead of the previous
  985.   global-set-key:
  986.   
  987.     (global-set-key "\C-^bdc" 'backward-delete-char)
  988.   
  989.   METHOD #3:
  990.   
  991.   Put this in your .emacs file:
  992.   
  993.     (global-set-key "\C-h" 'backward-delete-char-untabify)
  994.     (global-set-key "\C-xh" 'help-command) ; override mark-whole-buffer
  995.     
  996.   This makes C-h (the backspace key as well as the Control-h key
  997.   sequence) delete characters backward, and shifts responsibility for
  998.   help to C-x h.  This fix will work for GNU Emacs as well as Epoch.
  999.   
  1000.   If you don't like to have your backspace key also untabify (i.e.,
  1001.   convert tabs to spaces on the fly), use this instead of the previous
  1002.   global-set-key for C-h:
  1003.   
  1004.     (global-set-key "\C-h" 'backward-delete-char)
  1005.   
  1006.   METHOD #4:
  1007.   
  1008.   Outside of Epoch, you can change the X representation of the
  1009.   BackSpace key into a Delete by doing this:
  1010.   
  1011.     xmodmap -e "keysym BackSpace = Delete"
  1012.   
  1013.   This approach has the disadvantage of not being done inside
  1014.   of Epoch for those who prefer customizing lisp code to
  1015.   customizing their system environments.
  1016.   
  1017.   [Thanks to Joe Wells (jbw@bigbird.bu.edu).]
  1018.   
  1019. F-2: How do I make the keys marked "Page Up" and "Page Down" on an IBM
  1020.  Selectric-style keyboard do their jobs?
  1021.   
  1022.   Using the key rebinding facility discussed below, you can put the
  1023.   following two lines in your .emacs file:
  1024.   
  1025.     (rebind-key "Prior" nil "\M-v") ; Note Prior, not Page Up.
  1026.     (rebind-key "Next" nil "\C-v")  ; Note Next, not Page Down.
  1027.   
  1028.   Similarly, if you want "Home" and "End" to go to the beginning and end
  1029.   of the current buffer respectively, do:
  1030.   
  1031.     (rebind-key "Home" nil "\M-<")
  1032.     (rebind-key "End" nil "\M->")
  1033.   
  1034. F-3: How do I bind keys in the numeric keypad on an IBM Selectric-style
  1035.  keyboard to their obvious functions (arrow movement, home, end, etc.)?
  1036.   
  1037.   Put these lines in your .emacs file:
  1038.   
  1039.     (rebind-key "KP_Home" nil "\M-<")
  1040.     (rebind-key "KP_Up" nil "\C-p")
  1041.     (rebind-key "KP_Prior" nil "\M-v")
  1042.     (rebind-key "KP_Left" nil "\C-b")
  1043.     (rebind-key "KP_Begin" nil "\C-l")
  1044.     (rebind-key "KP_Right" nil "\C-f")
  1045.     (rebind-key "KP_End" nil "\M->")
  1046.     (rebind-key "KP_Down" nil "\C-n")
  1047.     (rebind-key "KP_Next" nil "\C-v")
  1048.     
  1049.   NOTE: This makes the keypad arrow keys work, the keypad PgUp/PgDown
  1050.   work, and the keypad Home/End go to the beginning/end of the
  1051.   buffer.
  1052.   
  1053.   Other keys appropriate for rebinding in a Selectric-style numeric
  1054.   keypad include KP_Divide, KP_Multiply, KP_Subtract, KP_Add, KP_Enter,
  1055.   KP_Insert, and KP_Delete; see below for more details.
  1056.   
  1057. F-4: What general facilities does Epoch provide for rebinding function
  1058.  keys, and how do I use them?
  1059.   
  1060.   The rebind-key function allows you to rebind any keycode to a new
  1061.   string.  An example is probably best to show how this works.  To make
  1062.   the key marked "Page Up" (on IBM Selectric-style keyboards) actually
  1063.   move the current buffer up a page (like M-v), do:
  1064.   
  1065.     (rebind-key "Prior" nil "\M-v")
  1066.   
  1067.   Note that "Prior" is the actual X keysym name for the "Page Up" key;
  1068.   to see the X keysym names, refer to /usr/include/X11/keysymdef.h (or
  1069.   $OPENWINHOME/include/X11/keysymdef.h on OpenWindows systems).
  1070.   (Disregard the leading XK_ in keysymdef.h's definitions for Epoch's
  1071.   purposes; thus, X11's "XK_Prior" becomes Epoch's "Prior".  To find out
  1072.   which keys are actually active for your keyboard and server, use the
  1073.   command "xmodmap -pk".)
  1074.   
  1075.   The standard function keys are named F1 through F12, the function keys
  1076.   on the left side of a Sun-style keyboard are named L1 through L10, and
  1077.   so on.  The keypad apparently cannot be addressed by KP_0 through KP_9
  1078.   but must be referenced by names like KP_Left, KP_Up, and so on.
  1079.   
  1080.   A simple two-step approach for binding function keys to commands
  1081.   involves binding a key to an arbitrary GNU Emacs key encoding (in the
  1082.   following example, C-^ k 1) and then binding that encoding to the
  1083.   command.  An example that binds the function key marked "End" to an
  1084.   arbitrary command (in this case, end-of-line) follows:
  1085.   
  1086.     (rebind-key "End" 0 "\C-^k1")
  1087.     (global-set-key "\C-^k1" 'end-of-line)
  1088.     
  1089.   Note that the above is only an example of the two-step method; if you
  1090.   really want "End" to do 'end-of-line, do the obvious instead:
  1091.   
  1092.     (rebind-key "End" 0 "\C-e")
  1093.   
  1094.   The rebind-key command allows modifiers (e.g. shift, control) to be
  1095.   specified; the following example binds Control-"End" to an arbitrary
  1096.   command (in this case, end-of-buffer):
  1097.   
  1098.     (rebind-key "End" 'control "\C-^Ck1")
  1099.     (global-set-key "\C-^Ck1" 'end-of-buffer)
  1100.   
  1101.   For an example of these principles in action, see the file
  1102.   'amc/keys.el' in the 3.2 contrib directory (which is still up for
  1103.   anonymous ftp at cs.uiuc.edu as a separate .tar.Z file) or at
  1104.   ftp.ncsa.uiuc.edu in /outgoing/marca/epoch.
  1105.   
  1106.   [Thanks to Alan Carroll (carroll@cs.uiuc.edu).]
  1107.   
  1108. F-5: I want Epoch to disregard accidental presses of function keys that
  1109.  insert spurious characters (e.g., "-1~") into the buffer.  Does Epoch
  1110.  perchance have some magical way to make this happen?
  1111.   
  1112.   Perchance, Epoch does.  The variable epoch::function-key-mapping, if
  1113.   set to nil, makes Epoch disregard such keys, unless they're explicitly
  1114.   rebound with rebind-key.  You can set this in your .emacs file like
  1115.   so:
  1116.   
  1117.     (setq epoch::function-key-mapping nil)
  1118.   
  1119.   [Thanks to Alan Carroll (carroll@cs.uiuc.edu).]
  1120.   
  1121. F-6: How do I turn the keyboard bell off?
  1122.   
  1123.   The easy answer is to put the following line in your .emacs file:
  1124.   
  1125.     (setq epoch::bell-volume -50)
  1126.   
  1127.   Another possibility, if you like visual bells (i.e., having the
  1128.   entire edit window flash reverse video instead of hearing an audible
  1129.   beep), is to put the following in your .emacs file:
  1130.   
  1131.     (epoch::set-bell t)
  1132.   
  1133.   The malicious answer, for those who, like myself, never want to hear
  1134.   another beep for the rest of time, is to modify src/x11term.c in the
  1135.   Epoch distribution; just change the line that reads:
  1136.   
  1137.     XBell (xs->display,volume);
  1138.   
  1139.   To:
  1140.   
  1141.     /* XBell (xs->display,volume); */
  1142.   
  1143.   Then recompile.
  1144.  
  1145. *                        === HIGHLIGHTING ===
  1146.  
  1147. G-1: How do I highlight regions of text in a buffer with different styles?
  1148.   
  1149.   While the current Epoch distribution contain plenty of support for
  1150.   zones and styles, the enabling mechanisms that make syntax-directed
  1151.   highlighting possible, no intrinsic support for such highlighting is
  1152.   provided.  This situation may change in subsequent releases of Epoch.
  1153.   
  1154.   Three packages that provide varying degrees of support for
  1155.   syntax-directed highlighting are:
  1156.   
  1157.   tek-highlight-2.0.tar.Z (available from archive.cis.ohio-state.edu
  1158.   or ftp.ncsa.uiuc.edu, see below), which supports comment highlighting
  1159.   in source code as well as support for the Info documentation browser,
  1160.   various mail and news packages, and manual pages.
  1161.   
  1162.   lightbrite.tar.Z (available from ftp.ncsa.uiuc.edu, see below),
  1163.   written by Marc Andreessen to allow per-mode regexp-based
  1164.   highlighting.  Thus, you can have all #define's/#endif's in red,
  1165.   setq's and defun's in green, int/float/double's in yellow, '-->'s in
  1166.   purple, and so on.  Here's something from its README:
  1167.    o Accurate comment highlighting.
  1168.    o Regexp touchup highlighting.
  1169.    o Easy specification of visual attributes of multiple 
  1170.       highlighting styles.
  1171.    o Instant highlighting (as you type) with adjustable 
  1172.       responsiveness.
  1173.    o Buffer size thresholds for both comment and touchup 
  1174.       highlighting.
  1175.    o Use of minor mode and local keymaps.
  1176.    o Re-highlight visible screen, current paragraph, current
  1177.       function, immediate area, or entire buffer.
  1178.    o Large assortment of default mode-specific highlighting
  1179.       patterns.
  1180.    o Automatic highlight on find-file and/or write-file.
  1181.    o Special handling of mail and rmail modes.
  1182.    o Works with both Epoch and Lucid Emacs transparently.
  1183.  
  1184.   hilit.el.Z (most recent version was posted to gnu.emacs.souces and is
  1185.   available from ftp.ncsa.uiuc.edu, see below), which provides
  1186.   source-code comment and regexp highlighting.
  1187.   
  1188. *               === EPOCH-SPECIFIC ELISP PACKAGES ===
  1189.  
  1190. H-1: Where can I find Epoch-specific elisp packages?
  1191.   
  1192.   Try the following anonymous FTP sites for Epoch-specific elisp
  1193.   packages:
  1194.  
  1195.   aix370.rrz.uni-koeln.de (134.95.132.2)
  1196.     /gnu/emacs
  1197.   
  1198.   archive.cis.ohio-state.edu (128.146.8.52)
  1199.     /pub/gnu/emacs/elisp-archive/elisp
  1200.     [This is main elisp-archive site; it is mirrored at
  1201.      ftp.uu.net (137.39.1.9) in /languages/emacs-lisp, among other places.
  1202.      Not much Epoch code exists here; in particular, a much more 
  1203.      recent version of hilit.el.Z is at ftp.ncsa.uiuc.edu, below.]
  1204.   
  1205.   ftp.cs.buffalo.edu (128.205.32.3)
  1206.     /pub
  1207.     [This is the distribution site for the new Dired, which will
  1208.      be included in Emacs v19; it includes support for Epoch.]
  1209.   
  1210.   ftp.ncsa.uiuc.edu (141.142.20.50)
  1211.     /outgoing/marca/epoch
  1212.     [This is the previous FAQ maintainer's archive of Epoch code; the
  1213.      README file gives an overview of what he considers to be
  1214.      'essential' Epoch packages, and all of those packages
  1215.      are available there.  If he gets out of date on any of
  1216.      these and you notice it, please let him know.]
  1217.   
  1218.   icsi-ftp.berkeley.edu (128.32.201.55)
  1219.     /pub/elisp
  1220.   
  1221.   ireq-robot.hydro.qc.ca (131.195.2.130)
  1222.     /pub/emacs/lisp
  1223.     [This is the distribution site for the IMOUSE package.]
  1224.   
  1225.   wilma.cs.brown.edu (128.148.31.66)
  1226.     /pub/hyperbole
  1227.     [This is the distribution site for the Hyperbole hypertext
  1228.      system, which includes support for Epoch.  Also available
  1229.      separately from here is the wrolo 'rolodex' package, one of the
  1230.      components of Hyperbole.]
  1231.   
  1232.   Also see the contrib tar file found at cs.uiuc.edu, in the same
  1233.   directory as the actual Epoch distribution.
  1234.   
  1235.   Also watch the gnu.emacs.sources Usenet newsgroup, as well as the
  1236.   epoch newsgroup/mailing list (see below).
  1237.   
  1238.   Please volunteer the names of any sites not on this list.
  1239.   
  1240. H-2: Where can I get a PostScript version of the Epoch manual?
  1241.   
  1242.   Use anonymous ftp to cs.uiuc.edu (128.174.252.1) in 
  1243.   /pub/epoch-files/epoch; get epoch-4.0.epoch-man.ps.Z.
  1244.   
  1245. *                      === OTHER RESOURCES ===
  1246.  
  1247. I-1: What Epoch newsgroups/mailing lists are out there?
  1248.   
  1249.   The Usenet newsgroup gnu.epoch.misc and the mailing list
  1250.   epoch@cs.uiuc.edu are one and the same.  To join the mailing list,
  1251.   send a request to epoch-request@cs.uiuc.edu.  (It is best to read the
  1252.   newsgroup if you have access to it, to save on network resources and
  1253.   the mailing list maintainer's time.)
  1254.   
  1255.   For more general information about Epoch and GNU Emacs, see the list
  1256.   of resources at the start of this file.
  1257.  
  1258. I-2: Where do I send bug reports?
  1259.   
  1260.   Either post to the newsgroup gnu.epoch.misc, or (equivalently) send
  1261.   mail to epoch@cs.uiuc.edu (which is the newsgroup). 
  1262.   
  1263. *                     === ADVANCED QUESTIONS ===
  1264.   
  1265.   [NOTE: This section is at the bottom since the questions involve
  1266.   actual source-code hacking or problems with specific machine
  1267.   configurations that the FAQ moderator cannot personally verify and
  1268.   whose solutions will probably involve some sort of hacking.  If
  1269.   these answers helped you, please let me know.  If I don't hear of
  1270.   people finding these useful, I'm going to remove them.]
  1271.  
  1272. Z-1: Epoch 4.0b1 (or later) (as well as GNU Emacs 18.58) built under
  1273.  HP-UX 8.0 and 8.05 apparently don't recognize the Meta key as Alt.
  1274.  How can this be fixed?
  1275.   
  1276.   Bob Fisher (bob@fisher.depaul.edu) suggests the following command,
  1277.   executed once per session, prior to starting Epoch:
  1278.   
  1279.           xmodmap -e "clear mod1"        \
  1280.                   -e "add mod1 = Meta_R" \
  1281.                   -e "add mod1 = Meta_L"
  1282.   
  1283. Z-2: Why do all of Epoch's colors go away when Epoch is run on an X11R5
  1284.  server with multiple screens?
  1285.   
  1286.   Dana Chee (dana@thumper.bellcore.com) reports that X11R5 has a new
  1287.   SCREEN_RESOURCES property that allows/forces colors to only appear for
  1288.   color screens, but Epoch doesn't look at this property.  This bug
  1289.   will only bite you if you're running on a multi-screen system.  If it
  1290.   happens, there is a workaround; see the xrdb manpage and the xrdb
  1291.   option '-all'.
  1292.   
  1293. Z-3: Even though Epoch 4.0b1 includes fixes to keep the cursor from
  1294.  disappearing (as it does on occasion, especially in a shell, in
  1295.  Epoch 4.0b0), the cursor still disappears sometimes.  Is there a fix
  1296.  for this?
  1297.   
  1298.   First, Epoch 4.0p0 has additional fixes for this problem which
  1299.   presumably will supersede the fix given below.
  1300.   
  1301.   According to Michael Thome (mthome@bbn.com), activating the XFlush
  1302.   code at the end of the CursorToggle routine in 4.0b1's x11term.c seems
  1303.   to fix the problem.  (In other words, '#if 0' on line 737 of x11term.c
  1304.   should be changed to '#if 1'.)
  1305.   
  1306. Z-4: I want Epoch to iconify itself immediately upon starting.  To this
  1307.  end, in my .emacs file I have (epoch::iconify-screen).  But most
  1308.  (~95%) of the time this doesn't work.  How can I make it work all the
  1309.  time?
  1310.   
  1311.   The technical explanation appears to be that the initial Epoch
  1312.   minibuffer and edit screen are unmapped after creation to set some
  1313.   properties for ICCCM purposes and then remapped, and this interferes
  1314.   with the iconification process.
  1315.   
  1316.   One workaround (that may or may not work for you) is to add a sit-for
  1317.   command to your .emacs file right before epoch::iconify-screen; for
  1318.   example:
  1319.   
  1320.     (sit-for 15)
  1321.     (epoch::iconify-screen)
  1322.     
  1323.   [Thanks to Bobby Bodenheimer (bobby@hot.caltech.edu), Simon Kaplan
  1324.   (kaplan@cs.uiuc.edu), and Chris Love (love@cs.uiuc.edu).]
  1325.   
  1326. *                        === CONTRIBUTORS ===
  1327.  
  1328. --> Thanks to the following people for contributing to this FAQ
  1329.     (whether knowingly or not :-) as well as anyone else I may have
  1330.     inadvertently forgotten to list:
  1331.   
  1332.   Bobby Bodenheimer (bobby@hot.caltech.edu)
  1333.   Philippe Bondono (bondono@vnet.ibm.com)
  1334.   Martin Boyer (mboyer@ireq-robot.hydro.qc.ca)
  1335.   Alan Carroll (carroll@cs.uiuc.edu)
  1336.   Nhi Casey (nhi@ariel.aero.org)
  1337.   Dana Chee (dana@thumper.bellcore.com)
  1338.   Alice Chen (alice@innerdoor.austin.ibm.com)
  1339.   Bob Fisher (bob@fisher.depaul.edu)
  1340.   Jerry Graves (jerry@math.ep.utexas.edu)
  1341.   Dev Joneja (dj7@cunixf.cc.columbia.edu)
  1342.   Simon Kaplan (kaplan@cs.uiuc.edu)
  1343.   Tor Lillqvist (tml@tik.vtt.fi)
  1344.   Chris Love (love@cs.uiuc.edu)
  1345.   Simon Marshall (S.Marshall@sequent.cc.hull.ac.uk)
  1346.   Rob McCool (robm@ncsa.uiuc.edu)
  1347.   Michael Thome (mthome@bbn.com)
  1348.   Bob Weiner (rsw@cs.brown.edu)
  1349.   Joe Wells (jbw@bigbird.bu.edu)  
  1350.   
  1351.     Thanks particularly to Jerry Graves for much FAQ work.
  1352.     
  1353.     Thanks also to all the people who have spent time and effort
  1354.     developing Epoch and associated packages.
  1355.  
  1356.     And thanks most especially to Marc Andreessen marca@ncsa.uiuc.edu,
  1357.   the previous maintainer of this FAQ, who has gone on to greater
  1358.   glory, working directly with the epoch team.
  1359.  
  1360. ----------------------------------------------------------------------
  1361.  
  1362.  
  1363. Brook Conner        | Klacktoveedsedstene
  1364. Brown Computer Graphics    | Fortune sez: Brook's Law -- Adding manpower to a late
  1365. dbc@cs.brown.edu         |      software project makes it later
  1366. uunet!brunix!dbc dbc@browncs.bitnet   Box 1910 Brown U Prov RI 02912
  1367.