(rfc2047-encode): Use utf-8 charset as a last resort.
[bpt/emacs.git] / etc / NEWS
CommitLineData
29b7722a 1GNU Emacs NEWS -- history of user-visible changes.
5b87ad55 2
eb199145 3Copyright (C) 2010 Free Software Foundation, Inc.
5b87ad55 4See the end of the file for license conditions.
a933dad1 5
893db5bc 6Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
9a21d88b
KS
7If possible, use M-x report-emacs-bug.
8
eb199145 9This file is about changes in Emacs version 24.
9a21d88b 10
eb199145
GM
11See files NEWS.23, NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18,
12and NEWS.1-17 for changes in older Emacs versions.
9a21d88b
KS
13
14You can narrow news to a specific version by calling `view-emacs-news'
15with a prefix argument or by typing C-u C-h C-n.
3f7194ed 16
adce950d
CY
17
18Temporary note:
19 +++ indicates that the appropriate manual has already been updated.
20 --- means no change in the manuals is called for.
21When you add a new item, please add it without either +++ or ---
22so we will look at it and add it to the manual.
23
24\f
eb199145 25* Installation Changes in Emacs 24.1
09e18d03 26
338648ad
GM
27** Configure links against libselinux if it is found.
28You can disable this by using --without-selinux.
29
30---
31** By default, the installed Info and man pages are compressed.
32You can disable this by configuring --without-compress-info.
33
aded53ff
GM
34---
35** There are new configure options:
36--with-mmdf, --with-mail-unlink, --with-mailhost.
37These provide no new functionality, they just remove the need to edit
38lib-src/Makefile by hand in order to use the associated features.
39
1ddac986
GM
40---
41** There is a new configure option --with-crt-dir.
42This is only useful if your crt*.o files are in a non-standard location.
43
e547b051 44---
30c4d8dc 45** Emacs can be compiled against Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
e547b051
J
46to configure. Note that other libraries used by Emacs, RSVG and GConf,
47also depend on Gtk+. You can disable them with --without-rsvg and
48--without-gconf.
49
d9170db5
DN
50** There is a new configure option --enable-use-lisp-union-type.
51This is only useful for Emacs developers to debug certain types of bugs.
52These is not a new feature; only the configure flag is new.
53
0bfd685e 54\f
eb199145 55* Startup Changes in Emacs 24.1
4a263588 56
0bfd685e 57\f
eb199145 58* Changes in Emacs 24.1
7841339b 59
0191e222
CY
60** New emacsclient argument --parent-id ID can be used to open a
61client frame in parent X window ID, via XEmbed. This works like the
62--parent-id argument to Emacs.
63
902a6d8d
SM
64** Completion can cycle, depending on completion-cycle-threshold.
65
2372f278
SM
66** auto-mode-case-fold is now enabled by default.
67
f4b6ba46
EZ
68+++
69** Emacs now supports display and editing of bidirectional text.
f4b6ba46
EZ
70
71See the node "Bidirectional Editing" in the Emacs Manual for some
72initial documentation.
73
74To turn this on in any given buffer, set the buffer-local variable
75`bidi-display-reordering' to a non-nil value. The default is nil.
76
77The buffer-local variable `bidi-paragraph-direction', if non-nil,
78forces each paragraph in the buffer to have its base direction
79according to the value of this variable. Possible values are
80`right-to-left' and `left-to-right'. If the value is nil (the
81default), Emacs determines the base direction of each paragraph from
82its text, as specified by the Unicode Bidirectional Algorithm.
83
d20e1419
EZ
84The function `current-bidi-paragraph-direction' returns the actual
85value of paragraph base direction at point.
86
f4b6ba46
EZ
87Reordering of bidirectional text for display in Emacs is a "Full
88bidirectionality" class implementation of the Unicode Bidirectional
89Algorithm.
90
46759717
EZ
91Note that some advanced display features, such as overlay strings and
92`display' text properties, do not yet work correctly when
93bidirectional text is reordered for display.
94
303500aa 95** GTK scroll-bars are now placed on the right by default.
52834b6b
CY
96Use `set-scroll-bar-mode' to change this.
97
20fe03ad 98** GTK tool bars can have just text, just images or images and text.
d8004abe 99Customize `tool-bar-style' to choose style. On a Gnome desktop, the default
20fe03ad
JD
100is taken from the desktop settings.
101
8b2dd508
JD
102** GTK tool bars can be placed on the left/right or top/bottom of the frame.
103The frame-parameter tool-bar-position controls this. It takes the values
104top, left, tight or bottom. The Options => Show/Hide menu has entries
105for this.
106
aa1859f5
J
107** Emacs uses GTK tooltips by default if built with GTK. You can turn that
108off by customizing x-gtk-use-system-tooltips.
109
1ecb2d3f
JD
110** Lucid menus and dialogs can display antialiased fonts if Emacs is built
111with Xft.
99852628 112
b7d65a5f
GM
113** Basic SELinux support has been added.
114This requires Emacs to be linked with libselinux at build time.
115
d8004abe
GM
116*** Emacs preserves the SELinux file context when backing up, and
117optionally when copying files. To this end, copy-file has an extra
118optional argument, and backup-buffer and friends include the SELinux
119context in their return values.
b7d65a5f
GM
120
121*** The new functions file-selinux-context and set-file-selinux-context
122get and set the SELinux context of a file.
123
a5bee597
MA
124*** Tramp offers handlers for file-selinux-context and set-file-selinux-context
125for remote machines which support SELinux.
126
79ce172a 127** New scrolling commands `scroll-up-command' and `scroll-down-command'
7b05466f
JL
128(bound to C-v/[next] and M-v/[prior]) does not signal errors at top/bottom
129of buffer at first key-press (instead moves to top/bottom of buffer)
130when a new variable `scroll-error-top-bottom' is non-nil.
79ce172a 131
5a97d2da
JL
132** New scrolling commands `scroll-up-line' and `scroll-down-line'
133scroll a line instead of full screen.
134
a4b000fb
JL
135** New property `scroll-command' should be set on a command's symbol to
136define it as a scroll command affected by `scroll-preserve-screen-position.
9013a7f8 137
f1a5d776
CY
138** Trash changes
139
140*** `delete-by-moving-to-trash' now only affects commands that specify
141trashing. This avoids inadvertently trashing temporary files.
142
143*** Calling `delete-file' or `delete-directory' with a prefix argument
144now forces true deletion, regardless of `delete-by-moving-to-trash'.
145
f0bf7c8e
JL
146** New option `list-colors-sort' defines the color sort order
147for `list-colors-display'.
148
44198b6e
CY
149** An Emacs Lisp package manager is now included.
150This is a convenient way to download and install additional packages,
151from elpa.gnu.org. `M-x package-list-packages' shows a list of
152packages, which can be selected for installation.
153
154*** By default, all installed packages are loaded and activated
155automatically when Emacs starts up. To disable this, set
156`package-enable-at-startup' to nil. To change which packages are
157loaded, customize `package-load-list'.
158
0bfd685e 159\f
eb199145 160* Editing Changes in Emacs 24.1
b350bdf2 161
a982c7ec
CY
162** completion-at-point is now an alias for complete-symbol.
163
53967e09 164** mouse-region-delete-keys has been deleted.
b9229673
CY
165
166** Deletion changes
167
168*** New option `delete-active-region'.
169If non-nil, C-d, [delete], and DEL delete the region if it is active
170and no prefix argument is given. If set to `kill', these commands
171kill instead.
172
173*** New command `delete-forward-char', bound to C-d and [delete].
174This is meant for interactive use, and obeys `delete-active-region';
175delete-char, meant for Lisp, does not obey `delete-active-region'.
176
177*** `delete-backward-char' is now a Lisp function.
178Apart from obeying `delete-active-region', its behavior is unchanged.
179However, the byte compiler now warns if it is called from Lisp; you
180should use delete-char with a negative argument instead.
181
182*** The option `mouse-region-delete-keys' has been deleted.
183
f9d71b42
CY
184** Selection changes.
185
186The way Emacs interacts with the clipboard and primary selection, by
187default, is now similar to other X applications. In particular, kill
188and yank use the clipboard, in addition to the primary selection.
189
190*** `select-active-regions' now defaults to t.
191
192*** `x-select-enable-clipboard' now defaults to t.
193
2490cbbc
CY
194*** `x-select-enable-primary' now defaults to nil.
195
f9d71b42
CY
196*** `mouse-drag-copy-region' now defaults to nil.
197
198*** `mouse-2' is now bound to `mouse-yank-primary'.
199
9bae34bf 200\f
eb199145 201* Changes in Specialized Modes and Packages in Emacs 24.1
efeb796b 202
b3671a51
JL
203** Archive Mode has basic support to browse 7z archives.
204
27d3cd56
CY
205** In ido-mode, C-v is no longer bound to ido-toggle-vc.
206The reason is that this interferes with cua-mode.
207
c1e25821 208** partial-completion-mode is now obsolete.
79ccd68f
SM
209You can get a comparable behavior with:
210(setq completion-styles '(partial-completion initials))
211(setq completion-pcm-complete-word-inserts-delimiters t)
c1e25821 212
18c812bd 213** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
52834b6b
CY
214** Customize
215
216*** Customize buffers now contain a search field.
217The search is performed using `customize-apropos'.
218To turn off the search field, set custom-search-field to nil .
219
220*** Custom options now start out hidden if at their default values.
221Use the arrow to the left of the option name to toggle visibility.
222
223*** custom-buffer-sort-alphabetically now defaults to t.
224
225*** The color widget now has a "Choose" button, which allows you to
226choose a color via list-colors-display.
227
f5d6548a
JL
228** Dired-x
229
230*** dired-jump and dired-jump-other-window called with a prefix argument
231read a file name from the minibuffer instead of using buffer-file-name.
232
855a2294
DN
233** VC and related modes
234
e97a42c1 235*** New VC commands: vc-log-incoming, vc-log-outgoing, vc-find-conflicted-file.
31527c56 236
6941ffec
DN
237**** vc-log-incoming for Git runs "git fetch" so that the necessary
238data is available locally.
239
eccdfe5f
DN
240**** vc-log-incoming and vc-log-outgoing for Git require version 1.7 (or newer).
241
54d3626e
DN
242*** New key bindings: C-x v I and C-x v O bound to vc-log-incoming and
243vc-log-outgoing, respectively.
244
855a2294
DN
245*** vc-dir for Bzr supports viewing shelve contents and shelving snapshots.
246
09158997 247*** Special markup can be added to log-edit buffers.
e97a42c1
SM
248The log-edit buffers are expected to have a format similar to email messages
249with headers of the form:
250 Author: <author of this change>
251 Summary: <one line summary of this change>
252 Fixes: <reference to the bug fixed by this change>
253Some backends handle some of those headers specially, but any unknown header
254is just left as is in the message, so it is not lost.
09158997 255
fab43c76
DN
256**** vc-git handles Author: and Date:
257**** vc-hg handles Author: and Date:
258**** vc-bzr handles Author:, Date: and Fixes:
259**** vc-mtn handles Author: and Date:
260
8117868f
DN
261** Directory local variables can apply to file-less buffers.
262For example, adding "(diff-mode . ((mode . whitespace)))" to your
d8004abe 263.dir-locals.el file, will turn on `whitespace-mode' for *vc-diff* buffers.
8117868f 264
7492acc9
MM
265** SQL Mode enhancements.
266
30c4d8dc
MM
267*** Several variables have been marked as safe local variables. The
268variables `sql-product', `sql-user', `sql-server', `sql-database' and
269`sql-port' can now be safely used as local variables.
7492acc9
MM
270
271*** Added ability to login with a port on MySQL.
272The custom variable `sql-port' can be specified for connection to
273MySQL servers.
274
275*** Custom variables control prompting for login parameters.
276Each supported product has a custom variable `sql-*-login-params'
277which is a list of the parameters to be prompted for before a
278connection is established.
279
5474c40f
MM
280By default, the value of the parameter is simply prompted for. For
281`server' and `database', they can be specified in a list as shown
282below:
283
284 (server :file ARG)
285 (database :file ARG)
286 (server :completion ARG)
287 (database :completion ARG)
288
289The ARG when :file is specified is a regexp that will match valid file
290names (without the directory portion). Generally these strings will
291be of the form ".+\.SUF" where SUF is the desired file suffix.
292
293When :completion is specified, the ARG corresponds to the PREDICATE
294argument to the `completing-read' function.
295
30c4d8dc
MM
296*** Added `sql-connection-alist' to record login parameter values.
297An alist for recording different username, database and server
298values. If there are multiple databases that you connect to the
299parameters needed can be stored in this alist.
300
301For example, the following might be set in the user's init.el:
302
303 (setq sql-connection-alist
304 '((dev (sql-product 'sqlite)
305 (sql-database "/home/mmaug/dev.db"))
306 (prd (sql-product 'oracle)
307 (sql-user "mmaug")
308 (sql-database "iprd2a"))))
309
310This defines two connections named "dev" and "prd".
311
312*** Added `sql-connect' to use predefined connections.
313Sets the login parameters based on the values in the
314`sql-connection-alist' and start a SQL interactive session. Any
315values specified in the connection will not be prompted for.
316
317In the example above, if the user were to invoke M-x sql-connect, they
318would be prompted for the connection. The user can respond with
319either "dev" or "prd". The "dev" connection would connect to the
320SQLite database without prompting; the "prd" connection would prompt
321for the users password and then connect to the Oracle database.
322
d26b0ea9
MM
323**** Added SQL->Start... submenu when connections are defined.
324When connections have been defined, There is a submenu available that
325allows the user to select one to start a SQLi session. The "Start
326SQLi Session" item moves to the "Start..." submenu when cnnections
327have been defined.
328
329**** Added "Save Connection" menu item in SQLi buffers.
330When a SQLi session is not started by a connection then
331`sql-save-connection' will gather the login params specified for the
332session and save them as a new connection.
333
7492acc9
MM
334*** Added option `sql-send-terminator'.
335When set makes sure that each command sent with `sql-send-*' commands
336are properly terminated and submitted to the SQL processor.
337
338*** Added option `sql-oracle-scan-on'.
339When set commands sent to Oracle's SQL*Plus are scanned for strings
30c4d8dc
MM
340starting with an ampersand and the user is asked for replacement text.
341In general, the SQL*Plus option SCAN should always be set OFF under
342SQL interactive mode and this option used in its place.
7492acc9
MM
343
344*** SQL interactive mode will replace tabs with spaces.
345This prevents the comand interpretter for MySQL and Postgres from
346listing object name completions when being sent text via
347`sql-send-*' functions.
348
349*** An API for manipulating SQL product definitions has been added.
350
5e418f17
JL
351** s-region.el is now declared obsolete, superceded by shift-select-mode
352enabled by default in 23.1.
353
691cf4a0
NR
354** gdb-mi
355
356*** GDB User Interface migrated to GDB Machine Interface and now
357supports multithread non-stop debugging and debugging of several
358threads simultaneously.
359
eb199145
GM
360\f
361* New Modes and Packages in Emacs 24.1
d445b3f8 362
5ad4bef5
SM
363** smie.el is a package providing a simple generic indentation engine.
364
7725ebb7
MA
365** secrets.el is an implementation of the Secret Service API, an
366interface to password managers like GNOME Keyring or KDE Wallet. The
065f2743
MA
367Secret Service API requires D-Bus for communication. The command
368`secrets-show-secrets' offers a buffer with a visualization of the
369secrets.
7725ebb7 370
f9e78150
MA
371** notifications.el provides an implementation of the Desktop
372Notifications API. It requires D-Bus for communication.
373
eb199145
GM
374\f
375* Incompatible Lisp Changes in Emacs 24.1
6dfcbe31 376
288cf4e9
SM
377** A backquote not followed by a space is now always treated as new-style.
378
fd5c9dfa 379** Test for special mode-class was moved from view-file to view-buffer.
288cf4e9
SM
380FIXME: This only says what was changed, but not what are the
381programmer-visible consequences.
fd5c9dfa 382
3b7e1d5f
SM
383** Passing a nil argument to a minor mode function now turns the mode
384 ON unconditionally.
6431f2e6
CY
385
386** During startup, Emacs no longer adds entries for `menu-bar-lines'
387and `tool-bar-lines' to `default-frame-alist' and
388`initial-frame-alist'. With these alist entries omitted, `make-frame'
389checks the value of the variable `menu-bar-mode'/`tool-bar-mode' to
390determine whether to create a menu-bar or tool-bar, respectively.
391If the alist entries are added, they override the value of
392`menu-bar-mode'/`tool-bar-mode'.
393
fe0aa820
CY
394** Regions created by mouse dragging are now normal active regions,
395similar to the ones created by shift-selection. In previous Emacs
396versions, these regions were delineated by `mouse-drag-overlay', which
397has now been removed.
d6d8ee7a 398
eb199145
GM
399\f
400* Lisp changes in Emacs 24.1
9097e8af 401
4e2db1fe 402** frame-local variables cannot be let-bound any more.
10dcc561 403** prog-mode is a new major-mode meant to be the parent of programming mode.
f44379e7
SM
404** define-minor-mode accepts a new keyword :variable.
405
f1a5d776
CY
406** `delete-file' and `delete-directory now accept optional arg TRASH.
407Trashing is performed if TRASH and `delete-by-moving-to-trash' are
408both non-nil. Interactively, TRASH defaults to t, unless a prefix
409argument is supplied (see Trash changes, above).
53967e09 410
8f92b8ad
SM
411** buffer-substring-filters is obsoleted by filter-buffer-substring-functions.
412
00278747
SM
413** New completion style `substring'.
414
00fe2df1
JL
415** Image API
416
417*** When the image type is one of listed in `image-animated-types'
1546c559 418and the number of sub-images in the image is more than one, then the
00fe2df1
JL
419new function `create-animated-image' creates an animated image where
420sub-images are displayed successively with the duration defined by
421`image-animate-max-time' and the delay between sub-images defined
422by the Graphic Control Extension of the image.
423
1546c559
JL
424*** `image-extension-data' is renamed to `image-metadata'.
425
a6020335
MH
426** Isearch
427
428*** New hook `isearch-update-post-hook' that runs in `isearch-update'.
429
9326ba26
CY
430** Progress reporters can now "spin".
431The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can
432now be nil, or omitted. This makes a "non-numeric" reporter. Each
433time you call `progress-reporter-update' on that progress reporter,
434with a nil or omitted VALUE argument, the reporter message is
435displayed with a "spinning bar".
436
eb199145
GM
437\f
438* Changes in Emacs 24.1 on non-free operating systems
d53a60a6 439
04779484
JB
440** New configure.bat option --enable-checking builds emacs with extra
441runtime checks.
442
e3aef5c6
CS
443** New configure.bat option --distfiles to specify files to be
444 included in binary distribution
445
446** New make target `dist' to create binary disttribution for Windows
447 platform
448
05197f40 449\f
a933dad1 450----------------------------------------------------------------------
5b87ad55 451This file is part of GNU Emacs.
a933dad1 452
ab73e885 453GNU Emacs is free software: you can redistribute it and/or modify
5b87ad55 454it under the terms of the GNU General Public License as published by
ab73e885
GM
455the Free Software Foundation, either version 3 of the License, or
456(at your option) any later version.
5b87ad55
GM
457
458GNU Emacs is distributed in the hope that it will be useful,
459but WITHOUT ANY WARRANTY; without even the implied warranty of
460MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
461GNU General Public License for more details.
a933dad1 462
5b87ad55 463You should have received a copy of the GNU General Public License
ab73e885 464along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
a933dad1 465
05197f40 466\f
a933dad1
DL
467Local variables:
468mode: outline
469paragraph-separate: "[ \f]*$"
470end: