NEWS 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477
  1. GNU Emacs NEWS -- history of user-visible changes.
  2. Copyright (C) 2010-2012 Free Software Foundation, Inc.
  3. See the end of the file for license conditions.
  4. Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
  5. If possible, use M-x report-emacs-bug.
  6. This file is about changes in Emacs version 24.
  7. See files NEWS.23, NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18,
  8. and NEWS.1-17 for changes in older Emacs versions.
  9. You can narrow news to a specific version by calling `view-emacs-news'
  10. with a prefix argument or by typing C-u C-h C-n.
  11. * Changes in Emacs 24.2
  12. ** This is mainly a bug-fix release.
  13. * Installation Changes in Emacs 24.1
  14. ** Emacs can be compiled with Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
  15. to configure. Note that other libraries used by Emacs, RSVG and GConf,
  16. also depend on Gtk+. You can disable them with --without-rsvg and
  17. --without-gconf.
  18. ** Emacs can be compiled with GnuTLS support.
  19. This happens by default if a suitably recent version of the library is
  20. found at build time. To prevent this, use the configure option
  21. `--without-gnutls'. See below for GnuTLS features.
  22. ** Emacs can be compiled with SELinux support.
  23. This happens by default if a suitably recent version of the library is
  24. found at build time. To prevent this, use the configure option
  25. `--without-selinux'. See below for SELinux features.
  26. ** Emacs can be compiled with ImageMagick support.
  27. This happens by default if a suitably recent version of the library is
  28. found at build time. To prevent this, use the configure option
  29. `--without-imagemagick'. See below for ImageMagick features.
  30. This feature is not available for the Nextstep or MS ports.
  31. ** Emacs can be compiled with libxml2 support.
  32. This happens by default if a suitably recent version of the library is
  33. found at build time. To prevent this, use the configure option
  34. `--without-xml2'. See below for libxml2 features.
  35. ** By default, the installed Info and man pages are compressed.
  36. You can disable this by configuring --without-compress-info.
  37. ** New configure option --with-wide-int.
  38. With it, Emacs integers typically have 62 bits, even on 32-bit machines.
  39. On 32-bit hosts, this raises the limit on buffer sizes from about 512 MiB
  40. to about 2 GiB.
  41. ** New configure options: --with-mmdf, --with-mail-unlink, --with-mailhost.
  42. These provide no new functionality, they just remove the need to edit
  43. lib-src/Makefile by hand in order to use the associated features.
  44. ** New configure option --enable-use-lisp-union-type.
  45. This is only useful for Emacs developers to debug certain types of bugs.
  46. This is not a new feature; only the configure flag is new.
  47. ** The standalone programs digest-doc and sorted-doc are removed.
  48. Emacs now uses Lisp commands `doc-file-to-man' and `doc-file-to-info'.
  49. ** The standalone program `fakemail' is removed.
  50. If you need it, feedmail.el provides a superset of the functionality.
  51. * Startup Changes in Emacs 24.1
  52. ** The --unibyte, --multibyte, --no-multibyte, and --no-unibyte
  53. command line arguments, and the EMACS_UNIBYTE environment variable, no
  54. longer have any effect. (They were declared obsolete in Emacs 23.)
  55. ** New command line option `--no-site-lisp' removes site-lisp directories
  56. from load-path. -Q now implies this. This option does not affect the
  57. EMACSLOADPATH environment variable (and hence has no effect for
  58. Nextstep builds).
  59. * Changes in Emacs 24.1
  60. ** Completion
  61. *** Many packages now use the `completion-at-point' command,
  62. rather than implementing separate completion commands.
  63. *** `completion-at-point' now handles tags and semantic completion.
  64. *** Completion in a non-minibuffer now tries to detect the end of completion
  65. and pops down the *Completions* buffer accordingly.
  66. *** New option `completion-cycle-threshold' allows completion cycling.
  67. *** New option `completion-category-overrides' for overriding the
  68. default completion style in certain circumstances.
  69. *** New completion style `substring'.
  70. *** Completion of buffer names uses `substring' completion by default.
  71. *** The option `widget-complete-field' has been removed.
  72. ** Mail changes
  73. *** The first time you try sending mail, Emacs asks for a mail method.
  74. This is implemented by a new default for `send-mail-function', which
  75. is `sendmail-query-once'. This offers to use the smtpmail package, or
  76. to use the old defaults relying on external mail facilities
  77. (`sendmail-send-it' on GNU/Linux and other Unix-like systems, and
  78. `mailclient-send-it' on Windows).
  79. *** Typing C-c m in the buffer made by M-x report-emacs-bug transfers
  80. the report to your desktop's preferred mail client, if there is one.
  81. This uses either the "xdg-email" utility, or Mac OS's "open" command.
  82. *** See Changes in Specialized Modes and Packages for SMTPmail changes
  83. and Mail mode changes
  84. ** Emacs server and client changes
  85. *** New option `server-port' specifies the port for TCP Emacs servers.
  86. *** New emacsclient argument -q/--quiet suppresses some status messages.
  87. *** New emacsclient argument --frame-parameters specifies the frame
  88. parameters of any newly-created graphical frame.
  89. *** If emacsclient shuts down due to Emacs signaling an error,
  90. its exit status is 1.
  91. *** New emacsclient argument --parent-id ID.
  92. This opens a client frame in parent X window ID, via XEmbed, similar
  93. to the --parent-id argument to Emacs.
  94. ** Internationalization changes
  95. *** Emacs now supports display and editing of bidirectional text.
  96. Right-to-left (RTL) scripts, such as Arabic, Farsi, and Hebrew, are
  97. displayed in the correct visual order as expected by users of those
  98. scripts. The display reordering is a "full bidirectionality" class
  99. implementation of the Unicode Bidirectional Algorithm (UBA). Buffers
  100. with no RTL text should look exactly the same as before.
  101. **** New buffer-local variable `bidi-display-reordering'.
  102. To disable display reordering in a buffer, change this to nil.
  103. **** New buffer-local variable `bidi-paragraph-direction'.
  104. If nil (the default), Emacs determines the base direction of each
  105. paragraph from its text, as specified by the UBA. Setting the value
  106. to `right-to-left' or `left-to-right' forces a base direction on each
  107. paragraph.
  108. Paragraphs with right-to-left base direction are displayed starting at
  109. the right window edge.
  110. *** Enhanced support for characters with no glyphs in available fonts,
  111. or, on text terminals, characters that cannot be encoded by the
  112. terminal coding system. The new option `glyphless-char-display-control'
  113. specifies how to display them: as a hexadecimal code in a box, a thin
  114. 1-pixel space, an empty box, etc.
  115. *** New input methods for Farsi and Bulgarian
  116. (farsi-isiri-9147, farsi-transliterate-banan, bulgarian-alt-phonetic).
  117. *** `nobreak-char-display' now also highlights Unicode hyphen chars
  118. (U+2010 and U+2011).
  119. *** New Hebrew translation of the Emacs Tutorial.
  120. Type `C-u C-h t' to choose it in case your language setup doesn't
  121. automatically select it.
  122. ** An Emacs Lisp package manager is now included.
  123. This is a convenient way to download and install additional packages,
  124. from a package repository at http://elpa.gnu.org.
  125. *** M-x list-packages shows a list of packages, which can be
  126. selected for installation.
  127. *** New command `describe-package', bound to `C-h P'.
  128. *** By default, all installed packages are loaded automatically when
  129. Emacs starts up. To disable this, set `package-enable-at-startup' to
  130. nil. To specify the packages to load, customize `package-load-list'.
  131. ** Custom theme changes
  132. *** New command `M-x customize-themes', which provides a convenient
  133. interface for enabling and disabling Custom themes.
  134. *** New option `custom-theme-load-path' is the load path for themes.
  135. Emacs no longer looks for Custom themes in `load-path'. The default
  136. value of `custom-theme-load-path' says to look for themes in
  137. `custom-theme-directory', followed by a subdirectory of
  138. `data-directory' named "themes/", which contains a small selection of
  139. built-in Custom themes.
  140. *** New option `custom-safe-themes' records known-safe theme files.
  141. If a theme is not in this list, Emacs queries before loading it, and
  142. offers to save the theme to `custom-safe-themes' automatically. By
  143. default, all themes included in Emacs are treated as safe.
  144. ** Improved GTK integration
  145. *** GTK scroll-bars are now placed on the right by default.
  146. The function `set-scroll-bar-mode' can change this.
  147. *** GTK tool bars can have just text, just images or images and text.
  148. Customize `tool-bar-style' to choose the style. On a Gnome desktop,
  149. the default is taken from desktop settings.
  150. *** GTK tool bars can be placed on any edge of the frame.
  151. The frame-parameter tool-bar-position controls this. It takes the
  152. values top, left, right or bottom. The Options => Show/Hide menu has
  153. entries for this.
  154. *** The default colors for selected text (the `region' face) are taken
  155. from the GTK theme when Emacs is built with GTK.
  156. *** Emacs uses GTK tooltips by default if built with GTK.
  157. You can disable this by changing `x-gtk-use-system-tooltips' to nil.
  158. ** Graphical interface changes
  159. *** On graphical displays, the mode-line no longer ends in dashes.
  160. Also, the first dash (which does not indicate anything) is just
  161. displayed as a space.
  162. *** `menu-bar-select-buffer-function' lets you choose another operation
  163. instead of `switch-to-buffer' when selecting an item in the Buffers menu.
  164. *** Lucid menus and dialogs can display antialiased fonts if Emacs is
  165. built with Xft. These fonts can be set via X resources, for example:
  166. Emacs.pane.menubar.font: Courier-12
  167. ** Exiting changes
  168. *** Emacs now calls `kill-emacs' if it receives SIGTERM or SIGHUP,
  169. or if it receives a SIGINT signal in batch mode.
  170. *** `kill-emacs-hook' is now also run in batch mode.
  171. Third-party code which adds to `kill-emacs-hook' should check if they
  172. do the right thing in batch mode.
  173. ** Scrolling changes
  174. *** New scrolling commands `scroll-up-command' and `scroll-down-command'
  175. (bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom
  176. of buffer at first key-press (instead they move to top/bottom of buffer)
  177. when `scroll-error-top-bottom' is non-nil.
  178. *** New option `scroll-error-top-bottom' (see above).
  179. *** New scrolling commands `scroll-up-line' and `scroll-down-line'
  180. scroll a line instead of full screen.
  181. *** New property `scroll-command' should be set on a command's symbol to
  182. define it as a scroll command affected by `scroll-preserve-screen-position'.
  183. *** If you customize `scroll-conservatively' to a value greater than 100,
  184. Emacs will never recenter point in the window when it scrolls due to
  185. cursor motion commands or commands that move point (e.f., `M-g M-g').
  186. Previously, you needed to use `most-positive-fixnum' as the value of
  187. `scroll-conservatively' to achieve the same effect.
  188. *** "Aggressive" scrolling now honors the scroll margins.
  189. If you customize `scroll-up-aggressively' or
  190. `scroll-down-aggressively' and move point off the window, Emacs now
  191. scrolls the window so as to avoid positioning point inside the scroll
  192. margin.
  193. ** Basic SELinux support has been added.
  194. This requires Emacs to be linked with libselinux at build time.
  195. *** Emacs preserves the SELinux file context when backing up.
  196. Also, the function `copy-file' has an extra optional argument for
  197. preserving SELinux context, and the return value of `backup-buffer'
  198. now includes the SELinux context.
  199. *** New functions `file-selinux-context' and `set-file-selinux-context'
  200. get and set the SELinux context of a file.
  201. ** Trash changes
  202. *** `delete-by-moving-to-trash' now only affects commands that specify
  203. trashing. This avoids inadvertently trashing temporary files.
  204. *** Calling `delete-file' or `delete-directory' with a prefix argument
  205. now forces true deletion, regardless of `delete-by-moving-to-trash'.
  206. ** File- and directory-local variable changes
  207. *** You can stop directory local vars from applying to subdirectories.
  208. Add an element (subdirs . nil) to the alist portion of any variables
  209. settings to indicate that the section should not apply to
  210. subdirectories.
  211. *** Directory local variables can apply to some file-less buffers.
  212. Affected modes include dired, vc-dir, and log-edit. For example,
  213. adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will
  214. turn on `whitespace-mode' for *vc-diff* buffers. Modes should call
  215. `hack-dir-local-variables-non-file-buffer' to support this.
  216. *** Using "mode: MINOR-MODE" to enable a minor mode is deprecated.
  217. Instead, use "eval: (minor-mode 1)".
  218. *** The variable `inhibit-first-line-modes-regexps' has been renamed
  219. to `inhibit-local-variables-regexps'. As the name suggests, it now
  220. applies to ALL file local variables, not just -*- lines. The
  221. associated `inhibit-first-line-modes-suffixes' has been renamed in the
  222. corresponding way.
  223. ** Window changes
  224. *** The `quit-window' command now restores the last buffer displayed
  225. in the quitted window.
  226. *** Resizing an Emacs frame now preserves proportional window sizes,
  227. modulo restrictions like window minimum sizes and fixed-size windows.
  228. *** The behavior of `display-buffer' is now customizable in detail.
  229. **** New option `display-buffer-base-action' specifies a list of
  230. user-determined display "actions" (functions and optional arguments
  231. for choosing the displaying window).
  232. This takes precedence over the default display action, which is
  233. specified by `display-buffer-fallback-action'.
  234. **** New option `display-buffer-alist' maps buffer name regexps to
  235. display actions, taking precedence over `display-buffer-base-action'.
  236. *** New option `window-combination-limit'.
  237. The new option `window-combination-limit' allows to return the space
  238. obtained for resizing or creating a window more reliably to the window
  239. from which such space was obtained.
  240. *** New option `window-combination-resize'.
  241. The new option `window-combination-resize' allows to split a window that
  242. otherwise cannot be split because it's too small by stealing space from
  243. other windows in the same combination. Subsequent resizing or deletion
  244. of the window will resize all windows in the same combination as well.
  245. *** New option `frame-auto-hide-function' lets you choose between
  246. iconifying or deleting a frame when burying a buffer in a dedicated
  247. frame, or quitting a window showing a buffer in a frame of its own.
  248. *** New commands `maximize-window' and `minimize-window'.
  249. These maximize and minimize the size of a window within its frame.
  250. *** New commands `switch-to-prev-buffer' and `switch-to-next-buffer'.
  251. These functions allow to navigate through the live buffers that have
  252. been shown in a specific window.
  253. ** Minibuffer changes
  254. *** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'.
  255. This is handy for minibuffer-only frames, and is also used for the feature
  256. where mouse-1 pops up *Messages*"', which can now easily be changed.
  257. *** Minibuffers set `truncate-lines' to nil.
  258. If you want to change the value to something else, you could use
  259. for example `minibuffer-setup-hook'.
  260. ** `auto-mode-case-fold' is now enabled by default.
  261. ** `backup-by-copying-when-mismatch' now defaults to t.
  262. ** New basic faces `error', `warning', `success'.
  263. These are used to highlight text indicating failure, caution or
  264. successful operation.
  265. ** New option `list-colors-sort' defines the color sort order
  266. for `list-colors-display'.
  267. ** The variable `focus-follows-mouse' now always defaults to nil.
  268. * Editing Changes in Emacs 24.1
  269. ** Search changes
  270. *** C-y in Isearch is now bound to `isearch-yank-kill', instead of
  271. `isearch-yank-line'.
  272. *** M-y in Isearch is now bound to `isearch-yank-pop', instead of
  273. `isearch-yank-kill'.
  274. *** M-s C-e in Isearch is now bound to `isearch-yank-line'.
  275. ** New commands `count-words-region' and `count-words'.
  276. *** M-= is bound to `count-words-region', not `count-lines-region'.
  277. The `count-words-region' command, when called interactively, reports
  278. the number of lines, words, and characters in the region. It is a
  279. superset of the old `count-lines-region', which is now an obsolete
  280. alias for it.
  281. ** The command `just-one-space' (M-SPC), if given a negative argument,
  282. also deletes newlines around point.
  283. ** Deletion changes
  284. *** New option `delete-active-region'.
  285. If non-nil, [delete] and DEL delete the region if it is active and no
  286. prefix argument is given. If set to `kill', those commands kill
  287. instead.
  288. *** New command `delete-forward-char', bound to [delete].
  289. This is meant for interactive use, and obeys `delete-active-region'.
  290. The command `delete-char' does not obey `delete-active-region'.
  291. *** `delete-backward-char' is now a Lisp function.
  292. Apart from obeying `delete-active-region', its behavior is unchanged.
  293. However, the byte compiler now warns if it is called from Lisp; Lisp
  294. callers should use delete-char with a negative argument instead.
  295. *** The option `mouse-region-delete-keys' has been deleted.
  296. ** Selection changes.
  297. The default handling of clipboard and primary selections has been
  298. changed to conform with modern X applications. In short, most
  299. commands for killing and yanking text now use the clipboard, while
  300. mouse commands use the primary selection.
  301. In the following, we provide a list of these changes, followed by a
  302. list of steps to get the old behavior back if you prefer that.
  303. *** `select-active-regions' now defaults to t.
  304. Merely selecting text (e.g. with drag-mouse-1) no longer puts it in
  305. the kill ring. The selected text is put in the primary selection, if
  306. the system possesses a separate primary selection facility (e.g. X).
  307. **** `select-active-regions' also accepts a new value, `only'.
  308. This means to only set the primary selection for temporarily active
  309. regions (usually made by mouse-dragging or shift-selection);
  310. "ordinary" active regions, such as those made with C-SPC followed by
  311. point motion, do not alter the primary selection.
  312. **** `mouse-drag-copy-region' now defaults to nil.
  313. *** mouse-2 is now bound to `mouse-yank-primary'.
  314. This pastes from the primary selection, ignoring the kill-ring.
  315. Previously, mouse-2 was bound to `mouse-yank-at-click'.
  316. *** `x-select-enable-clipboard' now defaults to t on all platforms.
  317. *** `x-select-enable-primary' now defaults to nil.
  318. Thus, commands that kill text or copy it to the kill-ring (such as
  319. M-w, C-w, and C-k) also use the clipboard---not the primary selection.
  320. **** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now
  321. exactly equivalent to M-w, C-w, and C-y respectively.
  322. **** Note that on MS-Windows, `x-select-enable-clipboard' was already
  323. non-nil by default, as Windows does not support the primary selection
  324. between applications.
  325. *** To return to the previous behavior, do the following:
  326. **** Change `select-active-regions' to nil.
  327. **** Change `mouse-drag-copy-region' to t.
  328. **** Change `x-select-enable-primary' to t (on X only).
  329. **** Change `x-select-enable-clipboard' to nil.
  330. **** Bind `mouse-yank-at-click' to mouse-2.
  331. *** Support for X cut buffers has been removed.
  332. *** X clipboard managers are now supported.
  333. To inhibit this, change `x-select-enable-clipboard-manager' to nil.
  334. ** New command `C-x r N' (`rectangle-number-lines') numbers the lines
  335. in the current rectangle. With a prefix argument, this prompts for a
  336. number to count from and for a format string.
  337. ** `redisplay-dont-pause' now defaults to t.
  338. This makes Emacs feel more responsive to editing commands that arrive
  339. at high rate, e.g. if you lean on some key, because stopping redisplay
  340. in the middle (when this variable is nil) forces more expensive
  341. updates later on, and Emacs appears to be unable to keep up.
  342. ** The behavior of <TAB> for active regions in Text mode has changed.
  343. In Text and related modes, typing <TAB> (`indent-for-tab-command')
  344. when the region is active causes Emacs to indent all the lines in the
  345. region, aligning them with the line previous to the first line in the
  346. region (or with the left margin if there is no previous line).
  347. ** When `occur' is called with a prefix argument, matching strings are
  348. collected into the `*Occur*' buffer without line numbers. If there
  349. are parenthesized subexpressions in the specified regexp, `occur'
  350. reads replacement text that may contain \\& and \\N whose convention
  351. follows `replace-match'.
  352. * Changes in Specialized Modes and Packages in Emacs 24.1
  353. ** Archive Mode has basic support for browsing and updating 7z archives.
  354. ** BibTeX mode
  355. *** BibTeX mode now supports biblatex.
  356. Use the variable `bibtex-dialect' to select different BibTeX dialects.
  357. `bibtex-entry-field-alist' is now an obsolete alias for
  358. `bibtex-BibTeX-entry-alist'.
  359. *** New command `bibtex-search-entries', bound to C-c C-a.
  360. *** New `bibtex-entry-format' option `sort-fields', disabled by default.
  361. *** New variable `bibtex-search-entry-globally'.
  362. ** Browse-url
  363. *** New option `browse-url-mailto-function' specifies how to handle "mailto:"s.
  364. *** The default browser used by the package is now the "xdg-open" program,
  365. on platforms that support it. This calls your desktop's preferred browser.
  366. ** Calendar, Diary, and Appt
  367. *** Diary entries can contain non-printing "comments".
  368. See the variable `diary-comment-start'.
  369. *** Appointments can specify their individual warning times.
  370. See the variable `appt-warning-time-regexp'.
  371. *** The function specified by `appt-disp-window-function' may be passed
  372. lists of arguments if multiple appointments are due at similar times.
  373. If you are using a custom function for this, you should update it.
  374. *** New function `diary-hebrew-birthday'.
  375. *** Elements of `calendar-day-abbrev-array' and `calendar-month-abbrev-array'
  376. may no longer be nil, but must all be strings.
  377. *** The obsolete (since Emacs 22.1) method of enabling the appt
  378. package by adding `appt-make-list' to `diary-hook' has been removed.
  379. Use `appt-activate' instead.
  380. *** Some appt variables (obsolete since Emacs 22.1) have been removed:
  381. appt-issue-message (use the function appt-activate)
  382. appt-visible/appt-msg-window (use the variable appt-display-format)
  383. *** Some diary function aliases (obsolete since Emacs 22.1) have been removed:
  384. view-diary-entries, list-diary-entries, show-all-diary-entries
  385. ** CC Mode
  386. *** New feature to "guess" the style in an existing buffer.
  387. The main entry point is M-x c-guess.
  388. *** Java Mode now supports Java 5.0 (Tiger) and 6 (Mustang).
  389. *** `c-beginning-of-defun' and `c-end-of-defun' now respect nested scopes.
  390. Thus C-M-a will, by default, go to the beginning of the immediate function,
  391. not the top level.
  392. *** "Macros with semicolons" can be registered for correct indentation.
  393. Where such a macro ends a line (no semicolon) the next statement is no longer
  394. parsed as a statement continuation.
  395. ** Comint and modes derived from it use the standard completion code.
  396. ** Compilation mode
  397. *** Compilation mode can be used without Font Lock mode.
  398. `compilation-parse-errors-function' is now obsolete.
  399. *** New variable `compilation-filter-start', which is bound while
  400. `compilation-filter-hook' runs. It records the start position of the
  401. text inserted by `compilation-filter'.
  402. *** `compilation-error-screen-columns' and `compilation-first-column'
  403. are obeyed in the editing buffer. So programming language modes can
  404. set them, whereas previously only the value in the *Compilation*
  405. buffer was used.
  406. ** Customize
  407. *** Customize buffers now contain a search field.
  408. The search is performed using `customize-apropos'.
  409. To turn off the search field, set `custom-search-field' to nil.
  410. *** Options in customize group buffers start out hidden if not customized.
  411. Use the arrow to the left of the option name to toggle visibility.
  412. *** custom-buffer-sort-alphabetically now defaults to t.
  413. *** The color widget now has a "Choose" button, which allows you to
  414. choose a color via `list-colors-display'.
  415. ** D-Bus
  416. *** It is now possible to access buses other than the default system
  417. or session bus.
  418. *** The `dbus-register-method' and `dbus-register-property' functions
  419. optionally do not register names.
  420. *** The new function `dbus-register-service' registers a known service
  421. name on a D-Bus without also registering a property or a method.
  422. ** Dired-x
  423. *** C-x C-j (`dired-jump') and C-x 4 C-j (`dired-jump-other-window'),
  424. if called with a prefix argument, read a file name from the minibuffer
  425. instead of using the current buffer.
  426. *** The "dired local variables" feature of Dired-x is obsolete.
  427. The standard directory local variables feature replaces it.
  428. ** ERC changes
  429. *** New options `erc-autojoin-timing' and `erc-autojoin-delay',
  430. controlling attempts to autojoin a channel.
  431. *** New variable `erc-coding-system-precedence': If we use `undecided'
  432. as the server coding system, this variable will then be consulted.
  433. The default is to decode strings that can be decoded as utf-8 as
  434. utf-8, and do the normal `undecided' decoding for the rest.
  435. ** Eshell changes
  436. *** The default value of `eshell-directory-name' has changed
  437. to be an "eshell" directory in `user-emacs-directory'.
  438. The old "~/.eshell/" directory is still used if it exists, though.
  439. ** gdb-mi
  440. *** The M-x gdb command now uses the GDB Machine Interface protocol.
  441. It now supports multithread non-stop debugging and simultaneous
  442. debugging of several threads.
  443. ** Image mode
  444. *** RET (`image-toggle-animation') toggles animation, if applicable.
  445. Animation plays once, unless the option `image-animate-loop' is non-nil.
  446. ** Info
  447. *** New command M-x info-display-manual displays a named Info manual.
  448. If that manual is already visited in some Info buffer, it displays
  449. that buffer. (This is handy if you have many manuals in many *info*
  450. buffers, and don't remember the name of the buffer visiting the manual
  451. you want to consult.) Otherwise, it loads and displays the manual.
  452. *** `e' is now bound to `end-of-buffer' rather than to `Info-edit'.
  453. This is for compatibility with the stand-alone Info reader program,
  454. and also because `Info-edit' is a rarely used command that is disabled
  455. by default.
  456. ** Mail mode changes (not Message mode)
  457. *** New command M-x mail-add-attachment for adding MIME attachments
  458. *** The command M-x mail-attach-file was renamed to M-x mail-insert-file.
  459. (Its name is misleading, since it has nothing to do with MIME
  460. attachments.) The old name is now an obsolete alias to the new name.
  461. ** MH-E has been updated to MH-E version 8.3.1.
  462. See MH-E-NEWS for details.
  463. ** Modula-2 mode provides auto-indentation.
  464. ** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
  465. ** nXML mode no longer binds C-RET to `nxml-complete'.
  466. Completion is now performed via `completion-at-point', bound to C-M-i
  467. or M-TAB. If `nxml-bind-meta-tab-to-complete-flag' is non-nil (the
  468. default), this performs tag completion.
  469. ** Org mode has been updated to version 7.8.09.
  470. See ORG-NEWS for details.
  471. ** Prolog mode has been completely revamped, with lots of additional
  472. functionality such as more intelligent indentation, electricity,
  473. support for more variants, including Mercury, and a lot more.
  474. ** Rmail
  475. *** The command `rmail-epa-decrypt' decrypts OpenPGP data
  476. in the Rmail incoming message.
  477. *** The variable `rmail-message-filter' no longer has any effect.
  478. This change was made in Emacs 23.1 but was not advertised at the time.
  479. Try using `rmail-show-message-hook' instead.
  480. ** Shell mode
  481. *** M-x shell prompts for the shell path name if the default directory
  482. is a remote file name and neither the environment variable $ESHELL nor
  483. the variable `explicit-shell-file-name' is set.
  484. *** TAB is now bound to the standard `completion-at-point' command,
  485. which now implements the pcomplete rules for shell command completion.
  486. ** SMTPmail
  487. *** SMTPmail now uses encrypted connections (via STARTTLS) by default
  488. if the mail server supports them. This uses either built-in GnuTLS
  489. support, or the starttls.el library. Customize `smtpmail-stream-type'
  490. to change this.
  491. *** The variable `smtpmail-auth-credentials' has been removed.
  492. By default, the information is now stored in the file ~/.authinfo.
  493. This was the default value of smtpmail-auth-credentials. If you had
  494. customized smtpmail-auth-credentials to a list of user names and
  495. passwords, those settings are not used. During your first connection
  496. to the smtp server, Emacs will prompt for the user name and password,
  497. and offer to save them to ~/.authinfo. Or you can manually copy the
  498. credentials to ~/.authinfo. For example, if you had
  499. (setq smtpmail-auth-credentials
  500. '(("mail.example.org" 25 "jim" "s!cret")))
  501. then the equivalent line in ~/.authinfo would be
  502. machine mail.example.org port 25 login jim password s!cret
  503. See the auth-source manual for more information, e.g. on encrypting
  504. the credentials file.
  505. *** The variable `smtpmail-starttls-credentials' has been removed.
  506. If you had that set, you need to put
  507. machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert"
  508. in your ~/.authinfo file instead.
  509. ** SQL mode
  510. *** New options `sql-port', `sql-connection-alist', `sql-send-terminator',
  511. and `sql-oracle-scan-on'.
  512. *** New options controlling prompting for login parameters.
  513. Each supported product has a custom variable `sql-*-login-params',
  514. which is a list of the parameters to be prompted for before a
  515. connection is established.
  516. *** The command `sql-product-interactive' now takes a prefix argument,
  517. which causes it to prompt for an SQL product.
  518. *** Product-specific SQL interactive commands now take prefix arguments.
  519. These commands (`sql-sqlite', `sql-postgres', `sql-mysql', etc.),
  520. given a prefix argument, prompt for a name for the SQL interactive
  521. buffer. This reduces the need for calling `sql-rename-buffer'.
  522. *** SQL interactive modes suppress command continuation prompts, and
  523. replace tabs with spaces. The first change impacts multiple line SQL
  524. statements entered with C-j between each line, statements yanked into
  525. the buffer and statements sent with `sql-send-*' functions. The
  526. second prevents the MySQL and Postgres interpreters from listing
  527. object name completions when sent text via `sql-send-*' functions.
  528. *** New command `sql-connect' starts a predefined SQLi session,
  529. using the login parameters from `sql-connection-alist'.
  530. *** New "Save Connection" menu item in SQLi buffers.
  531. This gathers the login params specified for the SQLi session, if it
  532. was not started by a connection, and saves them as a new connection.
  533. *** New commands for listing database objects and details:
  534. sql-list-all and sql-list-table.
  535. *** An API for manipulating SQL product definitions has been added.
  536. ** TeX modes
  537. *** latex-electric-env-pair-mode keeps \begin..\end matched on the fly.
  538. ** Tramp
  539. *** New inline access method "ksu" (kerberized su).
  540. *** The following access methods are discontinued: "ssh1_old",
  541. "ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish".
  542. *** The user option `remote-file-name-inhibit-cache' controls whether
  543. remote file attributes are cached for better performance.
  544. *** The option `ange-ftp-binary-file-name-regexp' has changed its
  545. default value to "".
  546. *** Handlers for `file-selinux-context' and `set-file-selinux-context'
  547. for remote machines which support SELinux.
  548. ** New function `url-queue-retrieve', which behaves like url-retrieve,
  549. but with limits (`url-queue-parallel-processes', `url-queue-timeout') on
  550. the degree of parallelism.
  551. ** VC and related modes
  552. *** Support for pulling on distributed version control systems.
  553. The command C-x v + (`vc-pull') runs a "pull" operation, if it is
  554. supported (currently with Bzr, Git, and Mercurial), to update the
  555. current branch and working tree. A prefix argument means to prompt
  556. the user for specifics, e.g. a pull location.
  557. *** `vc-update' is now an alias for `vc-pull'.
  558. *** Support for merging on distributed version control systems.
  559. The command C-x v m (`vc-merge') now runs a "merge" operation, if it
  560. is supported (currently with Bzr, Git, and Mercurial), to merge
  561. changes from another branch into the current one. It prompts for
  562. specifics, e.g. a merge source.
  563. *** New option `vc-revert-show-diff' controls whether `vc-revert'
  564. shows a diff while querying the user. It defaults to t.
  565. *** Log entries in some Log View buffers can be toggled to display a
  566. longer description by typing RET (log-view-toggle-entry-display).
  567. This is currently supported for Bzr, Git, and Mercurial (to support
  568. another backend, define a `log-view-expanded-log-entry-function').
  569. In the Log View buffers made by C-x v L (`vc-print-root-log'), you can
  570. use this to display the full log entry for the revision at point.
  571. *** New command `vc-ediff' allows visual comparison of two revisions
  572. of a file similar to `vc-diff', but using ediff backend.
  573. *** The option `vc-initial-comment' was removed in Emacs 23.2, but
  574. this was not advertised at the time.
  575. *** `vc-toggle-read-only' is an obsolete alias for `toggle-read-only'.
  576. Since Emacs 23, it has done the same thing as `toggle-read-only', but
  577. this was not advertised at the time.
  578. ** Obsolete modes
  579. *** abbrevlist.el
  580. *** erc-hecomplete.el (use erc-pcomplete.el instead)
  581. *** partial-completion-mode (complete.el) is obsolete.
  582. You can get a comparable behavior with:
  583. (setq completion-styles '(partial-completion initials))
  584. (setq completion-pcm-complete-word-inserts-delimiters t)
  585. *** pc-mode.el is obsolete (CUA mode is much more comprehensive).
  586. *** pgg is obsolete (use EasyPG instead).
  587. *** sregex.el is obsolete, since rx.el is a strict superset.
  588. *** s-region.el and pc-select.el are obsolete.
  589. They are superseded by shift-select-mode, enabled by default since 23.1.
  590. *** vc-mcvs.el is obsolete (for lack of a maintainer).
  591. ** Miscellaneous
  592. *** The Landmark game is now invoked with `landmark', not `lm'.
  593. Its functions and variables have been similarly renamed.
  594. *** In `ido-file-completion-map', C-v is no longer bound to `ido-toggle-vc'.
  595. (This interfered with cua-mode.)
  596. *** f90.el has some support for Fortran 2008 syntax.
  597. *** `copyright-fix-years' can optionally convert consecutive years to ranges.
  598. *** New command `nato-region' converts text to NATO phonetic alphabet.
  599. * New Modes and Packages in Emacs 24.1
  600. ** Occur Edit mode applies edits made in *Occur* buffers to the
  601. original buffers. It is bound to "e" in Occur mode.
  602. ** New global minor mode electric-pair-mode.
  603. When enabled, typing an open parenthesis automatically inserts the
  604. matching closing one.
  605. ** New global minor mode electric-indent-mode.
  606. When enabled, typing certain characters triggers reindentation.
  607. Major modes wishing to use this can set electric-indent-chars or
  608. electric-indent-functions.
  609. ** New global minor mode electric-layout-mode.
  610. When enabled, typing certain characters automatically inserts newlines.
  611. Major modes wishing to use this can set electric-layout-rules.
  612. ** tabulated-list.el provides a generic major mode for tabulated data,
  613. from which other modes can be derived.
  614. ** pcase.el provides the ML-style pattern matching macro `pcase'.
  615. ** secrets.el is an implementation of the Secret Service API, an
  616. interface to password managers like GNOME Keyring or KDE Wallet. The
  617. Secret Service API requires D-Bus for communication. The command
  618. `secrets-show-secrets' offers a buffer with a visualization of the
  619. secrets.
  620. ** notifications.el provides an implementation of the Desktop
  621. Notifications API. It requires D-Bus for communication.
  622. ** soap-client.el supports access to SOAP web services from Emacs.
  623. soap-inspect.el is an interactive inspector for SOAP WSDL structures.
  624. ** New generic mode, xmodmap-generic-mode, for xmodmap files.
  625. ** New emacs-lock.el package.
  626. The previous version has been moved to obsolete/old-emacs-lock.el.
  627. Now, there is a proper minor mode `emacs-lock-mode'. Protection
  628. against exiting Emacs and killing the buffer can be set separately.
  629. The mechanism for automatically turning off protection for buffers
  630. with dead inferior processes has been generalized.
  631. * Incompatible Lisp Changes in Emacs 24.1
  632. ** Passing a nil argument to a minor mode function call now ENABLES
  633. the minor mode unconditionally. This is so that you can write e.g.
  634. (add-hook 'text-mode-hook 'foo-mode)
  635. to enable foo-mode in Text mode buffers, removing the need for
  636. `turn-on-foo-mode' style functions. This affects all mode commands
  637. defined by `define-minor-mode'. If called interactively, the mode
  638. command still toggles the minor mode.
  639. ** The return value of `backup-buffer' has changed.
  640. It is now a list of three elements, where the second element is a list
  641. describing the original file's SELinux context. If Emacs or the
  642. system lacks SELinux support, the context list is (nil nil nil nil).
  643. See "Basic SELinux support" above, under "Changes in Emacs 24.1".
  644. ** `char-direction-table' and the `char-direction' function were deleted.
  645. They were buggy and inferior to the new support of bidirectional
  646. editing introduced in Emacs 24. If you need the bidirectional
  647. properties of a character, use `get-char-code-property' with the last
  648. argument `bidi-class'.
  649. ** `copy-directory' now copies the source directory as a subdirectory
  650. of the target directory, if the latter is an existing directory. The
  651. new optional arg COPY-CONTENTS, if non-nil, makes the function copy
  652. the contents directly into a pre-existing target directory.
  653. ** For mouse click input events in the text area, the Y pixel
  654. coordinate in the POSITION list now counts from the top of the text
  655. area, excluding any header line. Previously, it counted from the top
  656. of the header line.
  657. ** Support for "old-style" backquotes, obsolete for 10+ years, has
  658. been further reduced. Now a backquote not followed by a space is
  659. always treated as a "new-style" backquote. Please remove all
  660. "old-style" backquotes from your code. If your code uses backquotes
  661. as documented in the Elisp manual, and compiles without warning, then
  662. you have nothing to do in this regard. Code not following the
  663. appropriate conventions may fail to compile.
  664. The most common cause of trouble seems to be an old-style backquote
  665. followed by a newline. Another cause of trouble is vector notation
  666. for key sequence notation: instead of [(control ,)] and [(control ')],
  667. you should write [(control ?,)] and [(control ?')], which will work in
  668. older Emacsen too.
  669. ** The macro `eval-at-startup' was removed in Emacs 23.2, but this
  670. was not advertised at the time. The function `custom-initialize-delay'
  671. replaced all known uses.
  672. ** `view-buffer' now treats special mode-class in the same way that
  673. `view-file' has since Emacs 22 (i.e. it won't enable View mode if the
  674. major mode is special).
  675. ** Menu and tool bar changes
  676. *** During startup, Emacs no longer adds entries for `menu-bar-lines'
  677. and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'.
  678. With these alist entries omitted, `make-frame' checks the value of the
  679. variable `menu-bar-mode'/`tool-bar-mode' to determine whether to create
  680. a menu-bar or tool-bar, respectively. If the alist entries are added,
  681. they override the value of `menu-bar-mode'/`tool-bar-mode'.
  682. *** The menu bar bindings's caches are not used any more.
  683. Use (where-is-internal <def> nil t) instead.
  684. ** Regions created by mouse dragging are now normal active regions,
  685. similar to those created by shift-selection (see Selection changes
  686. above). In previous Emacs versions, these regions were delineated by
  687. `mouse-drag-overlay'; that variable has been removed.
  688. ** The fourth argument of `filter-buffer-substring' has been removed.
  689. If you want to remove text properties from the final result, simply
  690. pass the result through substring-no-properties.
  691. ** cl.el no longer provides `cl-19'.
  692. ** The following obsolete functions and aliases have been removed
  693. (the appropriate new function is given in parentheses; "not needed"
  694. means you can just remove all calls to the function in question):
  695. *** `comint-kill-output' (`comint-delete-output')
  696. *** `decompose-composite-char' (`char-to-string')
  697. *** `outline-visible' (`outline-invisible-p')
  698. *** `internal-find-face' (`facep')
  699. *** `internal-get-face' (`facep and check-face')
  700. *** `frame-update-faces' (not needed)
  701. *** `frame-update-face-colors' (`frame-set-background-mode')
  702. *** `x-frob-font-weight' and `x-frob-font-slant' (`make-face-*' functions)
  703. *** `x-make-font-bold and x-make-font-demibold (`make-face-bold')
  704. *** `x-make-font-italic' and `x-make-font-oblique' (`make-face-italic')
  705. *** `x-make-font-bold-italic' (`make-face-bold-italic')
  706. *** `x-make-font-unbold' (`make-face-unbold')
  707. *** `x-make-font-unitalic' (`make-face-unitalic')
  708. *** `mldrag-drag-mode-line' (`mouse-drag-mode-line')
  709. *** `mldrag-drag-vertical-line' (`mouse-drag-vertical-line')
  710. *** `iswitchb-default-keybindings' (`iswitchb-mode')
  711. *** `char-bytes' (== 1)
  712. *** `isearch-return-char' (`isearch-printing-char')
  713. *** `make-local-hook' (not needed)
  714. *** `set-screen-height' (`set-frame-height')
  715. *** `set-screen-width' (`set-frame-width')
  716. ** The following obsolete variables and varaliases have been removed
  717. (the appropriate new variable is given in parentheses):
  718. *** `checkdoc-minor-keymap' (`checkdoc-minor-mode-map')
  719. *** `vc-header-alist' (`vc-BACKEND-header')
  720. *** `directory-sep-char' (== ?/)
  721. *** `font-lock-defaults-alist' (`font-lock-defaults')
  722. *** `e' (`float-e').
  723. ** The following obsolete files were removed:
  724. sc.el, x-menu.el, rnews.el, rnewspost.el
  725. ** The format of the finder-inf.el file has changed, since the Finder
  726. mechanism is now based on the package system. The variable
  727. `finder-package-info' is replaced by `package--builtins' and
  728. `finder-keywords-hash'.
  729. ** When generating autoloads, `update-directory-autoloads' no longer
  730. assumes every inspected file is in your `load-path'. It instead
  731. generates relative names according to the current `load-path'.
  732. * Lisp changes in Emacs 24.1
  733. ** Code can now use lexical scoping by default instead of dynamic scoping.
  734. The `lexical-binding' variable enables lexical scoping for local
  735. variables. It is typically set via a file-local variable in the first
  736. line of the file, in which case it applies to all the code in that
  737. file.
  738. *** `eval' takes a new optional argument `lexical' to choose the new lexical
  739. binding instead of the old dynamic binding mode.
  740. *** Lexically scoped interpreted functions are represented with a new form
  741. of function value which looks like (closure ENV ARGS &rest BODY).
  742. *** New macro `letrec' to define recursive local functions.
  743. *** `defvar' and `defconst' now mark the variable as special (dynamic).
  744. So do `defcustom' and other forms that call `defvar' as a subroutine.
  745. *** New function `special-variable-p' to check whether a variable is
  746. declared as dynamically bound.
  747. *** The form ((lambda ...) ...) is deprecated.
  748. ** An Emacs Lisp testing tool is now included.
  749. Emacs Lisp developers can use this tool to write automated tests for
  750. their code. See the ERT info manual for details.
  751. ** Changes for bidirectional display and editing
  752. *** New function `current-bidi-paragraph-direction'.
  753. This returns the base direction of the paragraph at point.
  754. *** New function `bidi-string-mark-left-to-right'.
  755. Given a string containing characters from right-to-left scripts, this
  756. function returns another string which can be safely inserted into a
  757. buffer, such that any following text will be always displayed to the
  758. right of that string. (This works by appending an invisible Unicode
  759. "LEFT-TO-RIGHT MARK" character if the argument string might need it.)
  760. This is useful when the buffer has overall left-to-right paragraph
  761. direction and you need to insert a string whose contents are not known
  762. in advance, without disrupting the layout of the line.
  763. ** Window changes
  764. *** Window tree functions are accessible in Elisp.
  765. Functions are provided to return the parent, siblings or child windows
  766. of any window including internal windows (windows not associated with a
  767. buffer) in the window tree.
  768. **** New function `window-valid-p' gives non-nil for live and internal
  769. windows.
  770. **** Window manipulation can deal with internal windows.
  771. Many window handling functions like `split-window', `delete-window', or
  772. `delete-other-windows' as well as the window resizing functions can now
  773. act on any window including internal ones.
  774. *** window-total-height/-width vs window-body-height/-width.
  775. The function `window-height' has been renamed to `window-total-height'
  776. and `window-width' has been renamed to `window-body-width'. The old
  777. names are provided as aliases. Two new functions `window-total-width'
  778. and `window-body-height' are provided.
  779. *** Window parameters specific to window handling functions.
  780. For each window you can specify a parameter to override the default
  781. behavior of a number of functions like `split-window', `delete-window'
  782. and `delete-other-windows'. The variable `ignore-window-parameters'
  783. allows to ignore processing such parameters.
  784. *** New semantics of third argument of `split-window'.
  785. The third argument of `split-window' has been renamed to SIDE and can be
  786. set to any of the values 'below, 'right, 'above, or 'left to make the
  787. new window appear on the corresponding side of the window that shall be
  788. split. Any other value of SIDE will cause `split-window' to split the
  789. window into two side-by-side windows as before.
  790. *** Window resizing functions.
  791. A new standard function for resizing windows called `window-resize' has
  792. been introduced. This and all other functions for resizing windows no
  793. longer delete any windows when they become too small.
  794. *** Deleting the selected window now selects the most recently selected
  795. live window on that frame instead.
  796. *** `adjust-window-trailing-edge' adjustments.
  797. `adjust-window-trailing-edge' can now deal with fixed-size windows and
  798. is able to resize other windows if a window adjacent to the trailing
  799. edge cannot be shrunk any more. This makes its behavior more similar to
  800. that of Emacs 21 without compromising, however, its inability to delete
  801. windows which was introduced in Emacs 22.
  802. *** Window-local buffer lists.
  803. Windows now have local buffer lists. This means that removing a buffer
  804. from display in a window will preferably show the buffer previously
  805. shown in that window with its previous window-start and window-point
  806. positions. This also means that the same buffer may be automatically
  807. shown twice even if it already appears in another window.
  808. *** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
  809. which if non-nil requires the buffer to be displayed in the currently
  810. selected window, signaling an error otherwise. If nil, another window
  811. can be used, e.g. if the selected one is strongly dedicated.
  812. *** `split-window-vertically' and `split-window-horizontally' renamed
  813. to `split-window-below' and `split-window-right' respectively.
  814. The old names are kept as aliases.
  815. *** Display actions
  816. **** The second arg to `display-buffer' and `pop-to-buffer' is now
  817. named ACTION, and takes a display action of the same form as
  818. `display-buffer-base-action' (see Changes, above). A non-nil,
  819. non-list value is treated specially, as the old meaning.
  820. **** New variable `display-buffer-overriding-action'.
  821. **** The procedure of `display-buffer' etc. to choose a window is
  822. determined by combining `display-buffer-overriding-action',
  823. `display-buffer-alist', the ACTION arg, `display-buffer-base-action',
  824. and `display-buffer-fallback-action'. The second and fourth of these
  825. are user-customizable variables.
  826. See the docstring of `display-buffer' for details.
  827. *** New functions `window-state-get' and `window-state-put'.
  828. These functions allow to save and restore the state of an arbitrary
  829. frame or window as an Elisp object.
  830. ** Completion
  831. *** New variable `completion-extra-properties' used to specify extra
  832. properties of the current completion:
  833. - :annotate-function, same as the old completion-annotate-function.
  834. - :exit-function, function to call after completion took place.
  835. *** Functions on `completion-at-point-functions' can return any of the
  836. properties valid for `completion-extra-properties'.
  837. *** `completion-annotate-function' is obsolete.
  838. *** New `metadata' method for completion tables. The metadata thus returned
  839. can specify various details of the data returned by `all-completions':
  840. - `category' is the kind of objects returned (e.g., `buffer', `file', ...),
  841. used to select a style in completion-category-overrides.
  842. - `annotation-function' to add annotations in *Completions*.
  843. - `display-sort-function' to specify how to sort entries in *Completions*.
  844. - `cycle-sort-function' to specify how to sort entries when cycling.
  845. *** `minibuffer-local-filename-must-match-map' is not used any more.
  846. Instead, the bindings in `minibuffer-local-filename-completion-map'
  847. are combined with `minibuffer-local-must-match-map'.
  848. *** New variable `completing-read-function' allows overriding the
  849. behavior of `completing-read'.
  850. ** `glyphless-char-display' can now distinguish between graphical and
  851. text terminal display, via a char-table entry that is a cons cell.
  852. ** `pre-command-hook'/`post-command-hook' are not reset to nil on error.
  853. Instead, the offending function is removed.
  854. ** New hook types
  855. *** New function `run-hook-wrapped' for running an abnormal hook by
  856. passing the hook functions as arguments to a "wrapping" function.
  857. Like `run-hook-with-args-until-success', it stops at the first
  858. non-nil return value.
  859. *** New macro `with-wrapper-hook' for running an abnormal hook as a
  860. set of "wrapping" filters, similar to around advice.
  861. (A version of this macro was actually added in Emacs 23.2 but was not
  862. advertised at the time.)
  863. ** Debugger changes
  864. *** New macro `condition-case-unless-debug' (this was actually added in
  865. Emacs 23.1 as condition-case-no-debug, but not advertised)
  866. *** The macro `with-demoted-errors' was added in Emacs 23.1, but not advertised.
  867. *** Variable `stack-trace-on-error' removed.
  868. *** The debugger can now "continue" from an error, which means it will
  869. jump to the error handler as if the debugger had not been invoked
  870. instead of jumping all the way to the top-level.
  871. *** Set `debug-on-event' to enter the debugger on events like SIGUSR1.
  872. This can be useful when `inhibit-quit' is set.
  873. ** The new function `server-eval-at' allows evaluation of Lisp forms on
  874. named Emacs server instances.
  875. ** `call-process' and `call-process-region' allow a `(:file "file")' spec
  876. to redirect STDOUT to a file.
  877. ** The function `format-time-string' now supports the %N directive,
  878. for higher-resolution time stamps.
  879. ** New input reading functions
  880. *** New function `read-char-choice' reads a restricted set of
  881. characters, discarding any inputs not inside the set.
  882. *** The command `read-color' now requires a match for a color name
  883. or RGB triplet, instead of signaling an error if the user provides
  884. invalid input.
  885. **** `facemenu-read-color' is now an alias for `read-color'.
  886. ** `image-library-alist' is renamed to `dynamic-library-alist'.
  887. The variable is now used to load all kind of supported dynamic libraries,
  888. not just image libraries. The previous name is still available as an
  889. obsolete alias.
  890. ** Syntax parsing changes
  891. *** New variable `syntax-propertize-function'.
  892. This replaces `font-lock-syntactic-keywords' which is now obsolete.
  893. This allows syntax-table properties to be set independently from font-lock:
  894. just call syntax-propertize to make sure the text is propertized.
  895. Together with this new variable come a new hook
  896. syntax-propertize-extend-region-functions, as well as two helper functions:
  897. syntax-propertize-via-font-lock to reuse old font-lock-syntactic-keywords
  898. as-is; and syntax-propertize-rules which provides a new way to specify
  899. syntactic rules.
  900. *** Syntax tables support a new "comment style c" additionally to style b.
  901. ** New hook `post-self-insert-hook', run after `self-insert-command'.
  902. ** frame-local variables cannot be let-bound any more.
  903. ** Major and minor mode changes
  904. *** `set-auto-mode' now respects mode: local variables at the end of files,
  905. as well as those in the -*- line.
  906. *** `prog-mode' is a new major mode from which programming modes
  907. should be derived.
  908. **** `prog-mode-hook' can be used to enable features for programming
  909. modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable
  910. on-the-fly spell checking for comments and strings.
  911. *** New hook `change-major-mode-after-body-hook', run by
  912. `run-mode-hooks' just before any other mode hooks.
  913. *** Enabled globalized minor modes can be disabled in specific major modes.
  914. If the global mode is global-FOO-mode, then run (FOO-mode -1) in the
  915. major mode's hook, where FOO-mode toggles the mode on a per-buffer basis.
  916. *** `define-minor-mode' accepts new keywords :variable, :after-hook.
  917. ** File-handling changes
  918. *** `delete-file' and `delete-directory' now accept optional arg TRASH.
  919. Trashing is performed if TRASH and `delete-by-moving-to-trash' are
  920. both non-nil. Interactively, TRASH defaults to t, unless a prefix
  921. argument is supplied (see Trash changes, above).
  922. *** New file predicates: `file-equal-p', `file-in-directory-p'.
  923. ** Tool-bars can display separators.
  924. Tool-bar separators are handled like menu separators in menu-bar maps,
  925. i.e. via menu entries of the form `(menu-item "--")'.
  926. ** Image API
  927. *** Animated images support (currently animated gifs only).
  928. **** `image-animated-p' returns non-nil if an image can be animated.
  929. **** `image-animate' animates a supplied image spec.
  930. **** `image-animate-timer' returns the timer object for an image that
  931. is being animated.
  932. *** `image-extension-data' has been renamed to `image-metadata'.
  933. The old name is an obsolete alias to the new one.
  934. *** Image mode can view any image type that ImageMagick supports.
  935. This requires Emacs to be built with ImageMagick support.
  936. **** New function `imagemagick-types', defined if ImageMagick support
  937. is enabled, returns a list of image file extensions that your
  938. ImageMagick installation supports.
  939. **** New function `imagemagick-register-types' enables ImageMagick
  940. image types in Image mode and in `create-image' and other helper
  941. functions.
  942. **** New option `imagemagick-types-inhibit' excludes certain
  943. ImageMagick image types from `imagemagick-register-types'.
  944. **** With ImageMagick support, there are extra Image mode commands to
  945. resize and rotate images: `image-transform-fit-to-height',
  946. `image-transform-fit-to-width', `image-transform-set-rotation', and
  947. `image-transform-set-scale'.
  948. ** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and
  949. passes it to the mail user agent function. This argument specifies an
  950. action for returning to the caller after finishing with the mail. For
  951. example, this is used by Rmail to optionally delete a mail window.
  952. ** XML and HTML parsing
  953. If Emacs is compiled with libxml2 support, there are two new
  954. functions: `libxml-parse-html-region' (which parses "real world" HTML)
  955. and `libxml-parse-xml-region' (which parses XML). Both return an
  956. Emacs Lisp parse tree.
  957. ** Networking and encryption changes
  958. *** `open-network-stream' can now be used to open an encrypted stream.
  959. It now accepts an optional `:type' parameter for initiating a TLS
  960. connection, directly or via STARTTLS. To do STARTTLS, additional
  961. parameters (`:end-of-command', `:success', `:capabilities-command')
  962. must also be supplied.
  963. *** New library gnutls.el.
  964. The new function `gnutls-available-p' returns non-nil if Emacs is
  965. built with GnuTLS support. The main entry points are
  966. `open-gnutls-stream' and `gnutls-negotiate'. It's easiest to use
  967. these functions through `open-network-stream', because that can
  968. upgrade connections through STARTTLS opportunistically or use plain
  969. SSL, depending on your needs. For debugging, set `gnutls-log-level'
  970. greater than 0.
  971. *** New primitive `secure-hash' that supports many secure hash algorithms:
  972. md5, sha1, sha2, sha224, sha256, sha384, and sha512. The lisp library
  973. sha1.el has been removed. The `sha1' feature is provided by default.
  974. ** Isearch
  975. *** New hook `isearch-update-post-hook' that runs in `isearch-update'.
  976. ** Progress reporters can now "spin".
  977. The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can
  978. now be nil, or omitted. This makes a "non-numeric" reporter. Each
  979. time you call `progress-reporter-update' on that progress reporter,
  980. with a nil or omitted VALUE argument, the reporter message is
  981. displayed with a "spinning bar".
  982. ** New variable `revert-buffer-in-progress-p' is true while a buffer is
  983. being reverted, even if the buffer has a local `revert-buffer-function'.
  984. ** New variables `delayed-warnings-list' and `delayed-warnings-hook'.
  985. If delayed-warnings-list is non-nil, the command loop calls
  986. `delayed-warnings-hook' after `post-command-hook'. At present, this
  987. is only used by Emacs on some platforms to display warnings during
  988. startup, which might otherwise not be noticed. This uses the
  989. functions `display-delayed-warnings' and `collapse-delayed-warnings'.
  990. ** rx.el has a new `group-n' construct for explicitly numbered groups.
  991. ** New function `make-composed-keymap' that constructs a new keymap
  992. from multiple input maps. You can use this to make a keymap that
  993. inherits from multiple maps, eg:
  994. (set-keymap-parent newmap (make-composed-keymap othermap parent))
  995. ** New function `string-prefix-p'.
  996. (This was actually added in Emacs 23.2 but was not advertised at the time.)
  997. ** New reader macro ## that stands for the empty symbol.
  998. This means that the empty symbol can now be read back. Also, #: by itself
  999. (when not immediately followed by a possible symbol character) stands for
  1000. an empty uninterned symbol.
  1001. ** New math functions `isnan', `copysign', `frexp', `ldexp'.
  1002. ** The following functions and variables are obsolete:
  1003. *** `tooltip-use-echo-area' is obsolete.
  1004. Rather than setting this to t, disable Tooltip mode instead.
  1005. *** buffer-substring-filters is obsolete.
  1006. Use `filter-buffer-substring-functions' instead.
  1007. *** `byte-compile-disable-print-circle' is obsolete.
  1008. *** `deferred-action-list' and `deferred-action-function' are obsolete.
  1009. Use `post-command-hook' instead.
  1010. *** `font-lock-maximum-size' is obsolete.
  1011. * Changes in Emacs 24.1 on non-free operating systems
  1012. ** On MS Windows, Emacs warns when using the obsolete init file _emacs,
  1013. and also when HOME is set to C:\ by default.
  1014. ** New configure.bat options
  1015. *** --enable-checking builds Emacs with extra runtime checks.
  1016. *** --distfiles specifies files to be included in binary distribution.
  1017. *** --without-gnutls disables automatic GnuTLS detection.
  1018. *** --lib for general library linkage, works with the USER_LIBS build variable.
  1019. ** New make target `dist' to create binary distribution for MS Windows.
  1020. ** The Lisp function `w32-default-color-map' is now obsolete.
  1021. (It is only used internally in the Emacs C code.)
  1022. ** Customize ns-auto-hide-menu-bar to have the menu-bar hidden, but
  1023. reappear on mouse-over. (Requires OS X 10.6 or later.)
  1024. ** On Mac OS X, dragging a file into Emacs visits the file, like on
  1025. other platforms, rather than inserting its contents into the buffer.
  1026. ----------------------------------------------------------------------
  1027. This file is part of GNU Emacs.
  1028. GNU Emacs is free software: you can redistribute it and/or modify
  1029. it under the terms of the GNU General Public License as published by
  1030. the Free Software Foundation, either version 3 of the License, or
  1031. (at your option) any later version.
  1032. GNU Emacs is distributed in the hope that it will be useful,
  1033. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1034. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1035. GNU General Public License for more details.
  1036. You should have received a copy of the GNU General Public License
  1037. along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  1038. Local variables:
  1039. mode: outline
  1040. paragraph-separate: "[ ]*$"
  1041. end: