Skip to content

Commit 74d6780

Browse files
author
Yuuki Harano
committed
Merge branch 'master' of https://github.com/emacs-mirror/emacs into pgtk
2 parents 94b958a + f373cec commit 74d6780

File tree

118 files changed

+2714
-1236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2714
-1236
lines changed

doc/emacs/dired.texi

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,10 +654,15 @@ commands, use the same conventions to decide which files to work on.
654654
Commands which ask for a destination directory, such as those which
655655
copy and rename files or create links for them, try to guess the default
656656
target directory for the operation. Normally, they suggest the Dired
657-
buffer's default directory, but if the variable @code{dired-dwim-target}
658-
is non-@code{nil}, and if there is another Dired buffer displayed in one
659-
of the most recently used windows, that other buffer's directory is
660-
suggested instead.
657+
buffer's default directory, but if the option @code{dired-dwim-target}
658+
is non-@code{nil}, and if there is another Dired buffer displayed in
659+
some window, that other buffer's directory is suggested instead.
660+
You can customize @code{dired-dwim-target} to prefer either the next
661+
window with a Dired buffer, or the most recently used window with
662+
a Dired buffer, or to use any other function. When the value is
663+
a function, it will be called with no arguments and is expected to
664+
return a list of directories which will be used as defaults
665+
(i.e. default target and ``future history'').
661666

662667
Here are the file-manipulating Dired commands that operate on files.
663668

doc/emacs/emacs.texi

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,21 @@
33
@setfilename ../../info/emacs.info
44
@settitle GNU Emacs Manual
55
@include docstyle.texi
6-
7-
@c The edition number appears in more than one place in this file
8-
@c I don't really know what it means...
9-
@c For example, it has said "Sixteenth" since sometime in the Emacs 22
10-
@c series, all through 23, and into 24. So it is not very useful IMO,
11-
@c and offers nothing that EMACSVER does not. I guess it relates
12-
@c mainly to the published book sold by the FSF. Hence no longer
13-
@c bother including it except iftex. Really, I think it should not be
14-
@c here at all (since anyone can make a pdf version), but should just
15-
@c be something added by the FSF during the publishing process.
16-
@c Also, the lispref uses a float (3.0), whereas this uses an ordinal,
17-
@c so the format is not even consistent.
18-
@set EDITION Seventeenth
196
@include emacsver.texi
207

8+
@c When printing, define EDITION to be the printed edition number, in
9+
@c the preferred style for ordinal edition numbers. E.g., run the
10+
@c shell command "texi2any -D 'EDITION Nineteenth'" for the 19th
11+
@c printed edition where the edition number is spelled out in English.
12+
@c This relates mainly to the published book sold by the FSF.
13+
2114
@copying
22-
@iftex
15+
@ifset EDITION
2316
This is the @value{EDITION} edition of the @cite{GNU Emacs Manual},@*
24-
@end iftex
25-
@ifnottex
17+
@end ifset
18+
@ifclear EDITION
2619
This is the @cite{GNU Emacs Manual},
27-
@end ifnottex
20+
@end ifclear
2821
updated for Emacs version @value{EMACSVER}.
2922

3023
Copyright @copyright{} 1985--1987, 1993--2019 Free Software Foundation, Inc.
@@ -82,7 +75,12 @@ developing GNU and promoting software freedom.''
8275
@sp 6
8376
@center @titlefont{GNU Emacs Manual}
8477
@sp 4
78+
@ifset EDITION
8579
@center @value{EDITION} Edition, Updated for Emacs Version @value{EMACSVER}.
80+
@end ifset
81+
@ifclear EDITION
82+
@center Updated for Emacs Version @value{EMACSVER}
83+
@end ifclear
8684
@sp 5
8785
@center Richard Stallman et al.
8886
@page

doc/emacs/maintaining.texi

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,10 @@ Display the changes that a ``pull'' operation will retrieve
963963
@item C-x v O
964964
Display the changes that will be sent by the next ``push'' operation
965965
(@code{vc-log-outgoing}).
966+
967+
@item C-x v h
968+
Display the history of changes made in the region of file visited by
969+
the current buffer (@code{vc-region-history}).
966970
@end table
967971

968972
@kindex C-x v l
@@ -1068,20 +1072,20 @@ buffer. However, RCS, SCCS, CVS, and SRC do not support this feature.
10681072

10691073
@kindex C-x v h
10701074
@findex vc-region-history
1071-
A useful variant of examining changes is provided by the command
1075+
A useful variant of examining history of changes is provided by the command
10721076
@kbd{vc-region-history} (by default bound to @kbd{C-x v h}), which shows
1073-
a @file{*VC-history*} buffer with the history of changes to the region
1074-
of the current file between point and the mark (@pxref{Mark}). The
1077+
a @file{*VC-history*} buffer with the history of changes made in the region
1078+
of the current buffer's file between point and the mark (@pxref{Mark}). The
10751079
history of changes includes the commit log messages and also the
10761080
changes themselves in the Diff format.
10771081

1078-
Invoke this command after marking the region of the current file in
1082+
Invoke this command after marking in the current buffer the region in
10791083
whose changes you are interested. In the @file{*VC-history*} buffer
10801084
it pops up, you can use all of the commands available in the
10811085
@file{*vc-change-log*} buffer described above, and also the commands
10821086
defined by Diff mode (@pxref{Diff Mode}).
10831087

1084-
This command is currently available only with Git.
1088+
This command is currently available only with Git and Mercurial (hg).
10851089

10861090
@node VC Undo
10871091
@subsection Undoing Version Control Actions

doc/lispintro/emacs-lisp-intro.texi

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@
6363
\global\hbadness=6666 % don't worry about not-too-underfull boxes
6464
@end tex
6565

66-
@c These refer to the printed book sold by the FSF.
67-
@set edition-number 3.10
68-
@set update-date 28 October 2009
69-
7066
@c For next or subsequent edition:
7167
@c create function using with-output-to-temp-buffer
7268
@c create a major mode, with keymaps
@@ -102,16 +98,24 @@
10298
* Emacs Lisp Intro: (eintr). A simple introduction to Emacs Lisp programming.
10399
@end direntry
104100

101+
@c When printing, define edition-number to be the printed edition
102+
@c number, titlepage-edition-number to be the spelled out edition
103+
@c number suitable for the title page, and update-date to be the date,
104+
@c in the preferred style for these. E.g., run the shell command:
105+
@c texi2any -D 'edition-number 3.11' \
106+
@c -D 'titlepage-edition-number Revised Third Edtion' \
107+
@c -D 'update-date 31 March 2020'
108+
@c This relates mainly to the published book sold by the FSF.
109+
105110
@copying
106111
This is @cite{An Introduction to Programming in Emacs Lisp}, for
107112
people who are not programmers.
108113
@sp 1
109-
@iftex
114+
@ifset edition-number
110115
Edition @value{edition-number}, @value{update-date}
111-
@end iftex
112-
@ifnottex
116+
@end ifset
117+
@sp 1
113118
Distributed with Emacs version @value{EMACSVER}.
114-
@end ifnottex
115119
@sp 1
116120
Copyright @copyright{} 1990--1995, 1997, 2001--2019 Free Software
117121
Foundation, Inc.
@@ -173,7 +177,9 @@ supports it in developing GNU and promoting software freedom.''
173177
@sp 2
174178
@center @titlefont{Programming in Emacs Lisp}
175179
@sp 2
176-
@center Revised Third Edition
180+
@ifset titlepage-edition-number
181+
@center @value{titlepage-edition-number}
182+
@end ifset
177183
@sp 4
178184
@center by Robert J. Chassell
179185

doc/lispref/commands.texi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,6 +2501,9 @@ and key sequences read from keyboard macros being executed.
25012501
The lowest level functions for command input are @code{read-event},
25022502
@code{read-char}, and @code{read-char-exclusive}.
25032503

2504+
If you need a function to read a character using the minibuffer, use
2505+
@code{read-char-from-minibuffer} (@pxref{Multiple Queries}).
2506+
25042507
@defun read-event &optional prompt inherit-input-method seconds
25052508
This function reads and returns the next event of command input,
25062509
waiting if necessary until an event is available.

doc/lispref/edebug.texi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,10 @@ evaluating forms that never instrument them: from a file with
231231
(@kbd{M-:}).
232232

233233
@findex edebug-remove-instrumentation
234-
If you want to remove Edebug instrumentation from all functions, you
235-
can use the @code{edebug-remove-instrumentation} command.
234+
A different way to remove the instrumentation from a definition is
235+
to use the @code{edebug-remove-instrumentation} command. It also
236+
allows removing the instrumentation from everything that has been
237+
instrumented.
236238

237239
@xref{Edebug Eval}, for other evaluation functions available
238240
inside of Edebug.

doc/lispref/elisp.texi

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@
5252
@end ifset
5353
@end tex
5454

55-
56-
@c Version of the manual and of Emacs.
57-
@c (See comments for EDITION in emacs.texi)
58-
@set VERSION 3.1
5955
@include emacsver.texi
60-
@set DATE October 2014
6156

6257
@c in general, keep the following line commented out, unless doing a
6358
@c copy of this manual that will be published. The manual should go
@@ -90,13 +85,18 @@
9085
@c We use the "type index" to index new functions and variables.
9186
@c @syncodeindex tp fn
9287

88+
@c When printing, define VERSION to be the printed edition number and
89+
@c DATE to be the printed edition's date. E.g., run the shell command
90+
@c "texi2any -D 'VERSION 3.2' -D 'DATE 31 March 2020'". This relates
91+
@c mainly to the published book sold by the FSF.
92+
9393
@copying
94-
@iftex
94+
@ifset VERSION
9595
This is edition @value{VERSION} of the @cite{GNU Emacs Lisp Reference Manual},@*
96-
@end iftex
97-
@ifnottex
96+
@end ifset
97+
@ifclear VERSION
9898
This is the @cite{GNU Emacs Lisp Reference Manual}
99-
@end ifnottex
99+
@end ifclear
100100
corresponding to Emacs version @value{EMACSVER}.
101101

102102
Copyright @copyright{} 1990--1996, 1998--2019 Free Software Foundation, Inc.
@@ -127,7 +127,9 @@ developing GNU and promoting software freedom.''
127127
@subtitle @value{voltitle}
128128
@end ifset
129129
@subtitle For Emacs Version @value{EMACSVER}
130+
@ifset VERSION
130131
@subtitle Revision @value{VERSION}, @value{DATE}
132+
@end ifset
131133

132134
@author by Bil Lewis, Dan LaLiberte, Richard Stallman,
133135
@author the GNU Manual Group, et al.

doc/lispref/functions.texi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ after a @code{&rest} argument.
453453

454454
@node Function Documentation
455455
@subsection Documentation Strings of Functions
456-
@cindex documentation of function
456+
@cindex documentation string of function
457+
@cindex function's documentation string
457458

458459
A lambda expression may optionally have a @dfn{documentation string}
459460
just after the lambda list. This string does not affect execution of

doc/lispref/minibuf.texi

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,16 +2253,12 @@ Here is an example of using this function:
22532253
@end lisp
22542254
@end defun
22552255

2256-
If you need a function to read a character like @code{read-char} or
2257-
@code{read-char-choice} (@pxref{Reading One Event}) but using the
2258-
minibuffer, use @code{read-char-from-minibuffer}.
2259-
22602256
@defun read-char-from-minibuffer prompt &optional chars history
22612257
This function uses the minibuffer to read and return a single
22622258
character. Optionally, it ignores any input that is not a member of
22632259
@var{chars}, a list of accepted characters. The @var{history}
2264-
argument specifies the history list symbol to use; if is omitted or
2265-
@code{nil}, it doesn't use the history.
2260+
argument specifies the history list symbol to use; if it is omitted or
2261+
@code{nil}, this function doesn't use the history.
22662262
@end defun
22672263

22682264
@node Reading a Password

doc/lispref/objects.texi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ Objects that have no read syntax are presented like this
123123
The printed representation of an interned symbol whose name is an
124124
empty string (@pxref{Symbol Type}).
125125

126+
@item #'
127+
This is a shortcut for @code{function}, see @ref{Anonymous Functions}.
128+
126129
@item #:
127130
The printed representation of an uninterned symbol whose name is
128131
@var{foo} is @samp{#:@var{foo}} (@pxref{Symbol Type}).

0 commit comments

Comments
 (0)