home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / GNU / emacs.inst / emacs19.idb / usr / gnu / info / elisp-31.z / elisp-31
Encoding:
GNU Info File  |  1994-08-02  |  19.2 KB  |  519 lines

  1. This is Info file elisp, produced by Makeinfo-1.55 from the input file
  2. elisp.texi.
  3.  
  4.    This version is newer than the second printed edition of the GNU
  5. Emacs Lisp Reference Manual.  It corresponds to Emacs Version 19.19.
  6.  
  7.    Published by the Free Software Foundation 675 Massachusetts Avenue
  8. Cambridge, MA 02139 USA
  9.  
  10.    Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
  11.  
  12.    Permission is granted to make and distribute verbatim copies of this
  13. manual provided the copyright notice and this permission notice are
  14. preserved on all copies.
  15.  
  16.    Permission is granted to copy and distribute modified versions of
  17. this manual under the conditions for verbatim copying, provided that
  18. the entire resulting derived work is distributed under the terms of a
  19. permission notice identical to this one.
  20.  
  21.    Permission is granted to copy and distribute translations of this
  22. manual into another language, under the above conditions for modified
  23. versions, except that this permission notice may be stated in a
  24. translation approved by the Foundation.
  25.  
  26.    Permission is granted to copy and distribute modified versions of
  27. this manual under the conditions for verbatim copying, provided also
  28. that the section entitled "GNU Emacs General Public License" is included
  29. exactly as in the original, and provided that the entire resulting
  30. derived work is distributed under the terms of a permission notice
  31. identical to this one.
  32.  
  33.    Permission is granted to copy and distribute translations of this
  34. manual into another language, under the above conditions for modified
  35. versions, except that the section entitled "GNU Emacs General Public
  36. License" may be included in a translation approved by the Free Software
  37. Foundation instead of in the original English.
  38.  
  39. 
  40. File: elisp,  Node: Antinews,  Next: Index,  Prev: Standard Hooks,  Up: Top
  41.  
  42. Emacs 18 Antinews
  43. *****************
  44.  
  45.    For those users who live backwards in time, here is information about
  46. downgrading to Emacs version 18.  We hope you will enjoy the greater
  47. simplicity that results from the absence of many Emacs 19 features.
  48.  
  49. Old Features in the Lisp Language
  50. =================================
  51.  
  52.    The following functions are missing or different in Emacs version 18.
  53.  
  54.    * The functions `delete', `member', `indirect-function',
  55.      `map-y-or-n-p', and `invocation-name' have been removed.
  56.  
  57.    * The function `read' now skips a terminator character that
  58.      terminates a symbol when reading from a buffer.  Thus, if you use
  59.      `read' on a buffer containing `foo(bar)' following point, it
  60.      returns `foo' and leaves point after the open-parenthesis.  This
  61.      means there's no way you can properly read the list `(bar)', but
  62.      that's the way the cookie crumbles.
  63.  
  64.      Because of this simplification, it's no longer necessary for an
  65.      input stream function to accept an optional argument.  In Emacs
  66.      18, an input stream is always called with no arguments, and should
  67.      always return the next character of input.
  68.  
  69.    * The function `documentation' takes just one argument;
  70.      `documentation-property' takes just two.
  71.  
  72.    * `random' no longer has the optional argument N.
  73.  
  74.    * You can no longer arrange to run a hook if a particular Lisp
  75.      library is loaded.  The variable `after-load-alist' and the
  76.      function `eval-after-load' have been removed.
  77.  
  78.    * The function `autoload' no longer supports autoloading a keymap.
  79.  
  80.    * "Magic" comments of the form `;;;###autoload' are now just
  81.      comments.  They don't do anything in particular except look pretty.
  82.      If you want a function to be autoloaded by default, edit
  83.      `loaddefs.h' by hand.  What do you think editors are for?
  84.  
  85.    * We took out the `%S' from the `format' function, and the optional
  86.      argument NOESCAP from `prin1-to-string'.  We removed the
  87.      `print-level' variable.
  88.  
  89. Compilation Features
  90. ====================
  91.  
  92.    * Inline functions are nonexistent in Emacs 18.  We find they make
  93.      the calling function unnecessarily large.  (Small size is one of
  94.      the features of Emacs 18.)
  95.  
  96.    * We eliminated the two special forms, `eval-when-compile' and
  97.      `eval-and-compile', as well as the `compile-defun' command.
  98.  
  99.    * When you load a Lisp file or library, you will no longer receive a
  100.      warning if the directory contains both a `.elc' file and a new
  101.      `.el' file that is newer.  So be on your toes.
  102.  
  103.    * We removed the special data type for byte-code functions.  Compiled
  104.      functions now work by means of an interpreted function which calls
  105.      the function `bytecode'.  That function runs the byte code
  106.      interpreter.
  107.  
  108. Floating Point Numbers
  109. ======================
  110.  
  111.    Emacs 18 doesn't have or need floating point arithmetic built in.
  112. It has a handy Lisp program that allows you to emulate floating point.
  113. You'll have to write programs specially to use it, though.
  114.  
  115.    As a result, certain macros, functions, and predicates no longer
  116. handle specifications for floating point numbers.
  117.  
  118.    The function `string-to-number', the predicate `floatp', and the
  119. variable `float-output-format' have all been eliminated.
  120.  
  121.    The functions `float', `truncate', `floor', `ceil', `round', and
  122. `logb' do not exist; neither do the functions `abs', `cos', `sin',
  123. `tan', `acos', `asin', `atan', `exp', `expt', `log10', `log', or `sqrt'.
  124.  
  125.    The `format' function no longer handles the specifications `%e',
  126. `%f' and `%g' for printing floating point numbers; likewise for
  127. `message'.
  128.  
  129. Changes in Basic Editing Functions
  130. ==================================
  131.  
  132.    * `kill-new' and `kill-append', the primitives for putting text in
  133.      the kill ring, have been eliminated.
  134.  
  135.    * The variables `interprogram-paste-function' and
  136.      `interprogram-cut-function' have been removed in Emacs 18.
  137.  
  138.      In addition, there's no need for `mark-active' and
  139.      `deactivate-mark' because there is no Transient Mark mode.  We also
  140.      removed the hooks `activate-mark-hook' and `deactivate-mark-hook'.
  141.  
  142.    * The `kill-region' function can no longer be used in read-only
  143.      buffers.  The `compare-buffer-substrings' and `current-kill'
  144.      functions have been removed.
  145.  
  146.    * The variable `overwrite-mode-binary' has been removed.
  147.  
  148.    * The function `move-to-column' allows just one argument, COLUMN.
  149.  
  150.    * The search functions now just return `t' when successful.  This
  151.      affects the functions `search-forward', `search-backward',
  152.      `word-search-forward', `word-search-backward',
  153.      `re-search-forward', and `re-search-backward'.
  154.  
  155.    * When you do regular expression searching or matching, there is a
  156.      fixed limit of ten `\(...\)' pairs that you can get information
  157.      about with `match-beginning' and `match-end'.  Moreover,
  158.      `save-match-data' does not exist; you must use an explicit
  159.      `unwind-protect' to save the match data.
  160.  
  161.    * `translate-region' is gone.
  162.  
  163.    * The variables `before-change-function', `after-change-function',
  164.      and `first-change-hook' have been eliminated.
  165.  
  166.    * The second argument to `insert-abbrev-table-description' is no
  167.      longer optional.
  168.  
  169. Text Properties
  170. ===============
  171.  
  172.    We eliminated text properties.
  173.  
  174. Features for Files
  175. ==================
  176.  
  177.    Many file-related functions have been eliminated or simplified.
  178. Here is a basic listing of these functions.
  179.  
  180.    The functions `file-accessible-directory-p', `file-truename',
  181. `make-directory', `delete-directory', `set-visited-file-modtime',
  182. `directory-abbrev-alist', `abbreviate-file-name', `write-region',
  183. `write-contents-hooks', `after-save-hook', `set-default-file-modes',
  184. `default-file-modes', and `unix-sync' have been eliminated.
  185.  
  186.    We got rid of the "initial file name" argument to `read-file-name'.
  187.  
  188.    Additionally, we removed the 12th element from the list returned by
  189. `file-attributes'.
  190.  
  191.    `directory-files' always sorts the list of files.  It's not user
  192. friendly to process the files in any haphazard order.
  193.  
  194.    We eliminated the variables `write-contents-hooks' and
  195. `local-write-file-hooks'.
  196.  
  197. Making Certain File Names "Magic"
  198. =================================
  199.  
  200.    There are no more magic filenames.  Sorry, but all the mana has been
  201. used up.
  202.  
  203. Frames
  204. ======
  205.  
  206.    There is only one frame in Emacs 18, so all of the frame functions
  207. have been eliminated.
  208.  
  209. X Window System Features
  210. ========================
  211.  
  212.    We have simplified the way emacs and X interact by removing a great
  213. deal of creeping featurism.
  214.  
  215.    * The functions `mouse-position' and `set-mouse-position', and the
  216.      special form `track-mouse' have been eliminated.
  217.  
  218.    * Likewise, the functions `x-set-selection', `x-set-cut-buffer',
  219.      `x-close-current-connection', and `x-open-connection' have all
  220.      been removed from Emacs Lisp 18.
  221.  
  222.    * We removed a series of functions that gave information about the X
  223.      server and the screen you were using; after all, the whole point
  224.      of X is that all servers are equivalent.  The names of the removed
  225.      functions are: `x-display-screens', `x-server-version',
  226.      `x-server-vendor', `x-display-pixel-height',
  227.      `x-display-mm-height', `x-display-pixel-width',
  228.      `x-display-mm-width', `x-display-backing-store',
  229.      `x-display-save-under', `x-display-planes',
  230.      `x-display-visual-class', `x-display-color-p', and
  231.      `x-display-color-cells'.
  232.  
  233.      Additionally, we removed the variable `x-no-window-manager' and the
  234.      functions `x-synchronize' and `x-get-resource'.
  235.  
  236.      We didn't abolish `x-display-color-p', but we renamed it to
  237.      `x-color-display-p'.  We did abolish `x-color-defined-p'.
  238.  
  239.    * `x-popup-menu' no longer accepts a keymap for its first argument.
  240.  
  241.    * We removed both the function `x-rebind-key' and the related
  242.      function `x-rebind-keys'.
  243.  
  244.    * We abolished `x-parse-geometry'.
  245.  
  246. Window Actions that Were No Longer Useful
  247. =========================================
  248.  
  249.    Various behaviors of windows in Emacs 19 were obsolete by the time
  250. Emacs 18 was due to come out.  We have removed them.  These changes are
  251. listed below.
  252.  
  253.    * We removed the functions `window-at', `window-minibuffer-p',
  254.      `set-window-dedicated-p', `coordinates-in-window-p',
  255.      `walk-windows', `window-dedicated-p', and `window-end'.
  256.  
  257.    * We removed the variables `pop-up-frames', `pop-up-frame-function',
  258.      `display-buffer-function', and `other-window-scroll-buffer'.
  259.  
  260.    * The function `minibuffer-window' no longer accepts a frame as
  261.      argument, since frames as objects do not exist in Emacs version
  262.      18.  It returns the window used for minibuffers.
  263.  
  264.    * The functions `next-window' and `previous-window' no longer accept
  265.      the ALL-FRAMES argument since there is just one frame.
  266.  
  267.    * The functions `get-lru-window', `get-largest-window',
  268.      `get-buffer-window', and `get-buffer-window' also no longer take
  269.      the optional argument ALL-FRAMES because there is just one frame
  270.      to search.
  271.  
  272. Display Features
  273. ================
  274.  
  275.    * There are no overlays, and no faces.
  276.  
  277.    * We eliminated the mode line spec `%l' that in later versions used
  278.      to display the current line number.  We removed the variables
  279.      `line-number-mode' and `line-number-display-limit'.
  280.  
  281.    * `baud-rate' is now a function rather than a variable.
  282.  
  283.    * You can no longer call `message' with `nil' as the only argument;
  284.      therefore, you can not reliably make the contents of the
  285.      minibuffer visible.
  286.  
  287.    * The variable `temp-buffer-show-function' has been renamed
  288.      `temp-buffer-show-hook'.
  289.  
  290.    * We removed the function `force-mode-line-update'.  Use the
  291.      following idiom instead:
  292.  
  293.           (set-buffer-modified-p (buffer-modified-p))
  294.  
  295.    * Display tables no longer exist.  We know what the ASCII characters
  296.      should look like, and we made them look that way.
  297.  
  298. Working with Input Events
  299. =========================
  300.  
  301.    The big news about input events is that we got rid of function key
  302. and mouse events.  Now the only input events are characters.  What's
  303. more, these characters now have to be in the range of 0 to 127,
  304. optionally with a meta bit.  This makes for big simplifications.
  305.  
  306.    * Functions like `define-key', `global-set-key',
  307.      `read-key-sequence', and `local-set-key' used to accept strings or
  308.      vectors in Emacs 19; now they only accept strings.
  309.  
  310.    * The documentation functions (`single-key-description',
  311.      `key-description', etc.) also no longer accept vectors, but they do
  312.      accept strings.
  313.  
  314.    * We removed the `read-event', `event-start', `posn-window',
  315.      `posn-point', `posn-col-row', `posn-timestamp',
  316.      `scroll-bar-scale', and `event-end' functions, since they were
  317.      only useful for non-character events.
  318.  
  319.    * We removed the `unread-command-events' and `last-event-frame'
  320.      variables.
  321.  
  322.    * The functions `this-command-keys' and `recent-keys' now always
  323.      return a string.  Likewise, a keyboard macro's definition can only
  324.      be a string, not a vector.
  325.  
  326.    * We eliminated `e' as an interactive specification since it was
  327.      useful only with non-character events.
  328.  
  329.    * In Emacs 18, we represent Meta characters as character objects
  330.      with the same encoding used in strings: 128 plus the corresponding
  331.      non-Meta ASCII character.
  332.  
  333. Menus
  334. =====
  335.  
  336.    You can no longer define menus as keymaps; good system design
  337. requires crafting a special-purpose interface for each facility, so it
  338. can precisely fit the requirements of that facility.  We decided that
  339. unifying keymaps and menus was simply too much of a strain.
  340.  
  341.    In Emacs 18, you can only activate menus with the mouse.  Using them
  342. with a keyboard was too confusing for too many users.
  343.  
  344.    Emacs 18 has no menu bars.  All functions and variables related to
  345. the menu bar have been eliminated.
  346.  
  347. Changes in Minibuffer Features
  348. ==============================
  349.  
  350.    The minibuffer history feature has been eliminated.  Thus, we removed
  351. the optional argument HIST from the minibuffer input functions
  352. `read-from-minibuffer' and `completing-read'.
  353.  
  354.    The INITIAL argument to `read-from-minibuffer' and other minibuffer
  355. input functions can no longer be a cons cell `(STRING . POSITION)'.
  356.  
  357.    In the function `read-no-blanks-input', the INITIAL argument is no
  358. longer optional.
  359.  
  360. New Features for Defining Commands
  361. ==================================
  362.  
  363.    * The special meaning of `@' in an interactive specification has
  364.      been eliminated.
  365.  
  366.    * Emacs 18 does not support use of format-style `%'-sequences in the
  367.      prompt strings in interactive specifications.
  368.  
  369.    * The property `enable-recursive-minibuffers' no longer has any
  370.      special meaning.
  371.  
  372. Removed Features for Reading Input
  373. ==================================
  374.  
  375.    We removed the third argument (META) from the function
  376. `set-input-mode'.  Consequently, we added the variable `meta-flag'; set
  377. it to `t' to enable use of a Meta key, and to `nil' to disable it.
  378. (Those are the only two alternatives.)
  379.  
  380.    We also removed the variable `extra-keyboard-modifiers'.
  381.  
  382.    We removed the function `keyboard-translate' and the variables
  383. `num-input-keys' and `function-key-map'.
  384.  
  385. Removed Syntax Table Features
  386. =============================
  387.  
  388.    * We eliminated the functions `skip-syntax-forward',
  389.      `skip-syntax-backward', `forward-comment'.
  390.  
  391.    * We removed the syntax flag for "prefix syntax" and the flag for the
  392.      alternate comment style.  Emacs 18 supports only one style of
  393.      comment in any given syntax table.
  394.  
  395.    * We abolished the variable `words-include-escapes'.
  396.  
  397. The Case Table
  398. ==============
  399.  
  400.    Case tables do not exist in Emacs 18.  Due to this change, we have
  401. removed the associated functions `set-standard-case-table',
  402. `standard-case-table', `current-case-table', `set-case-table', and
  403. `set-case-syntax-pair'.
  404.  
  405. Features for Dealing with Buffers
  406. =================================
  407.  
  408.    * We eliminated several functions for dealing with buffers:
  409.      `buffer-modified-tick' and `generate-new-buffer-name'.
  410.  
  411.    * We renamed `buffer-disable-undo' to `buffer-flush-undo'--a more
  412.      picturesque name, you will agree.
  413.  
  414.    * The function `other-buffer' takes just one argument in Emacs 18.
  415.  
  416.    * The function `rename-buffer' now requires you to specify precisely
  417.      the new name you want.
  418.  
  419.    * We removed the local variable `list-buffers-directory'.
  420.  
  421.    * We got rid of the hook `kill-buffer-hook'.
  422.  
  423. Local Variables Features
  424. ========================
  425.  
  426.    * The function `kill-all-local-variables' always eliminates all
  427.      buffer-local variables of the current buffer.  No more exceptions.
  428.  
  429.    * Making a variable buffer-local when it is void now sets it to
  430.      `nil'.
  431.  
  432.    * We eliminated the functions `default-boundp', because it is no
  433.      longer possible for the default binding of a variable to be void.
  434.  
  435.    * The special forms `defconst' and `defvar' now set the variable's
  436.      local value rather than its default value when the variable is
  437.      local in the current buffer.
  438.  
  439. Features for Subprocesses
  440. =========================
  441.  
  442.    `call-process' and `call-process-region' no longer indicate the
  443. termination status of the subprocess.  We call on users to have faith
  444. that the subprocess executed properly.
  445.  
  446.    * The standard asynchronous subprocess features do not work on VMS;
  447.      instead, special VMS asynchronous subprocess functions have been
  448.      added.  Since they are only for VMS, we can't be bothered
  449.      documenting them; sorry.  Use the source, Luke!
  450.  
  451.    * The function `signal-process' has been removed.
  452.  
  453.    * We eliminated the transaction queue feature, and the associated
  454.      functions `tq-create', `tq-enqueue', and `tq-close'.
  455.  
  456. Dealing with Times And Time Delays
  457. ==================================
  458.  
  459.    * We removed the functions `current-time', `current-time-zone',
  460.      `run-at-time', and `cancel-timer'.
  461.  
  462.    * The function `current-time-string' no longer accepts any optional
  463.      arguments.
  464.  
  465.    * The functions `sit-for' and `sleep-for' no longer allow an
  466.      optional argument to let you specify the time period in
  467.      milliseconds; just in seconds.  Additionally, we took out the
  468.      optional third argument NODISP from `sit-for'.
  469.  
  470.    * We removed the optional second and third arguments from the
  471.      `accept-process-output' function.  It accepts just one argument,
  472.      the process.
  473.  
  474. Features not Available for Lisp Debuggers
  475. =========================================
  476.  
  477.    * In Emacs 18, you can no longer specify to invoke the Lisp debugger
  478.      only upon encountering certain types of errors.  Any non-`nil'
  479.      value for the variable `debug-on-error' says to invoke the
  480.      debugger for any error whatever.
  481.  
  482.    * We removed the variable `command-debug-status' and the function
  483.      `backtrace-frame'.
  484.  
  485. Memory Allocation Changes
  486. =========================
  487.  
  488.    We removed the function `memory-limit'.
  489.  
  490.    The list returned by `garbage-collect' no longer contains an element
  491. to describe floating point numbers, since there aren't any floating
  492. point numbers in Emacs 18.
  493.  
  494. Hook Changes
  495. ============
  496.  
  497.    * We removed the hooks `pre-abbrev-expand-hook', `pre-command-hook',
  498.      `post-command-hook', and `auto-save-hook'.
  499.  
  500.    * We removed the variable
  501.      `revert-buffer-insert-file-contents-function'.
  502.  
  503.    * We also removed the new function `add-hook'; you will have to set
  504.      your hooks by hand.  If you want to get really into the swing of
  505.      things, set your hook variables the archaic way: store just one
  506.      function rather than a list of functions.  But that is optional.
  507.  
  508.    * The variable `lisp-indent-hook' has been renamed to
  509.      `lisp-indent-function'.
  510.  
  511.    * The variable `auto-fill-function' has been renamed to
  512.      `auto-fill-hook'.
  513.  
  514.    * The `blink-paren-function' has been renamed to `blink-paren-hook'.
  515.  
  516.    * The variable `temp-buffer-show-function' has been renamed to
  517.      `temp-buffer-show-hook'.
  518.  
  519.