⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ccadiff

📁 早期freebsd实现
💻
字号:
Differences between GNU Emacs and CCA Emacs.Copyright (c) 1985 Richard M. Stallman   Permission is granted to anyone to make or distribute verbatim copies   of this document as received, in any medium, provided that the   copyright notice and permission notice are preserved,   and that the distributor grants the recipient permission   for further redistribution as permitted by this notice.* GNU Emacs Lisp vs CCA Elisp.GNU Emacs Lisp does not have a distinction between Lisp functionsand Emacs functions, or between Lisp variables and Emacs variables.The Lisp and the editor are integrated.  A Lisp function definedwith defun is callable as an editor command if you put aninteractive calling spec in it; for example,   (defun forward-character (n)    (interactive "p")    (goto-char (+ (point) n)))defines a function of one argument that moves point forward bya specified number of characters.  Programs could call this function,as in (forward-character 6), or it could be assigned to a key,in which case the "p" says to pass the prefix numeric arg asthe function's argument.  As a result of this feature, you oftenneed not have two different functions, one to be called by programsand another to read arguments from the user conveniently; the samefunction can do both.CCA Elisp tries to be a subset of Common Lisp and tries tohave as many Common Lisp functions as possible (though it is stillonly a small fraction of full Common Lisp).  GNU Emacs Lispis somewhat similar to Common Lisp just because of my Maclispand Lisp Machine background, but it has several distinct incompatibilitiesin both syntax and semantics.  Also, I have not attempted toprovide many Common Lisp functions that you could write in Lisp,or others that provide no new capability in the circumstances.GNU Emacs Lisp does not have packages, readtables, or character objects(it uses integers to represent characters).On the other hand, windows, buffers, relocatable markers and processesare first class objects in GNU Emacs Lisp.  You can get information about themand do things to them in a Lispy fashion.  Not so in CCA Emacs.In GNU Emacs Lisp, you cannot open a file and read or write charactersor Lisp objects from it.  This feature is painful to support, andis not fundamentally necessary in an Emacs, because instead youcan read the file into a buffer, read or write characters orLisp objects in the buffer, and then write the buffer into the file.On the other hand, GNU Emacs Lisp does allow you to rename, delete, addnames to, and copy files; also to find out whether a file is adirectory, whether it is a symbolic link and to what name, whetheryou can read it or write it, find out its directory component,expand a relative pathname, find completions of a file name, etc.,which you cannot do in CCA Elisp.GNU Emacs Lisp uses dynamic scope exclusively.  This enables you tobind variables which affect the execution of the editor, such asindent-tabs-mode.GNU Emacs Lisp code is normally compiled into byte code.  Most of thestandard editing commands are written in Lisp, and many aredumped, pure, in the Emacs that users normally run.GNU Emacs allows you to interrupt a runaway Lisp program withControl-g.* GNU Emacs Editing AdvantagesGNU Emacs is faster for many things, especially insertion of textand file I/O.GNU Emacs allows you to undo more than just the last commandwith the undo command (C-x u, or C-_).  You can undo quite a ways back.Undo information is separate for each buffer; changes in one bufferdo not affect your ability to undo in another buffer.GNU Emacs commands that want to display some output do so by puttingit in a buffer and displaying that buffer in a window.  Thistechnique comes from Gosling Emacs.  It has both advantages anddisadvantages when compared with the technique, copied by CCA Emacsfrom my original Emacs which inherited it from TECO, of having "typeout" which appears on top of the text in the current window butdisappears automatically at the next input character.GNU Emacs does not use the concept of "subsystems".  Instead, it useshighly specialized major modes.  For example, dired in GNU Emacs hasthe same commands as dired does in other versions of Emacs, give ortake a few, but it is a major mode, not a subsystem.  The advantageof this is that you do not have to "exit" from dired and lose thestate of dired in order to edit files again.  You can simply switchto another buffer, and switch back to the dired buffer later.  Youcan also have several dired buffers, looking at different directories.It is still possible to write a subsystem--your own command loop--in GNU Emacs, but it is not recommended, since writing a major modefor a special buffer is better.Recursive edits are also rarely used, for the same reason: it is betterto make a new buffer and put it in a special major mode.  Sendingmail is done this way.GNU Emacs expects everyone to use find-file (C-x C-f) for readingin files; its C-x C-v command kills the current buffer and then findsthe specified file.As a result, users do not need to think about the complexitiesof subsystems, recursive edits, and various ways to read in filesor what to do if a buffer contains changes to some other file.GNU Emacs uses its own format of tag table, made by the "etags"program.  This format makes finding a tag much faster.Dissociated Press is supported.* GNU Emacs Editing Disadvantages.GNU Emacs does not display the location of the mark.GNU Emacs does not have a concept of numbers of buffers,or a permanent ordering of buffers, or searching through multiplebuffers.  The tags-search command provides a way to searchthrough several buffers automatically.GNU Emacs does not provide commands to visit files withoutsetting the buffer's default directory.  Users can write suchcommands in Lisp by copying the code of the standard filevisiting commands and modifying them.GNU Emacs does not support "plus options" in the commandarguments or in buffer-selection commands, except for line numbers.GNU Emacs does not support encryption.  Down with security!GNU Emacs does not support replaying keystroke files,and does not normally write keystroke files.* Neutral DifferencesGNU Emacs uses TAB, not ESC, to complete file names, buffer names,command names, etc.GNU Emacs uses ESC to terminate searches, instead ofthe C-d uses by CCA Emacs.  (Actually, this character is controlledby a parameter in GNU Emacs.)  C-M-s in GNU Emacs is an interactiveregular expression search, but you can get to a noninteractiveone by typing ESC right after the C-M-s.In GNU Emacs, C-x s asks, for each modified file buffer, whetherto save it.GNU Emacs indicates line continuation with "\" and linetruncation (at either margin) with "$".The command to resume a tags-search or tags-query-replace inGNU Emacs is Meta-Comma.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -