Emacs的现代化 [英] The Modernization of Emacs

查看:55
本文介绍了Emacs的现代化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[这篇文章摘录自

Emacs的现代化,Xah Lee,2006-04 at
http://xahlee.org/emacs/modernization.html

]


Emacs的现代化


-------------------------------- --------

问题


Emacs是一位出色的编辑。它可能是功能最强大,最优秀的b $ b多功能文本编辑器。而且,除了文本编辑,它还可用作

电子邮件应用程序,新闻组应用程序,ftp应用程序,irc

应用程序,Web浏览器,shell界面,文件管理
应用程序,可编程计算器,日历和个人信息

管理应用程序,lisp语言系统等等。

这些看似疯狂的功能每天都在生产中使用

由世界各地的大量程序员提供。有人打电话给作为操作系统的
emacs作为笑话。 (从技术上讲,它不符合
的资格,因为操作系统意味着管理硬件。)。

如果emacs是如此强大的文本编辑器,为什么几乎没有人

知道吗?绝大多数需要写作的人比使用emacs以外的编辑器更乐意花费b / b
。询问Microsoft Windows

用户。她会非常乐意使用Microsoft Worda ??如果他没有b $ b有MS Word,他会用NotePada吗?还是WordPada ??如果他是一名程序员,那么大多数人都非常乐意在Windows平台或任何集成开发上使用任何其他图形编辑器

environmenta ??。在其他操作系统上也是如此,并且新编辑

即使他们没有像emacs那样拥有那么多的力量或者b
灵活性,也会出现在这里。例如,有NEdit,JEdit,Eclipse,

Xcodea ??或者与语言或第三方相关的各种语言或者语言软件,例如Visual Basic或Borland C ++。


很多理由可以用来做。例如,emacs不是在Windows或Mac等流行的操作系统上捆绑的,而是全球约99%的计算机用户使用的
。 Windows和Mac都支持简单的文本编辑器,这些编辑器将满足大多数非bb b计算机用户,这些用户是非专业的计算机用户。 (NotePad

和Windows上的写字板,Mac上的TextEdita ??)对于少数专业的b
计算机用户来说,大多数都需要一个易于使用但功能强大的产品。 >
编辑器也可以设置样式文本,格式和各种光源

发布需求,如表格布局,简单的线条图形绘制,

嵌入图像,数学公式。他们将根据自己的需要选择并采用Microsoft

Word。可能对

emacs感兴趣的微小百分比是程序员。即使在专业的程序员中,大多数人都会对emacs感到害羞。


不使用或喜欢emacs的程序员遇到的主要困难是

emacs的用户界面相当深奥,涉及奥术

术语和击键。这与今天使用的数千种软件应用程序形成鲜明对比,其中用户界面与今天的计算机用户相似且熟悉。


----------------------------------------

共同用户界面


以下内容摘自维基百科关于普通用户的文章

Accessa ??:


CUA是一个详细的规范,并设置了关于

应用程序外观和功能的严格规定。它的目的部分是带来关于MS-DOS应用程序之间和谐的

,直到那时才实现完全不同的用户界面




示例:


*在WordPerfect中,打开文件的命令是[F7],[3]。


* In Lotus 1-2-3,用[/]打开文件(打开菜单),

[W](用于工作区),[R](用于检索)。


*在Microsoft Word中,用[Esc]打开文件(打开

菜单),[T](用于转移),[L](用于加载) )。


*在WordStar中,它是[Ctrl] + [K] + [O]。


*在Emacs中,一个文件用[Ctrl] + [x]然后按[Ctrl] +

[f](查找文件)打开。


某些程序使用[ Esc]取消动作,有人用它来完成

一个; WordPerfect用它来重复一个字符。有些程序使用了

[结束]去一行的结尾,有的用它来完成填写

的表格。 [F1]经常有帮助,但在WordPerfect中是[F3]。 [Ins]

有时会在改写和插入字符之间切换,但有些

程序用它来做贴纸??


因此,每个程序都必须单独学习,并且记忆完整的

用户界面。由于面向新的

计划的新手用户会发现他们对类似应用程序的现有知识,因此了解了许多应用程序的用户界面,这是一种专业知识的标志。绝对没有任何用处。


-------------------------- --------------

简单的更改


在下文中,我描述了一些非常

易于修复emacs。如果emacs正式采用这些更改,我认为

它会让很多人,至少是程序员,比如emacs,并选择

emacs作为他们的文本编辑器。


*更改Copy&的键盘快捷键粘贴到ctrl-c和ctrl-

v与所有现代应用程序相同。


*更改撤消行为,以便有撤消和重做,因为

与所有现代应用程序相同。


*摆脱* scratch *缓冲区。


*更改?? killa的术语?一个?? cuta ??和一个?? yanka ??

a ?? pastea ??。


*将Meta键的术语更改为Alt。


*使longlines-mode成为任何文件的默认编辑器行为。


emacs现在应该做的事情,即使它最终也会这样做。


*打开HTML文档时,会自动提供HTML,CSS和Javascript代码的突出显示。类似于其他多语言的

文件,如PHP,JSP等。此行为必须是自动的,而不需要

要求用户自定义emacs。


可能的文档更改提议


*减少使用a ?? buffera这个词?在emacs文档中。

称之为打开文件?或者未保存的文档??。


*切换窗口和框架的术语,使其更符合标准的b $ b。也就是说,Emacs是一个?? ?? Windowa ??应该称为窗格或框架。

虽然Emacs是一个?? Framea?应该称为Window。


*将键绑定的术语改为??键盘快捷键?在

emacs文档中。仅在

技术上下文中使用术语键绑定或绑定,例如在elisp文档中。


Xah
xa*@xahlee.org

a ?? http://xahlee.org/

解决方案

为了爱狗,Xah,尽量跟上。 Aquamacs是一个Emacs

发行版,至少有一半,至少在
" classic"之间。 Emacs和现代Mac UI。你听起来很荒谬,好像你在抱怨Windows不是真正的图形,基于

,在95已经存在的时代,对于Windows-386的经验。


6月17日,5:13?* pm,Xah Lee< x ... @ xahlee.orgwrote:


[这篇文章摘录自

Emacs的现代化,Xah Lee,2006-04:http://xahlee.org/emacs/modernization.html

]


Emacs的现代化


------------------------ ----------------

问题


Emacs是一位出色的编辑。它可能是功能最强大,最优秀的b $ b多功能文本编辑器。而且,除了文本编辑,它还可用作

电子邮件应用程序,新闻组应用程序,ftp应用程序,irc

应用程序,Web浏览器,shell界面,文件管理
应用程序,可编程计算器,日历和个人信息

管理应用程序,lisp语言系统等等。

这些看似疯狂的功能每天都在生产中使用

由世界各地的大量程序员提供。有人打电话给作为操作系统的
emacs作为笑话。 (从技术上讲,它不符合
的资格,因为操作系统意味着管理硬件。)。

如果emacs是如此强大的文本编辑器,为什么几乎没有人

知道吗?绝大多数需要写作的人比使用emacs以外的编辑器更乐意花费b / b
。询问Microsoft Windows

用户。她会非常乐意使用Microsoft Worda ??如果他没有b $ b有MS Word,他会用NotePada吗?还是WordPada ??如果他是一名程序员,那么大多数人都非常乐意在Windows平台或任何集成开发上使用任何其他图形编辑器

environmenta ??。在其他操作系统上也是如此,并且新编辑

即使他们没有像emacs那样拥有那么多的力量或者b
灵活性,也会出现在这里。例如,有NEdit,JEdit,Eclipse,

Xcodea ??或者与语言或第三方相关的各种语言或者语言软件,例如Visual Basic或Borland C ++。


很多理由可以用来做。例如,emacs不是在Windows或Mac等流行的操作系统上捆绑的,而是全球约99%的计算机用户使用的
。 Windows和Mac都支持简单的文本编辑器,这些编辑器将满足大多数非bb b计算机用户,这些用户是非专业的计算机用户。 (NotePad

和Windows上的写字板,Mac上的TextEdita ??)对于少数专业的b
计算机用户来说,大多数都需要一个易于使用但功能强大的产品。 >
编辑器也可以设置样式文本,格式和各种光源

发布需求,如表格布局,简单的线条图形绘制,

嵌入图像,数学公式。他们将根据自己的需要选择并采用Microsoft

Word。可能对

emacs感兴趣的微小百分比是程序员。即使在专业的程序员中,大多数人都会对emacs感到害羞。


不使用或喜欢emacs的程序员遇到的主要困难是

emacs的用户界面相当深奥,涉及奥术

术语和击键。这与今天使用的数千种软件应用程序形成鲜明对比,其中用户界面与今天的计算机用户相似且熟悉。


----------------------------------------

共同用户界面


以下内容摘自维基百科关于普通用户的文章

Accessa ??:


CUA是一个详细的规范,并设置了关于

应用程序外观和功能的严格规定。它的目的部分是带来关于MS-DOS应用程序之间和谐的

,直到那时才实现完全不同的用户界面




示例:


?*?* *在WordPerfect中,打开文件的命令是[F7],[3]。


?*?* *在Lotus 1-2-3中,用[/]打开文件(打开菜单),

[W](对于工作区),[R](对于检索)。


?*?* *在Microsoft Word中,用[Esc]打开文件(打开

菜单),[T ](对于转移),[L](对于加载)。


?*?* *在WordStar中,它是[Ctrl] + [K] + [O]。


?*?* *在Emacs中,用[Ctrl] + [x]后跟[Ctrl] +

[f]打开一个文件(用于查找) -file)。


有些程序用[Esc]取消动作,有些用它来完成

one; WordPerfect用它来重复一个字符。有些程序使用了

[结束]去一行的结尾,有的用它来完成填写

的表格。 [F1]经常有帮助,但在WordPerfect中是[F3]。 [Ins]

有时会在改写和插入字符之间切换,但有些

程序用它来做贴纸??


因此,每个程序都必须单独学习,并且记忆完整的

用户界面。由于面向新的

计划的新手用户会发现他们对类似应用程序的现有知识,因此了解了许多应用程序的用户界面,这是一种专业知识的标志。绝对没有任何用处。


-------------------------- --------------

简单的更改


在下文中,我描述了一些非常

易于修复emacs。如果emacs正式采用这些更改,我认为

它会让很多人,至少是程序员,比如emacs,并选择

emacs作为他们的文本编辑器。


?*?* *更改Copy&的键盘快捷键粘贴到ctrl-c和ctrl-

v与所有现代应用程序相同。


?*?* *更改撤消行为以便在那里是一个Undo和Redo,与所有现代应用程序一样,




?*?* *摆脱* scratch *缓冲区。 />

?*?* *更改?? killa的术语?一个?? cuta ??和一个?? yanka ??

a ?? pastea ??。


?*?* *将Meta键的术语改为Alt。


?*?* *使longlines-mode成为任何文件的默认编辑器行为。

emacs现在应该做的事情,即使它最终也会这样做。


?*?* *打开HTML文档时,会自动提供高亮显示的HTML,CSS和Javascript代码
。类似于其他多语言的

文件,如PHP,JSP等。此行为必须是自动的,而不需要

,要求用户自定义emacs。


可能的文档更改建议


?* ?* *减少使用a ?? buffera这个词?在emacs文档中。

称之为打开文件?或者一个未保存的文件??。


?*?* *切换窗口和框架的术语,使其更符合标准的b $ b。也就是说,Emacs是一个?? ?? Windowa ??应该称为窗格或框架。

虽然Emacs是一个?? Framea?应该被称为Window。


?*?* *将键绑定的术语改为?? keyboardshortcuta ??在

emacs文档中。仅在

技术上下文中使用术语键绑定或绑定,例如在elisp文档中。


?* Xah

? * x ... @ xahlee.org

a ?? http:// xahlee。 org /



6月17日上午11点13分,Xah Lee< x ... @ xahlee.orgwrote:

[snip]


哇。 Xah发布了我全心全意同意的事情。想象一下。


曾经想到有人(程序员和其他人)

谁不会使用emacs他们的日常工作仅仅是因为他们需要工具才能更好地适应他们所做的工作(例如,Eclipse

对我来说)? br />

除此之外:我个人不觉得你的咆哮是否足够有趣,有资格获得4组X-post ......这种

文章很好地融入了一个博客,但对程序员来说并不是很多

新闻组(用于Q& A imho)。


[this post is a excerpt from
The Modernization of Emacs, Xah Lee, 2006-04 at
http://xahlee.org/emacs/modernization.html
]

The Modernization of Emacs

----------------------------------------
THE PROBLEM

Emacs is a great editor. It is perhaps the most powerful and most
versatile text editor. And, besides text editing, it also serves as a
email application, newsgroup application, ftp application, irc
application, web browser, shell interface, file management
application, programable calculator, calendar and personal info
management application, lisp language system, among other things.
These seemingly wild functionalities are employed in production daily
by a significant number of programers around the world. Some calls
emacs as a Operating System as a joke. (Technically it does not
qualify because a OS implies management of hardware.).

If emacs is such a great and powerful text editor why almost nobody
knows about it? Vast majority of people who need to write will be more
than happy to use editors other than emacs. Ask a Microsoft Windows
user. She''ll be more than happy to use Microsoft Worda??. If he doesn''t
have MS Word, he''ll use NotePada?? or WordPada??. If he is a programer,
most will be more than happy to use any of other graphical editors on
the Windows platform or any of the Integrated development
environmenta??. Same is true on other operating systems, and new editors
spring up here and there even though they don''t have as much power or
flexibility as emacs. For example, there are NEdit, JEdit, Eclipse,
Xcodea?? , or the various associated with languages or third party
language software, such as Visual Basic or Borland C++.

Many reasons can be made out of this. For example, emacs is not
bundled on popular operating systems such as Windows or Mac, which are
used by some 99% of computer users worldwide. Windows and Mac both
have simple text editors bundled that will satisfy majority of
computer users, which are non-professional computer users. (NotePad
and WordPad on Windows, TextEdita?? on Mac) For the few professional
computer users, a majority will need a easy to use, yet powerful
editor that also does styled text, formatting, and sundry light
publishing needs such as table layout, simple line graphics drawing,
embedded images, math formulas. They will choose and adopt Microsoft
Word for their needs. The tiny percentage that might be interested in
emacs, are programers. Even among professional programers, a majority
shy away from emacs.

A major difficulty among programers who do not use or like emacs, is
that emacs''s user interface is rather esoteric, involving arcane
terminologies and keystrokes. This is in sharp contrast to the
thousands of software applications used today, where their User
Interface are similar and familiar to today''s computer users.

----------------------------------------
THE COMMON USER INTERFACE

The following is a excerpt from the Wikipedia article on Common User
Accessa??:

CUA was a detailed specification and set strict rules about how
applications should look and function. Its aim was in part to bring
about harmony between MS-DOS applications, which until then had
implemented totally different user interfaces.

Examples:

* In WordPerfect, the command to open a file was [F7], [3].

* In Lotus 1-2-3, a file was opened with [/] (to open the menus),
[W] (for Workspace), [R] (for Retrieve).

* In Microsoft Word, a file was opened with [Esc] (to open the
menus), [T] (for Transfer), [L] (for Load).

* In WordStar, it was [Ctrl]+[K]+[O].

* In Emacs, a file was opened with [Ctrl]+[x] followed by [Ctrl]+
[f] (for find-file).

Some programs used [Esc] to cancel an action, some used it to complete
one; WordPerfect used it to repeat a character. Some programs used
[End] to go to the end of a line, some used it to complete filling in
a form. [F1] was often help but in WordPerfect that was [F3]. [Ins]
sometimes toggled between overtype and inserting characters, but some
programs used it for a??pastea??.

Thus, every program had to be learned individually and its complete
user interface memorized. It was a sign of expertise to have learned
the UIs of dozens of applications, since a novice user facing a new
program would find their existing knowledge of a similar application
absolutely no use whatsoever.

----------------------------------------
SIMPLE CHANGES

In the following, i describe some critical changes that are also very
easy to fix in emacs. If emacs officially adopt these changes, i think
it will make a lot people, at least programers, like emacs and choose
emacs as their text editor.

* Change the keyboard shortcut of Copy & Paste to ctrl-c and ctrl-
v as to be the same with all modern applications.

* Change the undo behavior so that there is a Undo and Redo, as
the same with all modern applications.

* Get rid of the *scratch* buffer.

* Change the terminology of a??killa?? to a??cuta??, and a??yanka?? to
a??pastea??.

* Change the terminology of Meta key to Alt.

* Make longlines-mode the default editor behavior for any file.

Things emacs should do now, even though it eventually will do.

* When opening a HTML document, automatically provide highlighting
of HTML, CSS, and Javascript codes. Similarly for other multi-language
files such as PHP, JSP, et al. This behavior must be automatic without
requiring user to customize emacs.

Possible Documentation Change Proposals

* Reduce the use of the word a??buffera?? in the emacs documentation.
Call it a??opened filea?? or a??unsaved documenta??.

* Switch the terminology of Window and Frame so it is more
standard. That is, Emacs''s a??Windowa?? should be called Panes or Frames.
While Emacs''s a??Framea?? should be termed Window.

* Change the terminology of keybinding to a??keyboard shortcuta?? in
emacs documentation. Use the term keybinding or binding only in a
technical context, such as in elisp documentation.

Xah
xa*@xahlee.org
a?? http://xahlee.org/

解决方案

For the love of dogs, Xah, try to keep up. Aquamacs is an Emacs
distribution that, which not there yet, is at least half way between
"classic" Emacs and a modern Mac UI. You sound ridiculous, like if
you were complaining about Windows not being really graphical, based
on experience with Windows-386 in the era when 95 was already around.

On Jun 17, 5:13?*pm, Xah Lee <x...@xahlee.orgwrote:

[this post is a excerpt from
The Modernization of Emacs, Xah Lee, 2006-04 athttp://xahlee.org/emacs/modernization.html
]

The Modernization of Emacs

----------------------------------------
THE PROBLEM

Emacs is a great editor. It is perhaps the most powerful and most
versatile text editor. And, besides text editing, it also serves as a
email application, newsgroup application, ftp application, irc
application, web browser, shell interface, file management
application, programable calculator, calendar and personal info
management application, lisp language system, among other things.
These seemingly wild functionalities are employed in production daily
by a significant number of programers around the world. Some calls
emacs as a Operating System as a joke. (Technically it does not
qualify because a OS implies management of hardware.).

If emacs is such a great and powerful text editor why almost nobody
knows about it? Vast majority of people who need to write will be more
than happy to use editors other than emacs. Ask a Microsoft Windows
user. She''ll be more than happy to use Microsoft Worda??. If he doesn''t
have MS Word, he''ll use NotePada?? or WordPada??. If he is a programer,
most will be more than happy to use any of other graphical editors on
the Windows platform or any of the Integrated development
environmenta??. Same is true on other operating systems, and new editors
spring up here and there even though they don''t have as much power or
flexibility as emacs. For example, there are NEdit, JEdit, Eclipse,
Xcodea?? , or the various associated with languages or third party
language software, such as Visual Basic or Borland C++.

Many reasons can be made out of this. For example, emacs is not
bundled on popular operating systems such as Windows or Mac, which are
used by some 99% of computer users worldwide. Windows and Mac both
have simple text editors bundled that will satisfy majority of
computer users, which are non-professional computer users. (NotePad
and WordPad on Windows, TextEdita?? on Mac) For the few professional
computer users, a majority will need a easy to use, yet powerful
editor that also does styled text, formatting, and sundry light
publishing needs such as table layout, simple line graphics drawing,
embedded images, math formulas. They will choose and adopt Microsoft
Word for their needs. The tiny percentage that might be interested in
emacs, are programers. Even among professional programers, a majority
shy away from emacs.

A major difficulty among programers who do not use or like emacs, is
that emacs''s user interface is rather esoteric, involving arcane
terminologies and keystrokes. This is in sharp contrast to the
thousands of software applications used today, where their User
Interface are similar and familiar to today''s computer users.

----------------------------------------
THE COMMON USER INTERFACE

The following is a excerpt from the Wikipedia article on Common User
Accessa??:

CUA was a detailed specification and set strict rules about how
applications should look and function. Its aim was in part to bring
about harmony between MS-DOS applications, which until then had
implemented totally different user interfaces.

Examples:

?* ?* * In WordPerfect, the command to open a file was [F7], [3].

?* ?* * In Lotus 1-2-3, a file was opened with [/] (to open the menus),
[W] (for Workspace), [R] (for Retrieve).

?* ?* * In Microsoft Word, a file was opened with [Esc] (to open the
menus), [T] (for Transfer), [L] (for Load).

?* ?* * In WordStar, it was [Ctrl]+[K]+[O].

?* ?* * In Emacs, a file was opened with [Ctrl]+[x] followed by [Ctrl]+
[f] (for find-file).

Some programs used [Esc] to cancel an action, some used it to complete
one; WordPerfect used it to repeat a character. Some programs used
[End] to go to the end of a line, some used it to complete filling in
a form. [F1] was often help but in WordPerfect that was [F3]. [Ins]
sometimes toggled between overtype and inserting characters, but some
programs used it for a??pastea??.

Thus, every program had to be learned individually and its complete
user interface memorized. It was a sign of expertise to have learned
the UIs of dozens of applications, since a novice user facing a new
program would find their existing knowledge of a similar application
absolutely no use whatsoever.

----------------------------------------
SIMPLE CHANGES

In the following, i describe some critical changes that are also very
easy to fix in emacs. If emacs officially adopt these changes, i think
it will make a lot people, at least programers, like emacs and choose
emacs as their text editor.

?* ?* * Change the keyboard shortcut of Copy & Paste to ctrl-c and ctrl-
v as to be the same with all modern applications.

?* ?* * Change the undo behavior so that there is a Undo and Redo, as
the same with all modern applications.

?* ?* * Get rid of the *scratch* buffer.

?* ?* * Change the terminology of a??killa?? to a??cuta??, and a??yanka?? to
a??pastea??.

?* ?* * Change the terminology of Meta key to Alt.

?* ?* * Make longlines-mode the default editor behavior for any file.

Things emacs should do now, even though it eventually will do.

?* ?* * When opening a HTML document, automatically provide highlighting
of HTML, CSS, and Javascript codes. Similarly for other multi-language
files such as PHP, JSP, et al. This behavior must be automatic without
requiring user to customize emacs.

Possible Documentation Change Proposals

?* ?* * Reduce the use of the word a??buffera?? in the emacs documentation.
Call it a??opened filea?? or a??unsaved documenta??.

?* ?* * Switch the terminology of Window and Frame so it is more
standard. That is, Emacs''s a??Windowa?? should be called Panes or Frames.
While Emacs''s a??Framea?? should be termed Window.

?* ?* * Change the terminology of keybinding to a??keyboardshortcuta?? in
emacs documentation. Use the term keybinding or binding only in a
technical context, such as in elisp documentation.

?* Xah
?* x...@xahlee.org
a??http://xahlee.org/



On Jun 17, 11:13 am, Xah Lee <x...@xahlee.orgwrote:
[snip]

Whoa. Xah posted something I agree with wholeheartedly. Imagine that.


Ever came to your mind that there are people (programmers and others)
who will not use emacs for their day-to-day work simply because they
have tools that suit them better for the work they have to do (Eclipse
for me, as an example)?

Except from that: I personally don''t feel that your rantings are
interesting enough to qualify for a 4 groups X-post ... this sort of
article goes well into a blog, but not so much on programmers
newsgroups (which are used for Q&A imho).


这篇关于Emacs的现代化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆