aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/misc.texi9
-rw-r--r--doc/lispref/ChangeLog26
-rw-r--r--doc/lispref/commands.texi10
-rw-r--r--doc/lispref/compile.texi6
-rw-r--r--doc/lispref/display.texi46
-rw-r--r--doc/lispref/loading.texi7
-rw-r--r--doc/lispref/modes.texi12
-rw-r--r--doc/lispref/nonascii.texi3
-rw-r--r--doc/lispref/objects.texi4
-rw-r--r--doc/lispref/processes.texi28
-rw-r--r--doc/misc/ChangeLog4
-rw-r--r--doc/misc/dbus.texi51
13 files changed, 169 insertions, 41 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 8285a313191..55ec7b75cce 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,7 @@
12010-08-21 Glenn Morris <rgm@gnu.org>
2
3 * misc.texi (Amusements): Mention bubbles and animate.
4
12010-07-31 Eli Zaretskii <eliz@gnu.org> 52010-07-31 Eli Zaretskii <eliz@gnu.org>
2 6
3 * files.texi (Visiting): Add more index entries for 7 * files.texi (Visiting): Add more index entries for
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 387e1be715a..029cf410664 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -2784,6 +2784,10 @@ bored, try an argument of 9. Sit back and watch.
2784 If you want a little more personal involvement, try @kbd{M-x gomoku}, 2784 If you want a little more personal involvement, try @kbd{M-x gomoku},
2785which plays the game Go Moku with you. 2785which plays the game Go Moku with you.
2786 2786
2787@findex bubbles
2788 @kbd{M-x bubbles} is a game in which the object is to remove as many
2789bubbles as you can in the smallest number of moves.
2790
2787@findex blackbox 2791@findex blackbox
2788@findex mpuz 2792@findex mpuz
2789@findex 5x5 2793@findex 5x5
@@ -2832,6 +2836,11 @@ bats.
2832@kbd{M-x solitaire} plays a game of solitaire in which you jump pegs 2836@kbd{M-x solitaire} plays a game of solitaire in which you jump pegs
2833across other pegs. 2837across other pegs.
2834 2838
2839@findex animate-birthday-present
2840@cindex animate
2841The @code{animate} package makes text dance. For an example, try
2842@kbd{M-x animate-birthday-present}.
2843
2835@findex studlify-region 2844@findex studlify-region
2836@cindex StudlyCaps 2845@cindex StudlyCaps
2837@kbd{M-x studlify-region} studlify-cases the region, producing 2846@kbd{M-x studlify-region} studlify-cases the region, producing
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index fe64ca9d835..53b8ac25522 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,29 @@
12010-08-24 Markus Triska <triska@gmx.at>
2
3 * processes.texi (Filter Functions): Use `buffer-live-p' instead
4 of `buffer-name' in the main text as well as in the example
5 (Bug#3098).
6
72010-08-22 Chong Yidong <cyd@stupidchicken.com>
8
9 * nonascii.texi (Text Representations):
10 * loading.texi (Loading Non-ASCII):
11 * compile.texi (Byte Compilation): Don't mention obsolete
12 --unibyte command-line argument.
13
142010-08-22 Chong Yidong <cyd@stupidchicken.com>
15
16 * modes.texi (Defining Minor Modes): Doc fix (Bug#6880).
17
182010-08-22 Chong Yidong <cyd@stupidchicken.com>
19
20 * objects.texi (Bool-Vector Type): Minor definition tweak (Bug#6878).
21
222010-08-20 Eli Zaretskii <eliz@gnu.org>
23
24 * commands.texi (Misc Events): Add cross-references to where
25 POSITION of a mouse event is described in detail.
26
12010-08-08 Christoph <cschol2112@googlemail.com> 272010-08-08 Christoph <cschol2112@googlemail.com>
2 28
3 * control.texi (Handling Errors) <error-message-string>: Fix arg name. 29 * control.texi (Handling Errors) <error-message-string>: Fix arg name.
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi
index d22cfd955cb..17cfcc0def8 100644
--- a/doc/lispref/commands.texi
+++ b/doc/lispref/commands.texi
@@ -1616,7 +1616,8 @@ These kinds of event are generated by moving a mouse wheel. Their
1616usual meaning is a kind of scroll or zoom. 1616usual meaning is a kind of scroll or zoom.
1617 1617
1618The element @var{position} is a list describing the position of the 1618The element @var{position} is a list describing the position of the
1619event, in the same format as used in a mouse-click event. 1619event, in the same format as used in a mouse-click event (@pxref{Click
1620Events}).
1620 1621
1621@vindex mouse-wheel-up-event 1622@vindex mouse-wheel-up-event
1622@vindex mouse-wheel-down-event 1623@vindex mouse-wheel-down-event
@@ -1633,9 +1634,10 @@ selected in an application outside of Emacs, and then dragged and
1633dropped onto an Emacs frame. 1634dropped onto an Emacs frame.
1634 1635
1635The element @var{position} is a list describing the position of the 1636The element @var{position} is a list describing the position of the
1636event, in the same format as used in a mouse-click event, and 1637event, in the same format as used in a mouse-click event (@pxref{Click
1637@var{files} is the list of file names that were dragged and dropped. 1638Events}), and @var{files} is the list of file names that were dragged
1638The usual way to handle this event is by visiting these files. 1639and dropped. The usual way to handle this event is by visiting these
1640files.
1639 1641
1640This kind of event is generated, at present, only on some kinds of 1642This kind of event is generated, at present, only on some kinds of
1641systems. 1643systems.
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi
index 1c28664e7c3..69b57f19ea7 100644
--- a/doc/lispref/compile.texi
+++ b/doc/lispref/compile.texi
@@ -22,12 +22,6 @@ hardware (as true compiled code is), byte-code is completely
22transportable from machine to machine without recompilation. It is not, 22transportable from machine to machine without recompilation. It is not,
23however, as fast as true compiled code. 23however, as fast as true compiled code.
24 24
25 Compiling a Lisp file with the Emacs byte compiler always reads the
26file as multibyte text, even if Emacs was started with @samp{--unibyte},
27unless the file specifies otherwise. This is so that compilation gives
28results compatible with running the same file without compilation.
29@xref{Loading Non-ASCII}.
30
31 In general, any version of Emacs can run byte-compiled code produced 25 In general, any version of Emacs can run byte-compiled code produced
32by recent earlier versions of Emacs, but the reverse is not true. 26by recent earlier versions of Emacs, but the reverse is not true.
33 27
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 9f07fb42ef4..716efbd9059 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -4039,6 +4039,7 @@ displayed (@pxref{Display Feature Testing}).
4039* GIF Images:: Special features for GIF format. 4039* GIF Images:: Special features for GIF format.
4040* TIFF Images:: Special features for TIFF format. 4040* TIFF Images:: Special features for TIFF format.
4041* PostScript Images:: Special features for PostScript format. 4041* PostScript Images:: Special features for PostScript format.
4042* ImageMagick Images:: Special features available through ImageMagick.
4042* Other Image Types:: Various other formats are supported. 4043* Other Image Types:: Various other formats are supported.
4043* Defining Images:: Convenient ways to define an image for later use. 4044* Defining Images:: Convenient ways to define an image for later use.
4044* Showing Images:: Convenient ways to display an image once it is defined. 4045* Showing Images:: Convenient ways to display an image once it is defined.
@@ -4463,6 +4464,51 @@ specifying the bounding box of the PostScript image, analogous to the
4463@end example 4464@end example
4464@end table 4465@end table
4465 4466
4467@node ImageMagick Images
4468@subsection ImageMagick Images
4469The Imagemagick library can be used to load many image formats in Emacs.
4470
4471The function (imagemagick-types) returns a list of image file
4472extensions that your installation of imagemagick supports.
4473
4474The function (imagemagick-register-types) will enable the imagemagick
4475support for the extensions in imagemagick-types minus the types listed
4476in imagemagick-types-inhibit.
4477
4478imagemagick-types-inhibit has the value '(C HTML HTM TXT PDF) by
4479default. There can be overlap between image loaders in your Emacs
4480installation. If you never want to use the ImageMagick loader to use
4481Jpeg files, for instance, add 'JPG to imagemagick-types-inhibit. Which
4482loader that will be used in practice depends on the priority of the
4483loaders.
4484
4485imagemagick-render-type is a new variable which can be set to choose
4486between screen render methods for the ImageMagick loader.
4487
4488- 0 is a conservative metod which works with older ImageMagick
4489 versions. It is a bit slow, but robust.
4490
4491- 1 utilizes a newer ImageMagick method
4492
4493
4494Images loaded with imagemagick will support a couple of new display
4495specification behaviours:
4496
4497- if the :width and :height keywords are specified, these values are
4498used for scaling the image. If only one of :width or :height is
4499specified, the other one will be calculated so as to preserve the
4500aspect ratio.If both :width and :height are specified, aspect ratio
4501will not be preserved.
4502
4503- :rotation specifies a rotation angle in degrees.
4504
4505- :index specifies which image inside an image bundle file format, such
4506as TIFF or DJVM, to view.
4507
4508The image-metadata function can be used to retrieve the total number
4509of images in an image bundle. This is simmilar to how GIF files work.
4510
4511
4466@node Other Image Types 4512@node Other Image Types
4467@subsection Other Image Types 4513@subsection Other Image Types
4468@cindex PBM 4514@cindex PBM
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi
index bbdd67fc3a5..dee2a0252eb 100644
--- a/doc/lispref/loading.texi
+++ b/doc/lispref/loading.texi
@@ -367,13 +367,6 @@ example) is read without decoding, the text of the program will be
367unibyte text, and its string constants will be unibyte strings. 367unibyte text, and its string constants will be unibyte strings.
368@xref{Coding Systems}. 368@xref{Coding Systems}.
369 369
370 To make the results more predictable, Emacs always performs decoding
371into the multibyte representation when loading Lisp files, even if it
372was started with the @samp{--unibyte} option. This means that string
373constants with non-@acronym{ASCII} characters translate into multibyte
374strings. The only exception is when a particular file specifies no
375decoding.
376
377 The reason Emacs is designed this way is so that Lisp programs give 370 The reason Emacs is designed this way is so that Lisp programs give
378predictable results, regardless of how Emacs was started. In addition, 371predictable results, regardless of how Emacs was started. In addition,
379this enables programs that depend on using multibyte text to work even 372this enables programs that depend on using multibyte text to work even
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 3953da59b93..12f16b67663 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1411,14 +1411,20 @@ The string @var{lighter} says what to display in the mode line
1411when the mode is enabled; if it is @code{nil}, the mode is not displayed 1411when the mode is enabled; if it is @code{nil}, the mode is not displayed
1412in the mode line. 1412in the mode line.
1413 1413
1414The optional argument @var{keymap} specifies the keymap for the minor mode. 1414The optional argument @var{keymap} specifies the keymap for the minor
1415It can be a variable name, whose value is the keymap, or it can be an alist 1415mode. If non-@code{nil}, it should be a variable name (whose value is
1416specifying bindings in this form: 1416a keymap), a keymap, or an alist of the form
1417 1417
1418@example 1418@example
1419(@var{key-sequence} . @var{definition}) 1419(@var{key-sequence} . @var{definition})
1420@end example 1420@end example
1421 1421
1422@noindent
1423where each @var{key-sequence} and @var{definition} are arguments
1424suitable for passing to @code{define-key} (@pxref{Changing Key
1425Bindings}). If @var{keymap} is a keymap or an alist, this also
1426defines the variable @code{@var{mode}-map}.
1427
1422The above three arguments @var{init-value}, @var{lighter}, and 1428The above three arguments @var{init-value}, @var{lighter}, and
1423@var{keymap} can be (partially) omitted when @var{keyword-args} are 1429@var{keymap} can be (partially) omitted when @var{keyword-args} are
1424used. The @var{keyword-args} consist of keywords followed by 1430used. The @var{keyword-args} consist of keywords followed by
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi
index 00a1dffed6a..40c78d97da7 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -102,9 +102,6 @@ it contains unibyte encoded text or binary non-text data.
102 102
103You cannot set this variable directly; instead, use the function 103You cannot set this variable directly; instead, use the function
104@code{set-buffer-multibyte} to change a buffer's representation. 104@code{set-buffer-multibyte} to change a buffer's representation.
105
106The @samp{--unibyte} command line option does its job by setting the
107default value to @code{nil} early in startup.
108@end defvar 105@end defvar
109 106
110@defun position-bytes position 107@defun position-bytes position
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index 5c3ac13cdaf..c8ccb15a2d3 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -1189,8 +1189,8 @@ Syntax tables (@pxref{Syntax Tables}).
1189@node Bool-Vector Type 1189@node Bool-Vector Type
1190@subsection Bool-Vector Type 1190@subsection Bool-Vector Type
1191 1191
1192 A @dfn{bool-vector} is a one-dimensional array of elements that 1192 A @dfn{bool-vector} is a one-dimensional array whose elements must
1193must be @code{t} or @code{nil}. 1193be @code{t} or @code{nil}.
1194 1194
1195 The printed representation of a bool-vector is like a string, except 1195 The printed representation of a bool-vector is like a string, except
1196that it begins with @samp{#&} followed by the length. The string 1196that it begins with @samp{#&} followed by the length. The string
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 747d865b0e1..265c76471f0 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -1273,22 +1273,24 @@ process's buffer, mimicking the actions of Emacs when there is no
1273filter. Such filter functions need to use @code{set-buffer} in order to 1273filter. Such filter functions need to use @code{set-buffer} in order to
1274be sure to insert in that buffer. To avoid setting the current buffer 1274be sure to insert in that buffer. To avoid setting the current buffer
1275semipermanently, these filter functions must save and restore the 1275semipermanently, these filter functions must save and restore the
1276current buffer. They should also update the process marker, and in some 1276current buffer. They should also check whether the buffer is still
1277cases update the value of point. Here is how to do these things: 1277alive, update the process marker, and in some cases update the value
1278of point. Here is how to do these things:
1278 1279
1279@smallexample 1280@smallexample
1280@group 1281@group
1281(defun ordinary-insertion-filter (proc string) 1282(defun ordinary-insertion-filter (proc string)
1282 (with-current-buffer (process-buffer proc) 1283 (when (buffer-live-p (process-buffer proc))
1283 (let ((moving (= (point) (process-mark proc)))) 1284 (with-current-buffer (process-buffer proc)
1285 (let ((moving (= (point) (process-mark proc))))
1284@end group 1286@end group
1285@group 1287@group
1286 (save-excursion 1288 (save-excursion
1287 ;; @r{Insert the text, advancing the process marker.} 1289 ;; <at> r{Insert the text, advancing the process marker.}
1288 (goto-char (process-mark proc)) 1290 (goto-char (process-mark proc))
1289 (insert string) 1291 (insert string)
1290 (set-marker (process-mark proc) (point))) 1292 (set-marker (process-mark proc) (point)))
1291 (if moving (goto-char (process-mark proc)))))) 1293 (if moving (goto-char (process-mark proc)))))))
1292@end group 1294@end group
1293@end smallexample 1295@end smallexample
1294 1296
@@ -1315,12 +1317,6 @@ expression searching or matching had to explicitly save and restore the
1315match data. Now Emacs does this automatically for filter functions; 1317match data. Now Emacs does this automatically for filter functions;
1316they never need to do it explicitly. @xref{Match Data}. 1318they never need to do it explicitly. @xref{Match Data}.
1317 1319
1318 A filter function that writes the output into the buffer of the
1319process should check whether the buffer is still alive. If it tries to
1320insert into a dead buffer, it will get an error. The expression
1321@code{(buffer-name (process-buffer @var{process}))} returns @code{nil}
1322if the buffer is dead.
1323
1324 The output to the function may come in chunks of any size. A program 1320 The output to the function may come in chunks of any size. A program
1325that produces the same output twice in a row may send it as one batch of 1321that produces the same output twice in a row may send it as one batch of
1326200 characters one time, and five batches of 40 characters the next. If 1322200 characters one time, and five batches of 40 characters the next. If
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 8cc9c082ce9..f9e81e8fc0f 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,7 @@
12010-08-23 Michael Albinus <michael.albinus@gmx.de>
2
3 * dbus.texi (Alternative Buses): New chapter.
4
12010-08-12 Stefan Monnier <monnier@iro.umontreal.ca> 52010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * cl.texi (Mapping over Sequences): Rename mapc => cl-mapc. 7 * cl.texi (Mapping over Sequences): Rename mapc => cl-mapc.
diff --git a/doc/misc/dbus.texi b/doc/misc/dbus.texi
index 248884532df..f4f96d55391 100644
--- a/doc/misc/dbus.texi
+++ b/doc/misc/dbus.texi
@@ -53,6 +53,7 @@ another. An overview of D-Bus can be found at
53* Asynchronous Methods:: Calling methods non-blocking. 53* Asynchronous Methods:: Calling methods non-blocking.
54* Receiving Method Calls:: Offering own methods. 54* Receiving Method Calls:: Offering own methods.
55* Signals:: Sending and receiving signals. 55* Signals:: Sending and receiving signals.
56* Alternative Buses:: Alternative buses.
56* Errors and Events:: Errors and events. 57* Errors and Events:: Errors and events.
57* Index:: Index including concepts, functions, variables. 58* Index:: Index including concepts, functions, variables.
58 59
@@ -1579,6 +1580,56 @@ which objects the GNU/Linux @code{hal} daemon adds.
1579@end defun 1580@end defun
1580 1581
1581 1582
1583@node Alternative Buses
1584@chapter Alternative buses.
1585@cindex bus names
1586@cindex UNIX domain socket
1587
1588Until now, we have spoken about the system and the session buses,
1589which are the default buses to be connected to. However, it is
1590possible to connect to any bus, from which the address is known. This
1591is a UNIX domain socket. Everywhere, where a @var{bus} is mentioned
1592as argument of a function (the symbol @code{:system} or the symbol
1593@code{:session}), this address can be used instead. The connection to
1594this bus must be initialized first.
1595
1596@defun dbus-init-bus bus
1597Establish the connection to D-Bus @var{bus}.
1598
1599@var{bus} can be either the symbol @code{:system} or the symbol
1600@code{:session}, or it can be a string denoting the address of the
1601corresponding bus. For the system and session busses, this function
1602is called when loading @file{dbus.el}, there is no need to call it
1603again.
1604
1605Example: You open another session bus in a terminal window on your host:
1606
1607@example
1608# eval `dbus-launch --auto-syntax`
1609# echo $DBUS_SESSION_BUS_ADDRESS
1610
1611@print{} unix:abstract=/tmp/dbus-JoFtAVG92w,guid=2f320a1ebe50b7ef58e
1612@end example
1613
1614In Emacs, you can access to this bus via its address:
1615
1616@lisp
1617(setq my-bus
1618 "unix:abstract=/tmp/dbus-JoFtAVG92w,guid=2f320a1ebe50b7ef58e")
1619
1620@result{} "unix:abstract=/tmp/dbus-JoFtAVG92w,guid=2f320a1ebe50b7ef58e"
1621
1622(dbus-init-bus my-bus)
1623
1624@result{} nil
1625
1626(dbus-get-unique-name my-bus)
1627
1628@result{} ":1.0"
1629@end lisp
1630@end defun
1631
1632
1582@node Errors and Events 1633@node Errors and Events
1583@chapter Errors and events. 1634@chapter Errors and events.
1584@cindex debugging 1635@cindex debugging