没有合适的资源?快使用搜索试试~ 我知道了~
elisp.pdf

温馨提示
GNU Emacs Lisp Reference Manual.pdf
资源推荐
资源详情
资源评论


















GNU Emacs Lisp Reference Manual
For Emacs Version 24.1
Revision 3.1, May 2012
by Bil Lewis, Dan LaLiberte, Richard Stallman,
the GNU Manual Group, et al.

This is edition 3.1 of the GNU Emacs Lisp Reference Manual,
corresponding to Emacs version 24.1.
Copyright
c
1990-1996, 1998-2012 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document under
the terms of the GNU Free Documentation License, Version 1.3 or any later
version published by the Free Software Foundation; with the Invariant Sections
being “GNU General Public License,” with the Front-Cover texts being “A
GNU Manual,” and with the Back-Cover Texts as in (a) below. A copy of the
license is included in the section entitled “GNU Free Documentation License.”
(a) The FSF’s Back-Cover Text is: “You have the freedom to copy and modify
this GNU manual. Buying copies from the FSF supports it in developing GNU
and promoting software freedom.”
Published by the Free Software Foundation
51 Franklin St, Fifth Floor
Boston, MA 02110-1301
USA
ISBN 1-882114-74-4
Cover art by Etienne Suvasa.

i
Short Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Lisp Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
4 Strings and Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5 Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
6 Sequences, Arrays, and Vectors . . . . . . . . . . . . . . . . . . . . . . . . . 86
7 Hash Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
8 Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9 Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
10 Control Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
11 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
12 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
13 Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
14 Customization Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
15 Loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
16 Byte Compilation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
17 Advising Emacs Lisp Functions . . . . . . . . . . . . . . . . . . . . . . . . 232
18 Debugging Lisp Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
19 Reading and Printing Lisp Objects . . . . . . . . . . . . . . . . . . . . . 273
20 Minibuffers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
21 Command Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
22 Keymaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
23 Major and Minor Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
24 Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
25 Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
26 Backups and Auto-Saving . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501
27 Buffers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511
28 Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
29 Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576
30 Positions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
31 Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 622
32 Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
33 Non-ASCII Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 692
34 Searching and Matching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719
35 Syntax Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744

ii
36 Abbrevs and Abbrev Expansion . . . . . . . . . . . . . . . . . . . . . . . . 760
37 Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767
38 Emacs Display. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809
39 Operating System Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 896
40 Preparing Lisp code for distribution . . . . . . . . . . . . . . . . . . . . 928
A Emacs 23 Antinews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 933
B GNU Free Documentation License . . . . . . . . . . . . . . . . . . . . . . 935
C GNU General Public License . . . . . . . . . . . . . . . . . . . . . . . . . . 943
D Tips and Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954
E GNU Emacs Internals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 967
F Standard Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 987
G Standard Keymaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 991
H Standard Hooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 994
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 998

iii
Table of Contents
1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Caveats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Lisp History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.1 Some Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.2 nil and t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.3 Evaluation Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.4 Printing Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.5 Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.6 Buffer Text Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3.7 Format of Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3.7.1 A Sample Function Description . . . . . . . . . . . . . . . . . . . . . . . 4
1.3.7.2 A Sample Variable Description. . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 Version Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.5 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2 Lisp Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1 Printed Representation and Read Syntax . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3 Programming Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3.1 Integer Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3.2 Floating Point Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.3 Character Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.3.1 Basic Char Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.3.2 General Escape Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3.3.3 Control-Character Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3.3.4 Meta-Character Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3.3.5 Other Character Modifier Bits . . . . . . . . . . . . . . . . . . . . . . . 13
2.3.4 Symbol Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3.5 Sequence Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.3.6 Cons Cell and List Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.3.6.1 Drawing Lists as Box Diagrams . . . . . . . . . . . . . . . . . . . . . . 15
2.3.6.2 Dotted Pair Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.3.6.3 Association List Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.3.7 Array Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.8 String Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.8.1 Syntax for Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.8.2 Non-ASCII Characters in Strings. . . . . . . . . . . . . . . . . . . . . 19
2.3.8.3 Nonprinting Characters in Strings . . . . . . . . . . . . . . . . . . . 19
2.3.8.4 Text Properties in Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.3.9 Vector Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.3.10 Char-Table Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.3.11 Bool-Vector Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
剩余1059页未读,继续阅读
资源评论

- jervischan2014-06-26资料是不错,就是英文版,比较难啃


孔令飞
- 粉丝: 642
- 资源: 149
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 管家婆辉煌食品版TOP+13.11.zip
- 管家婆辉煌食品版TOP+13.02.zip
- 基于PSM算法的超声无损检测:Comsol模型参数化扫描与一键运行实践,基于PSM算法的超声无损检测:Comsol模型参数化扫描与一键运行实践,超声无损检测合成孔径PSM算法、对应comsol模型,效
- 管家婆辉煌食品版TOP12.9.zip
- gradle-7.6-bin.zip
- BTT与STT导弹六自由度Simulink完整模型及优化方案:涵盖总体设计与各模块数学模型,BTT与STT导弹六自由度Simulink完整模型及优化方案:涵盖总体设计与各模块数学模型,BTT导弹六自由
- 二阶多智能体系统固定时间一致性的优化策略,基于复杂网络的二阶多智能体系统在固定时间达成一致性的算法研究,二阶多智能体系统固定时间一致性 ,二阶多智能体系统; 固定时间一致性; 算法设计; 控制系统;
- 电力电子技术中基于新型变换器的动态电压恢复器(DVR)及其智能控制方法的模拟实现(论文复现含代码及详细说明)
- 异步电机控制:有速度传感器矢量控制算法的C代码与Simulink仿真模型实践,异步电机仿真控制:有速度传感器的矢量控制算法C代码及双闭环解耦Simulink仿真模型,异步电机有速度传感器矢量控制算法的
- 三相SVPWM整流器仿真与双闭环PI控制:电压外环与电流内环的讲解,输出电压调节至700V,单位功率因数运行及负载实验详解 ,三相SVPWM整流器仿真讲解:双闭环PI控制实现单位功率因数运行与负载实验
- 全耦合XFEM水力压裂程序:基于MATLAB的粘聚单元法与CZM(cohesive zone model)应用研究,基于全耦合XFEM的水力压裂模拟程序-通过Matlab实现粘聚单元法与CZM(co
- 无界鼠标,可以让两台电脑公用一套键鼠的小软件
- 河水溶解氧预测数据集,用于机器学习和预测应用
- MATLAB下的飞轮储能系统:三种控制模式下的充放电模型及无源与正负序分离PI策略构建,MATLAB环境下的飞轮储能充放电模型构建:控制模式详解及正负序分离PI策略研究,基于MATLAB搭建的飞轮储能
- VAR模型及拓展:从基础到前沿的时序分析方法研究与应用进展,基于VAR模型及拓展技术的深入解析与运用:包含TVP-VAR及各类VAR拓展模型的探究与应用,VAR模型及拓展 1.标准VAR模型:平稳性检
- 基于RS2指令的通讯例程:远程控制与设备互联的编程实践手册,3u RS2指令与打印机通信应用,全方位电脑远程协助与学习资料 附注:涉及外设通信和机器控制应用解决方案 ,3u 采用RS2指令与打印机通
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
