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