NEWS 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760
  1. GNU Emacs NEWS -- history of user-visible changes.
  2. Copyright (C) 2014-2017 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 26.
  7. See file HISTORY for a list of GNU Emacs versions and release dates.
  8. See files NEWS.25, NEWS.24, NEWS.23, NEWS.22, NEWS.21, NEWS.20,
  9. NEWS.19, NEWS.18, and NEWS.1-17 for changes in older Emacs versions.
  10. You can narrow news to a specific version by calling 'view-emacs-news'
  11. with a prefix argument or by typing C-u C-h C-n.
  12. Temporary note:
  13. +++ indicates that all necessary documentation updates are complete.
  14. (This means all relevant manuals in doc/ AND lisp doc-strings.)
  15. --- means no change in the manuals is needed.
  16. When you add a new item, use the appropriate mark if you are sure it applies,
  17. * Installation Changes in Emacs 26.1
  18. ** By default libgnutls is now required when building Emacs.
  19. Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.
  20. ** GnuTLS version 2.12.2 or later is now required, instead of merely
  21. version 2.6.6 or later.
  22. ** The new option 'configure --with-mailutils' causes Emacs to rely on
  23. GNU Mailutils to retrieve email. It is recommended, and is the
  24. default if GNU Mailutils is installed. When --with-mailutils is not
  25. in effect, the Emacs build procedure by default continues to build and
  26. install a limited 'movemail' substitute that retrieves POP3 email only
  27. via insecure channels; to avoid this problem, use either
  28. --with-mailutils or --without-pop when configuring.
  29. ** The new option 'configure --enable-gcc-warnings=warn-only' causes
  30. GCC to issue warnings without stopping the build. This behavior is
  31. now the default in developer builds. As before, use
  32. '--disable-gcc-warnings' to suppress GCC's warnings, and
  33. '--enable-gcc-warnings' to stop the build if GCC issues warnings.
  34. ** When GCC warnings are enabled, '--enable-check-lisp-object-type' is
  35. now enabled by default when configuring.
  36. +++
  37. ** The Emacs server now has socket-launching support. This allows
  38. socket based activation, where an external process like systemd can
  39. invoke the Emacs server process upon a socket connection event and
  40. hand the socket over to Emacs. Emacs uses this socket to service
  41. emacsclient commands. This new functionality can be disabled with the
  42. configure option '--disable-libsystemd'.
  43. +++
  44. ** A systemd user unit file is provided. Use it in the standard way:
  45. systemctl --user enable emacs
  46. (If your Emacs is installed in a non-standard location, you may
  47. need to copy the emacs.service file to eg ~/.config/systemd/user/)
  48. ** New configure option '--disable-build-details' attempts to build an
  49. Emacs that is more likely to be reproducible; that is, if you build
  50. and install Emacs twice, the second Emacs is a copy of the first.
  51. Deterministic builds omit the build date from the output of the
  52. emacs-version and erc-cmd-SV functions, and the leave the following
  53. variables nil: emacs-build-system, emacs-build-time,
  54. erc-emacs-build-time.
  55. ** The configure option '--with-gameuser' now defaults to 'no',
  56. as this appears to be the most common configuration in practice.
  57. When it is 'no', the shared game directory and the auxiliary program
  58. update-game-score are no longer needed and are not installed.
  59. ** Emacs no longer works on IRIX. We expect that Emacs users are not
  60. affected by this, as SGI stopped supporting IRIX in December 2013.
  61. * Startup Changes in Emacs 26.1
  62. +++
  63. ** New option '--fg-daemon'. This is the same as '--daemon', except
  64. it runs in the foreground and does not fork. This is intended for
  65. modern init systems such as systemd, which manage many of the traditional
  66. aspects of daemon behavior themselves. '--bg-daemon' is now an alias
  67. for '--daemon'.
  68. +++
  69. ** New option '--module-assertions'.
  70. When given this option, Emacs will perform expensive correctness
  71. checks when dealing with dynamic modules. This is intended for module
  72. authors that wish to verify that their module conforms to the module
  73. requirements. The option makes Emacs abort if a module-related
  74. assertion triggers.
  75. +++
  76. ** Emacs now supports 24-bit colors on capable text terminals
  77. Terminal is automatically initialized to use 24-bit colors if the
  78. required capabilities are found in terminfo. See the FAQ node
  79. "Colors on a TTY" for more information.
  80. +++
  81. ** Emacs now obeys the X resource "scrollBar" at startup.
  82. The effect is similar to that of "toolBar" resource on the tool bar.
  83. * Changes in Emacs 26.1
  84. +++
  85. ** The function 'assoc' now takes an optional third argument 'testfn'.
  86. This argument, when non-nil, is used for comparison instead of
  87. 'equal'.
  88. ---
  89. ** New variable 'executable-prefix-env' for inserting magic signatures.
  90. This variable affects the format of the interpreter magic number
  91. inserted by 'executable-set-magic'. If non-nil, the magic number now
  92. takes the form "#!/usr/bin/env interpreter", otherwise the value
  93. determined by 'executable-prefix', which is by default
  94. "#!/path/to/interpreter". By default, 'executable-prefix-env' is nil,
  95. so the default behavior is not changed.
  96. +++
  97. ** The variable 'emacs-version' no longer includes the build number.
  98. This is now stored separately in a new variable, 'emacs-build-number'.
  99. +++
  100. ** The new function 'mapbacktrace' applies a function to all frames of
  101. the current stack trace.
  102. +++
  103. ** Emacs now provides a limited form of concurrency with Lisp threads.
  104. Concurrency in Emacs Lisp is "mostly cooperative", meaning that
  105. Emacs will only switch execution between threads at well-defined
  106. times: when Emacs waits for input, during blocking operations related
  107. to threads (such as mutex locking), or when the current thread
  108. explicitly yields. Global variables are shared among all threads, but
  109. a 'let' binding is thread-local. Each thread also has its own current
  110. buffer and its own match data.
  111. See the chapter "Threads" in the ELisp manual for full documentation
  112. of these facilities.
  113. +++
  114. ** The new function 'file-name-case-insensitive-p' tests whether a
  115. given file is on a case-insensitive filesystem.
  116. +++
  117. ** The new user variable 'electric-quote-chars' provides a list
  118. of curved quotes for 'electric-quote-mode', allowing user to choose
  119. the types of quotes to be used.
  120. ** The new user option 'electric-quote-context-sensitive' makes
  121. 'electric-quote-mode' context sensitive. If it is non-nil, you can
  122. type an ASCII apostrophe to insert an opening or closing quote,
  123. depending on context. Emacs will replace the apostrophe by an opening
  124. quote character at the beginning of the buffer, the beginning of a
  125. line, after a whitespace character, and after an opening parenthesis;
  126. and it will replace the apostrophe by a closing quote character in all
  127. other cases.
  128. ** The new variable 'electric-quote-inhibit-functions' controls when
  129. to disable electric quoting based on context. Major modes can add
  130. functions to this list; Emacs will temporarily disable
  131. 'electric-quote-mode' whenever any of the functions returns non-nil.
  132. This can be used by major modes that derive from 'text-mode' but allow
  133. inline code segments, such as 'markdown-mode'.
  134. +++
  135. ** The new user variable 'dired-omit-case-fold' allows the user to
  136. customize the case-sensitivity of dired-omit-mode. It defaults to
  137. the same sensitivity as that of the filesystem for the corresponding
  138. dired buffer.
  139. +++
  140. ** Emacs now uses double buffering to reduce flicker when editing and
  141. resizing graphical Emacs frames on the X Window System. This support
  142. requires the DOUBLE-BUFFER extension, which major X servers have
  143. supported for many years. If your system has this extension, but an
  144. Emacs built with double buffering misbehaves on some displays you use,
  145. you can disable the feature by adding
  146. '(inhibit-double-buffering . t)
  147. to default-frame-alist. Or inject this parameter into the selected
  148. frame by evaluating this form:
  149. (modify-frame-parameters nil '((inhibit-double-buffering . t)))
  150. ---
  151. The group 'wp', whose label was "text", is now deprecated.
  152. Use the new group 'text', which inherits from 'wp', instead.
  153. +++
  154. ** The new function 'call-shell-region' executes a command in an
  155. inferior shell with the buffer region as input.
  156. +++
  157. ** The new user option 'shell-command-dont-erase-buffer' controls
  158. if the output buffer is erased between shell commands; if non-nil,
  159. the output buffer is not erased; this variable also controls where
  160. to set the point in the output buffer: beginning of the output,
  161. end of the buffer or save the point.
  162. When 'shell-command-dont-erase-buffer' is nil, the default value,
  163. the behavior of 'shell-command', 'shell-command-on-region' and
  164. 'async-shell-command' is as usual.
  165. +++
  166. ** The new user option 'async-shell-command-display-buffer' controls
  167. whether the output buffer of an asynchronous command is shown
  168. immediately, or only when there is output.
  169. +++
  170. ** The new user option 'mouse-select-region-move-to-beginning'
  171. controls the position of point when double-clicking mouse-1 on the end
  172. of a parenthetical grouping or string-delimiter: the default value nil
  173. keeps point at the end of the region, setting it to non-nil moves
  174. point to the beginning of the region.
  175. +++
  176. ** The new user option 'mouse-drag-and-drop-region' allows to drag the
  177. entire region of text to another place or another buffer.
  178. +++
  179. ** The new user option 'confirm-kill-processes' allows the user to
  180. skip a confirmation prompt for killing subprocesses when exiting
  181. Emacs. When set to t (the default), Emacs will prompt for
  182. confirmation before killing subprocesses on exit, which is the same
  183. behavior as before.
  184. ---
  185. ** 'find-library-name' will now fall back on looking at 'load-history'
  186. to try to locate libraries that have been loaded with an explicit path
  187. outside 'load-path'.
  188. +++
  189. ** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
  190. in the text in functions like 'read-from-minibuffer', but instead are
  191. added to the end of the face list. This allows users to say things
  192. like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
  193. +++
  194. ** The new variable 'extended-command-suggest-shorter' has been added
  195. to control whether to suggest shorter 'M-x' commands or not.
  196. ---
  197. ** icomplete now respects 'completion-ignored-extensions'.
  198. +++
  199. ** Non-breaking hyphens are now displayed with the 'nobreak-hyphen'
  200. face instead of the 'escape-glyph' face.
  201. +++
  202. ** Approximations to quotes are now displayed with the new 'homoglyph'
  203. face instead of the 'escape-glyph' face.
  204. +++
  205. ** New face 'header-line-highlight'.
  206. This face is the header-line analogue of 'mode-line-highlight'; it
  207. should be the preferred mouse-face for mouse-sensitive elements in the
  208. header line.
  209. ---
  210. ** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
  211. part of minibuffers.
  212. ---
  213. ** 'find-library' now takes a prefix argument to pop to a different
  214. window.
  215. ---
  216. ** 'process-attributes' on Darwin systems now returns more information.
  217. +++
  218. ** Several accessors for the value returned by 'file-attributes'
  219. have been added. They are: 'file-attribute-type',
  220. 'file-attribute-link-number', 'file-attribute-user-id',
  221. 'file-attribute-group-id', 'file-attribute-access-time',
  222. 'file-attribute-modification-time',
  223. 'file-attribute-status-change-time', 'file-attribute-size',
  224. 'file-attribute-modes', 'file-attribute-inode-number',
  225. 'file-attribute-device-number' and 'file-attribute-collect'.
  226. +++
  227. ** The new function 'buffer-hash' computes a fast, non-consing hash of
  228. a buffer's contents.
  229. ---
  230. ** 'fill-paragraph' no longer marks the buffer as changed unless it
  231. actually changed something.
  232. ---
  233. ** The locale language name 'ca' is now mapped to the language
  234. environment 'Catalan', which has been added.
  235. ---
  236. ** 'align-regexp' has a separate history for its interactive argument.
  237. 'align-regexp' no longer shares its history with all other
  238. history-less functions that use 'read-string'.
  239. +++
  240. ** The networking code has been reworked so that it's more
  241. asynchronous than it was (when specifying :nowait t in
  242. 'make-network-process'). How asynchronous it is varies based on the
  243. capabilities of the system, but on a typical GNU/Linux system the DNS
  244. resolution, the connection, and (for TLS streams) the TLS negotiation
  245. are all done without blocking the main Emacs thread. To get
  246. asynchronous TLS, the TLS boot parameters have to be passed in (see
  247. the manual for details).
  248. Certain process oriented functions (like 'process-datagram-address')
  249. will block until socket setup has been performed. The recommended way
  250. to deal with asynchronous sockets is to avoid interacting with them
  251. until they have changed status to "run". This is most easily done
  252. from a process sentinel.
  253. ** 'make-network-process' and 'open-network-stream' sometimes allowed
  254. :service to be an integer string (e.g., :service "993") and sometimes
  255. required an integer (e.g., :service 993). This difference has been
  256. eliminated, and integer strings work everywhere.
  257. ** It is possible to disable attempted recovery on fatal signals.
  258. Two new variables support disabling attempts to recover from stack
  259. overflow and to avoid automatic auto-save when Emacs is delivered a
  260. fatal signal. 'attempt-stack-overflow-recovery', if set to 'nil',
  261. will disable attempts to recover from C stack overflows; Emacs will
  262. then crash as with any other fatal signal.
  263. 'attempt-orderly-shutdown-on-fatal-signal', if set to 'nil', will
  264. disable attempts to auto-save the session and shut down in an orderly
  265. fashion when Emacs receives a fatal signal; instead, Emacs will
  266. terminate immediately. Both variables are non-'nil' by default.
  267. These variables are for users who would like to avoid the small
  268. probability of data corruption due to techniques Emacs uses to recover
  269. in these situations.
  270. +++
  271. ** 'interrupt-process' consults now the list
  272. 'interrupt-process-functions', which function has to be called in
  273. order to deliver the SIGINT signal. This allows Tramp to send the
  274. SIGINT signal to remote asynchronous processes. The hitherto existing
  275. implementation has been moved to 'internal-default-interrupt-process'.
  276. +++
  277. ** File local and directory local variables are now initialized each
  278. time the major mode is set, not just when the file is first visited.
  279. These local variables will thus not vanish on setting a major mode.
  280. +++
  281. ** A second dir-local file (.dir-locals-2.el) is now accepted.
  282. See the variable 'dir-locals-file-2' for more information.
  283. +++
  284. ** Connection-local variables can be used to specify local variables
  285. with a value depending on the connected remote server. For details,
  286. see the node "Connection Local Variables" in the ELisp manual.
  287. ---
  288. ** International domain names (IDNA) are now encoded via the new
  289. puny.el library, so that one can visit web sites with non-ASCII URLs.
  290. +++
  291. ** The new 'timer-list' command lists all active timers in a buffer,
  292. where you can cancel them with the 'c' command.
  293. +++
  294. ** The new function 'read-multiple-choice' prompts for multiple-choice
  295. questions, with a handy way to display help texts.
  296. +++
  297. ** 'switch-to-buffer-preserve-window-point' now defaults to t.
  298. +++
  299. ** The new variable 'debugger-stack-frame-as-list' allows displaying
  300. all call stack frames in a Lisp backtrace buffer as lists. Both
  301. debug.el and edebug.el have been updated to heed to this variable.
  302. ---
  303. ** Values in call stack frames are now displayed using 'cl-prin1'.
  304. The old behaviour of using 'prin1' can be restored by customizing the
  305. new option 'debugger-print-function'.
  306. +++
  307. ** NUL bytes in strings copied to the system clipboard are now
  308. replaced with "\0".
  309. +++
  310. ** The new variable 'x-ctrl-keysym' has been added to the existing
  311. roster of X keysyms. It can be used in combination with another
  312. variable of this kind to swap modifiers in Emacs.
  313. ---
  314. ** New input methods: 'cyrillic-tuvan', 'polish-prefix'.
  315. ---
  316. ** The 'dutch' input method no longer attempts to support Turkish too.
  317. Also, it no longer converts 'IJ' and 'ij' to the compatibility
  318. characters U+0132 LATIN CAPITAL LIGATURE IJ and U+0133 LATIN SMALL
  319. LIGATURE IJ.
  320. +++
  321. ** File name quoting by adding the prefix "/:" is now possible for the
  322. local part of a remote file name. Thus, if you have a directory named
  323. "/~" on the remote host "foo", you can prevent it from being
  324. substituted by a home directory by writing it as "/foo:/:/~/file".
  325. +++
  326. ** The new variable 'maximum-scroll-margin' allows having effective
  327. settings of 'scroll-margin' up to half the window size, instead of
  328. always restricting the margin to a quarter of the window.
  329. +++
  330. ** Emacs can scroll horizontally using mouse, touchpad, and trackbar.
  331. You can enable this by customizing 'mwheel-tilt-scroll-p'. If you
  332. want to reverse the direction of the scroll, customize
  333. 'mwheel-flip-direction'.
  334. +++
  335. ** Emacsclient has a new option -u/--suppress-output. The option
  336. suppresses display of return values from the server process.
  337. ---
  338. ** New user option 'dig-program-options' and extended functionality
  339. for DNS-querying functions 'nslookup-host', 'dns-lookup-host',
  340. and 'run-dig'. Each function now accepts an optional name server
  341. argument interactively (with a prefix argument) and non-interactively.
  342. +++
  343. ** Emacsclient has a new option -T/--tramp.
  344. This helps with using a local Emacs session as the server for a remote
  345. emacsclient. With appropriate setup, one can now set the EDITOR
  346. environment variable on a remote machine to emacsclient, and
  347. use the local Emacs to edit remote files via Tramp. See the node
  348. "emacsclient Options" in the user manual for the details.
  349. +++
  350. ** 'describe-key-briefly' now ignores mouse movement events.
  351. +++
  352. ** The new variable 'eval-expression-print-maximum-character' prevents
  353. large integers from being displayed as characters.
  354. ** Two new commands for finding the source code of Emacs Lisp
  355. libraries: 'find-library-other-window' and 'find-library-other-frame'.
  356. +++
  357. ** The new variable 'display-raw-bytes-as-hex' allows to change the
  358. display of raw bytes from octal to hex.
  359. ** You can now provide explicit field numbers in format specifiers.
  360. For example, '(format "%2$s %1$s" "X" "Y")' produces "Y X".
  361. ** 'comment-indent-function' values may now return a cons to specify a
  362. range of indentation.
  363. +++
  364. ** Emacs now supports optional display of line numbers in the buffer.
  365. This is similar to what linum-mode provides, but much faster and
  366. doesn't usurp the display margin for the line numbers. Customize the
  367. buffer-local variable 'display-line-numbers' to activate this optional
  368. display. Alternatively, you can use the `display-line-numbers-mode'
  369. minor mode or the global `global-display-line-numbers-mode'. When
  370. using these modes, customize `display-line-numbers-type' with the same
  371. value as you would use with `display-line-numbers'.
  372. If `display-line-numbers' is set to t, Emacs will display the number
  373. of each line before the line. If set to 'relative', Emacs will
  374. display the line number relative to the line showing point, with that
  375. line's number displayed as absolute. If set to 'visual', Emacs will
  376. display a relative number for every screen line, i.e. it will count
  377. screen lines rather than buffer lines. The default is nil, which
  378. doesn't display the line numbers.
  379. In 'relative' and 'visual' modes, the variable
  380. 'display-line-numbers-current-absolute' controls what number is
  381. displayed for the line showing point. By default, this variable's
  382. value is t, which means display the absolute line number for the line
  383. showing point. Customizing this variable to a nil value will cause
  384. Emacs to show zero instead, which preserves horizontal space of the
  385. window in large buffers.
  386. Line numbers are not displayed at all in minibuffer windows and in
  387. tooltips, as they are not useful there.
  388. The new face 'line-number' is used to display the line numbers. The
  389. new face 'line-number-current-line' can be customized to display the
  390. current line's number differently from all the other line numbers; by
  391. default these two faces are identical.
  392. You can also customize the new buffer-local variable
  393. 'display-line-numbers-width' to specify a fixed minimal with of the
  394. area allocated to line-number display. The default is nil, meaning
  395. that Emacs will dynamically calculate the area width, enlarging or
  396. shrinking it as needed. Setting it to a non-negative integer
  397. specifies that as the minimal width; selecting a value that is large
  398. enough to display all line numbers in a buffer will then keep the
  399. line-number display area of constant width at all times, if that is
  400. desired.
  401. When using `display-line-numbers-mode', you can customize the variable
  402. `display-line-numbers-grow-only' to a non-nil value; this means that
  403. Emacs may grow the above area width dynamically, but never shrink it.
  404. Under this mode, customizing the variable
  405. `display-line-numbers-width-start' to a non-nil value will cause Emacs
  406. to set `display-line-numbers-width' to the minimum width necessary to
  407. display all line numbers in the current buffer when first visiting it.
  408. Lisp programs can disable line-number display for a particular screen
  409. line by putting the 'display-line-numbers-disable' text property or
  410. overlay property on the first character of that screen line. This is
  411. intended for add-on packages that need a finer control of the display.
  412. Lisp programs that need to know how much screen estate is used up for
  413. line-number display in a window can use the new function
  414. 'line-number-display-width'.
  415. Linum mode and all similar packages are henceforth becoming obsolete.
  416. Users and developers are encouraged to switch to this new feature
  417. instead.
  418. * Editing Changes in Emacs 26.1
  419. +++
  420. ** New variable 'column-number-indicator-zero-based'.
  421. Traditionally, in Column Number mode, the displayed column number
  422. counts from zero starting at the left margin of the window. This
  423. behavior is now controlled by 'column-number-indicator-zero-based'.
  424. If you would prefer for the displayed column number to count from one,
  425. you may set this variable to nil. (Behind the scenes, there is now a
  426. new mode line construct, '%C', which operates exactly as '%c' does
  427. except that it counts from one.)
  428. +++
  429. ** New single-line horizontal scrolling mode.
  430. The 'auto-hscroll-mode' variable can now have a new special value,
  431. 'current-line', which causes only the line where the cursor is
  432. displayed to be horizontally scrolled when lines are truncated on
  433. display and point moves outside the left or right window margin.
  434. +++
  435. ** New mode line constructs '%o' and '%q', and user option
  436. 'mode-line-percent-position'. '%o' displays the "degree of travel" of
  437. the window through the buffer. Unlike the default '%p', this
  438. percentage approaches 100% as the window approaches the end of the
  439. buffer. '%q' displays the percentage offsets of both the start and
  440. the end of the window, e.g. "5-17%". The new option
  441. 'mode-line-percent-position' makes it easier to switch between '%p',
  442. '%P', and these new constructs.
  443. +++
  444. ** Two new user options 'list-matching-lines-jump-to-current-line' and
  445. 'list-matching-lines-current-line-face' to show highlighted the current
  446. line in *Occur* buffer.
  447. +++
  448. ** The 'occur' command can now operate on the region.
  449. +++
  450. ** New bindings for 'query-replace-map'.
  451. 'undo', undo the last replacement; bound to 'u'.
  452. 'undo-all', undo all replacements; bound to 'U'.
  453. ** 'delete-trailing-whitespace' deletes whitespace after form feed.
  454. In modes where form feed was treated as a whitespace character,
  455. 'delete-trailing-whitespace' would keep lines containing it unchanged.
  456. It now deletes whitespace after the last form feed thus behaving the
  457. same as in modes where the character is not whitespace.
  458. ** No more prompt about changed file when the file's content is unchanged.
  459. Instead of only checking the modification time, Emacs now also checks
  460. the file's actual content before prompting the user.
  461. ** Various casing improvements.
  462. *** 'upcase', 'upcase-region' et al. convert title case characters
  463. (such as Dz) into their upper case form (such as DZ).
  464. *** 'capitalize', 'upcase-initials' et al. make use of title-case forms
  465. of initial characters (correctly producing for example Džungla instead
  466. of incorrect DŽungla).
  467. *** Characters which turn into multiple ones when cased are correctly handled.
  468. For example, fi ligature is converted to FI when upper cased.
  469. *** Greek small sigma is correctly handled when at the end of the word.
  470. Strings such as ΌΣΟΣ are now correctly converted to Όσος when
  471. capitalized instead of incorrect Όσοσ (compare lowercase sigma at the
  472. end of the word).
  473. *** 'upper' and 'lower' classes match characters w/o simple cased forms.
  474. For instance, ß letter and fi ligature are now matched by [[:lower:]]
  475. regular expression.
  476. ** Emacs can now auto-save buffers to visited files in a more robust
  477. manner via the new mode 'auto-save-visited-mode'. Unlike
  478. 'auto-save-visited-file-name', this mode uses the normal saving
  479. procedure and therefore obeys saving hooks.
  480. 'auto-save-visited-file-name' is now obsolete.
  481. +++
  482. ** New behavior of 'mark-defun' implemented
  483. Prefix argument selects that many (or that many more) defuns.
  484. Negative prefix arg flips the direction of selection. Also,
  485. 'mark-defun' between defuns correctly selects N following defuns (or
  486. -N previous for negative arguments). Finally, comments preceding the
  487. defun are selected unless they are separated from the defun by a blank
  488. line.
  489. ** New command 'replace-buffer-contents'.
  490. This command replaces the contents of the accessible portion of the
  491. current buffer with the contents of the accessible portion of a
  492. different buffer while keeping point, mark, markers, and text
  493. properties as intact as possible.
  494. +++
  495. ** New commands 'apropos-local-variable' and 'apropos-local-value.
  496. These are buffer-local versions of 'apropos-variable' and
  497. 'apropos-value', respectively. They show buffer-local variables whose
  498. names and values, respectively, match a given pattern.
  499. +++
  500. ** More user control of reordering bidirectional text for display.
  501. The two new variables, 'bidi-paragraph-start-re' and
  502. 'bidi-paragraph-separate-re', allow customization of what exactly are
  503. paragraphs, for the purposes of bidirectional display.
  504. * Changes in Specialized Modes and Packages in Emacs 26.1
  505. ** New function `cl-generic-p'.
  506. ** Dired
  507. +++
  508. *** You can answer 'all' in 'dired-do-delete' to delete recursively all
  509. remaining directories without more prompts.
  510. +++
  511. *** Dired supports wildcards in the directory part of the file names.
  512. +++
  513. *** You can now use '`?`' in 'dired-do-shell-command'; as ' ? ', it gets replaced
  514. by the current file name.
  515. *** html2text is now marked obsolete.
  516. *** smerge-refine-regions can refine regions in separate buffers
  517. *** Info menu and index completion uses substring completion by default.
  518. This can be customized via the info-menu category in
  519. completion-category-override.
  520. +++
  521. *** The ancestor buffer is shown by default in 3way merges.
  522. A new option ediff-show-ancestor and a new toggle
  523. ediff-toggle-show-ancestor.
  524. ** TeX: Add luatex and xetex as alternatives to pdftex
  525. ** Electric-Buffer-menu
  526. +++
  527. *** Key 'U' is bound to 'Buffer-menu-unmark-all' and key 'M-DEL' is
  528. bound to 'Buffer-menu-unmark-all-buffers'.
  529. ** bs
  530. ---
  531. *** Two new commands 'bs-unmark-all', bound to 'U', and
  532. 'bs-unmark-previous', bound to <backspace>.
  533. ** Buffer-menu
  534. +++
  535. *** Two new commands 'Buffer-menu-unmark-all', bound to 'U' and
  536. 'Buffer-menu-unmark-all-buffers', bound to 'M-DEL'.
  537. ** Gnus
  538. ---
  539. *** The .newsrc file will now only be saved if the native select
  540. method is an NNTP select method.
  541. +++
  542. *** A new command for sorting articles by readedness marks has been
  543. added: 'C-c C-s C-m C-m'.
  544. ** Ibuffer
  545. ---
  546. *** New command 'ibuffer-jump'.
  547. ---
  548. *** New filter commands 'ibuffer-filter-by-basename',
  549. 'ibuffer-filter-by-file-extension', 'ibuffer-filter-by-directory',
  550. 'ibuffer-filter-by-starred-name', 'ibuffer-filter-by-modified'
  551. and 'ibuffer-filter-by-visiting-file'; bound respectively
  552. to '/b', '/.', '//', '/*', '/i' and '/v'.
  553. ---
  554. *** Two new commands 'ibuffer-filter-chosen-by-completion'
  555. and 'ibuffer-and-filter', the second bound to '/&'.
  556. ---
  557. *** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
  558. 'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
  559. bindings '/<up>', '/S-<up>', '/|' and '/DEL', respectively.
  560. ---
  561. *** The data format specifying filters has been extended to allow
  562. explicit logical 'and', and a more flexible form for logical 'not'.
  563. See 'ibuffer-filtering-qualifiers' doc string for full details.
  564. ---
  565. *** A new command 'ibuffer-copy-buffername-as-kill'; bound
  566. to 'B'.
  567. ---
  568. *** New command 'ibuffer-change-marks'; bound to '* c'.
  569. ---
  570. *** A new command 'ibuffer-mark-by-locked' to mark
  571. all locked buffers; bound to '% L'.
  572. ---
  573. *** A new option 'ibuffer-locked-char' to indicate
  574. locked buffers; Ibuffer shows a new column displaying
  575. 'ibuffer-locked-char' for locked buffers.
  576. ---
  577. *** A new command 'ibuffer-unmark-all-marks' to unmark
  578. all buffers without asking confirmation; bound to
  579. 'U'; 'ibuffer-do-replace-regexp' bound to 'r'.
  580. ---
  581. *** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
  582. whose content matches a regexp; bound to '% g'.
  583. ---
  584. *** Two new options 'ibuffer-never-search-content-name' and
  585. 'ibuffer-never-search-content-mode' used by
  586. 'ibuffer-mark-by-content-regexp'.
  587. ** Browse-URL
  588. *** Support for opening links to man pages in Man or WoMan mode.
  589. ** Comint
  590. ---
  591. *** New user option 'comint-move-point-for-matching-input' to control
  592. where to place point after C-c M-r and C-c M-s.
  593. ** Compilation mode
  594. ---
  595. *** Messages from CMake are now recognized.
  596. +++
  597. *** The number of errors, warnings, and informational messages is now
  598. displayed in the mode line. These are updated as compilation
  599. proceeds.
  600. +++
  601. *** A new option 'dired-always-read-filesystem' default to nil.
  602. If non-nil, buffers visiting files are reverted before search them;
  603. for instance, in 'dired-mark-files-containing-regexp' a non-nil value
  604. of this option means the file is revisited in a temporary buffer;
  605. this temporary buffer is the actual buffer searched: the original buffer
  606. visiting the file is not modified.
  607. +++
  608. *** In wdired, when editing files to contain slash characters,
  609. the resulting directories are automatically created. Whether to do
  610. this is controlled by the 'wdired-create-parent-directories' variable.
  611. +++
  612. *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
  613. viewing HTML files and the like.
  614. ** Grep
  615. ---
  616. *** Grep commands will now use GNU grep's '--null' option if
  617. available, which allows distinguishing the filename from contents if
  618. they contain colons. This can be controlled by the new custom option
  619. 'grep-use-null-filename-separator'.
  620. *** The grep/rgrep/lgrep functions will now ask about saving files
  621. before running. This is controlled by the 'grep-save-buffers'
  622. variable.
  623. ** Edebug
  624. *** Edebug can be prevented from pausing 1 second after reaching a
  625. breakpoint (e.g. with "f" and "o") by customizing the new option
  626. 'edebug-sit-on-break'.
  627. +++
  628. *** New customizable option 'edebug-max-depth'
  629. This allows to enlarge the maximum recursion depth when instrumenting
  630. code.
  631. ** Eshell
  632. *** 'eshell-input-filter's value is now a named function
  633. 'eshell-input-filter-default', and has a new custom option
  634. 'eshell-input-filter-initial-space' to ignore adding commands prefixed
  635. with blank space to eshell history.
  636. ** eww
  637. +++
  638. *** New 'M-RET' command for opening a link at point in a new eww buffer.
  639. +++
  640. *** A new 's' command for switching to another eww buffer via the minibuffer.
  641. ---
  642. *** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
  643. with the 'o' command from 'image-map'.
  644. +++
  645. *** A new command 'C' ('eww-toggle-colors') can be used to toggle
  646. whether to use the HTML-specified colors or not. The user can also
  647. customize the 'shr-use-colors' variable.
  648. ---
  649. *** Images that are being loaded are now marked with gray
  650. "placeholder" images of the size specified by the HTML. They are then
  651. replaced by the real images asynchronously, which will also now
  652. respect width/height HTML specs (unless they specify widths/heights
  653. bigger than the current window).
  654. ---
  655. *** The 'w' command on links is now 'shr-maybe-probe-and-copy-url'.
  656. 'shr-copy-url' now only copies the url at point; users who wish to
  657. avoid accidentally accessing remote links may rebind 'w' and 'u' in
  658. 'eww-link-keymap' to it.
  659. ** Ido
  660. *** The commands 'find-alternate-file-other-window',
  661. 'dired-other-window', 'dired-other-frame', and
  662. 'display-buffer-other-window' are now remapped to Ido equivalents if
  663. Ido mode is active.
  664. ** Images
  665. +++
  666. *** Images are automatically scaled before displaying based on the
  667. 'image-scaling-factor' variable (if Emacs supports scaling the images
  668. in question).
  669. +++
  670. *** It's now possible to specify aspect-ratio preserving combinations
  671. of :width/:max-height and :height/:max-width keywords. In either
  672. case, the "max" keywords win. (Previously some combinations would,
  673. depending on the aspect ratio of the image, just be ignored and in
  674. other instances this would lead to the aspect ratio not being
  675. preserved.)
  676. +++
  677. *** Images inserted with 'insert-image' and related functions get a
  678. keymap put into the text properties (or overlays) that span the
  679. image. This keymap binds keystrokes for manipulating size and
  680. rotation, as well as saving the image to a file. These commands are
  681. also available in 'image-mode'.
  682. +++
  683. *** A new library for creating and manipulating SVG images has been
  684. added. See the "SVG Images" section in the Lisp reference manual for
  685. details.
  686. +++
  687. *** New setf-able function to access and set image parameters is
  688. provided: 'image-property'.
  689. ---
  690. *** New commands 'image-scroll-left' and 'image-scroll-right'
  691. for 'image-mode' that complement 'image-scroll-up' and
  692. 'image-scroll-down': they have the same prefix arg behavior and stop
  693. at image boundaries.
  694. ** Image-Dired
  695. *** Now provides a minor mode 'image-dired-minor-mode' which replaces
  696. the function 'image-dired-setup-dired-keybindings'.
  697. *** Thumbnail generation is now asynchronous
  698. The number of concurrent processes is limited by the variable
  699. 'image-dired-thumb-job-limit'.
  700. *** 'image-dired-thumbnail-storage' has a new option 'standard-large'
  701. for generating 256x256 thumbnails according to the Thumbnail Managing
  702. Standard.
  703. *** Inherits movement keys from 'image-mode' for viewing full images.
  704. This includes the usual char, line, and page movement commands.
  705. *** All the -options types have been changed to argument lists
  706. instead of shell command strings. This change affects
  707. 'image-dired-cmd-create-thumbnail-options',
  708. 'image-dired-cmd-create-temp-image-options',
  709. 'image-dired-cmd-rotate-thumbnail-options',
  710. 'image-dired-cmd-rotate-original-options',
  711. 'image-dired-cmd-write-exif-data-options',
  712. 'image-dired-cmd-read-exif-data-options', and introduces
  713. 'image-dired-cmd-pngnq-options', 'image-dired-cmd-pngcrush-options',
  714. 'image-dired-cmd-create-standard-thumbnail-options'
  715. *** Recognizes more tools by default, including pngnq-s9 and OptiPNG
  716. *** 'find-file' and related commands now work on thumbnails and
  717. displayed images, providing a default argument of the original file name
  718. via an addition to 'file-name-at-point-functions'.
  719. ---
  720. ** The default 'Info-default-directory-list' no longer checks some obsolete
  721. directory suffixes (gnu, gnu/lib, gnu/lib/emacs, emacs, lib, lib/emacs)
  722. when searching for info directories.
  723. +++
  724. ** The commands that add ChangeLog entries now prefer a VCS root directory
  725. for the ChangeLog file, if none already exists. Customize
  726. 'change-log-directory-files' to nil for the old behavior.
  727. ---
  728. ** Support for non-string values of 'time-stamp-format' has been removed.
  729. ** Message
  730. ---
  731. *** 'message-use-idna' now defaults to t (because Emacs comes with
  732. built-in IDNA support now).
  733. ---
  734. *** When sending HTML messages with embedded images, and you have
  735. exiftool installed, and you rotate images with EXIF data (i.e.,
  736. JPEGs), the rotational information will be inserted into the outgoing
  737. image in the message. (The original image will not have its
  738. orientation affected.)
  739. ---
  740. *** The 'message-valid-fqdn-regexp' variable has been removed, since
  741. there are now top-level domains added all the time. Message will no
  742. longer warn about sending emails to top-level domains it hasn't heard
  743. about.
  744. *** 'message-beginning-of-line' (bound to C-a) understands folded headers.
  745. In 'visual-line-mode' it will look for the true beginning of a header
  746. while in non-'visual-line-mode' it will move the point to the indented
  747. header's value.
  748. ** Package
  749. +++
  750. *** The new variable 'package-gnupghome-dir' has been added to control
  751. where the GnuPG home directory (used for signature verification) is
  752. located and whether GnuPG's option "--homedir" is used or not.
  753. ---
  754. *** Deleting a package no longer respects 'delete-by-moving-to-trash'.
  755. ** Tramp
  756. +++
  757. *** The method part of remote file names is mandatory now. A valid
  758. remote file name starts with "/method:host:" or "/method:user@host:".
  759. +++
  760. *** The new pseudo method "-" is a marker for the default method.
  761. "/-::" is the shortest remote file name then.
  762. +++
  763. *** The command 'tramp-change-syntax' allows to choose an alternative
  764. remote file name syntax.
  765. +++
  766. *** New connection method "sg", which supports editing files under a
  767. different group ID.
  768. +++
  769. *** New connection method "doas" for OpenBSD hosts.
  770. +++
  771. *** New connection method "gdrive", which allows to access Google
  772. Drive onsite repositories.
  773. +++
  774. *** Gateway methods in Tramp have been removed. Instead, the Tramp
  775. manual documents how to configure ssh and PuTTY accordingly.
  776. +++
  777. *** Setting the "ENV" environment variable in
  778. 'tramp-remote-process-environment' enables reading of shell
  779. initialization files.
  780. ---
  781. *** Tramp is able now to send SIGINT to remote asynchronous processes.
  782. ---
  783. *** Variable 'tramp-completion-mode' is obsoleted.
  784. ---
  785. ** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
  786. ** JS mode
  787. ---
  788. *** JS mode now sets 'comment-multi-line' to t.
  789. ---
  790. *** New variable 'js-indent-align-list-continuation', when set to nil,
  791. will not align continuations of bracketed lists, but will indent them
  792. by the fixed width 'js-indent-level'.
  793. ** CSS mode
  794. ---
  795. *** Support for completing attribute values, at-rules, bang-rules,
  796. HTML tags, classes and IDs using the 'completion-at-point' command.
  797. Completion candidates for HTML classes and IDs are retrieved from open
  798. HTML mode buffers.
  799. ---
  800. *** CSS mode now binds 'C-h S' to a function that will show
  801. information about a CSS construct (an at-rule, property, pseudo-class,
  802. pseudo-element, with the default being guessed from context). By
  803. default the information is looked up on the Mozilla Developer Network,
  804. but this can be customized using 'css-lookup-url-format'.
  805. ---
  806. *** CSS colors are fontified using the color they represent as the
  807. background. For instance, #ff0000 would be fontified with a red
  808. background.
  809. +++
  810. ** Emacs now supports character name escape sequences in character and
  811. string literals. The syntax variants \N{character name} and
  812. \N{U+code} are supported.
  813. +++
  814. ** Prog mode has some support for multi-mode indentation.
  815. This allows better indentation support in modes that support multiple
  816. programming languages in the same buffer, like literate programming
  817. environments or ANTLR programs with embedded Python code.
  818. A major mode can provide indentation context for a sub-mode through
  819. the 'prog-indentation-context' variable. To support this, modes that
  820. provide indentation should use 'prog-widen' instead of 'widen' and
  821. 'prog-first-column' instead of a literal zero. See the node
  822. "Mode-Specific Indent" in the ELisp manual for more details.
  823. ** ERC
  824. *** New variable 'erc-default-port-tls' used to connect to TLS IRC
  825. servers.
  826. ** URL
  827. +++
  828. *** The new function 'url-cookie-delete-cookie' can be used to
  829. programmatically delete all cookies, or cookies from a specific
  830. domain.
  831. +++
  832. *** 'url-retrieve-synchronously' now takes an optional timeout parameter.
  833. ---
  834. *** The URL package now support HTTPS over proxies supporting CONNECT.
  835. +++
  836. *** 'url-user-agent' now defaults to 'default', and the User-Agent
  837. string is computed dynamically based on 'url-privacy-level'.
  838. ** VC and related modes
  839. ---
  840. *** The VC state indicator in the mode line now defaults to more
  841. colorful faces to make it more obvious to the user what the state is.
  842. See the 'vc-faces' customization group.
  843. +++
  844. *** 'vc-dir-mode' now binds 'vc-log-outgoing' to 'O'; and has various
  845. branch-related commands on a keymap bound to 'B'.
  846. ** CC mode
  847. *** Opening a .h file will turn C or C++ mode depending on language used.
  848. This is done with the help of 'c-or-c++-mode' function which analyses
  849. contents of the buffer to determine whether it's a C or C++ source
  850. file.
  851. ---
  852. ** New DNS mode command 'dns-mode-ipv6-to-nibbles' to convert IPv6 addresses
  853. to a format suitable for reverse lookup zone files.
  854. ** Ispell
  855. +++
  856. *** Enchant (version 2.1.0 or later required) is now supported as a
  857. spell-checker. Enchant is a meta-spell-checker that uses providers
  858. such as Hunspell to do the actual checking. With it, users can use
  859. spell-checkers not directly supported by Emacs, such as Voikko, Hspell
  860. and AppleSpell, more easily share personal word-lists with other
  861. programs, and configure different spelling-checkers for different
  862. languages.
  863. ** Flymake
  864. +++
  865. *** Emacs does no longer prompt the user before killing Flymake
  866. processes on exit.
  867. * New Modes and Packages in Emacs 26.1
  868. ** New Elisp data-structure library 'radix-tree'.
  869. ** New library 'xdg' with utilities for some XDG standards and specs.
  870. ** HTML
  871. +++
  872. *** A new submode of 'html-mode', 'mhtml-mode', is now the default
  873. mode for *.html files. This mode handles indentation,
  874. fontification, and commenting for embedded JavaScript and CSS.
  875. ** New mode 'conf-toml-mode' is a sub-mode of conf-mode, specialized
  876. for editing TOML files.
  877. ** New mode 'conf-desktop-mode' is a sub-mode of conf-unix-mode,
  878. specialized for editing freedesktop.org desktop entries.
  879. ** New minor mode 'pixel-scroll-mode' provides smooth pixel-level scrolling.
  880. ** New major mode 'less-css-mode' (a minor variant of 'css-mode') for
  881. editing Less files.
  882. * Incompatible Lisp Changes in Emacs 26.1
  883. *** password-data is now a hash-table
  884. so that `password-read' can use any object for the `key' argument.
  885. +++
  886. *** Command 'dired-mark-extension' now automatically prepends a '.' to the
  887. extension when not present. The new command 'dired-mark-suffix' behaves
  888. similarly but it doesn't prepend a '.'.
  889. +++
  890. ** Certain cond/pcase/cl-case forms are now compiled using a faster jump
  891. table implementation. This uses a new bytecode op 'switch', which isn't
  892. compatible with previous Emacs versions. This functionality can be disabled
  893. by setting 'byte-compile-cond-use-jump-table' to nil.
  894. ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term
  895. mode to send the same escape sequences that xterm does. This makes
  896. things like forward-word in readline work.
  897. ---
  898. ** hideshow mode got four key bindings that are analogous to outline
  899. mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.'
  900. ---
  901. ** Customizable variable 'query-replace-from-to-separator'
  902. now doesn't propertize the string value of the separator.
  903. Instead, text properties are added by query-replace-read-from.
  904. Additionally, the new nil value restores pre-24.5 behavior
  905. of not providing replacement pairs via the history.
  906. ** Some obsolete functions, variables, and faces have been removed:
  907. *** make-variable-frame-local. Variables cannot be frame-local any more.
  908. *** From subr.el: window-dot, set-window-dot, read-input, show-buffer,
  909. eval-current-buffer, string-to-int
  910. *** icomplete-prospects-length.
  911. *** All the default-FOO variables that hold the default value of the
  912. FOO variable. Use 'default-value' and 'setq-default' to access and
  913. change FOO, respectively. The exhaustive list of removed variables is:
  914. 'default-mode-line-format', 'default-header-line-format',
  915. 'default-line-spacing', 'default-abbrev-mode', 'default-ctl-arrow',
  916. 'default-truncate-lines', 'default-left-margin', 'default-tab-width',
  917. 'default-case-fold-search', 'default-left-margin-width',
  918. 'default-right-margin-width', 'default-left-fringe-width',
  919. 'default-right-fringe-width', 'default-fringes-outside-margins',
  920. 'default-scroll-bar-width', 'default-vertical-scroll-bar',
  921. 'default-indicate-empty-lines', 'default-indicate-buffer-boundaries',
  922. 'default-fringe-indicator-alist', 'default-fringe-cursor-alist',
  923. 'default-scroll-up-aggressively', 'default-scroll-down-aggressively',
  924. 'default-fill-column', 'default-cursor-type',
  925. 'default-cursor-in-non-selected-windows',
  926. 'default-buffer-file-coding-system', 'default-major-mode', and
  927. 'default-enable-multibyte-characters'.
  928. *** Many variables obsoleted in 22.1 referring to face symbols
  929. +++
  930. ** The variable 'text-quoting-style' no longer affects the treatment
  931. of curved quotes in format arguments to functions like 'message' and
  932. 'format-message'. In particular, when this variable's value is
  933. 'grave', all quotes in formats are output as-is.
  934. ** Functions like 'check-declare-file' and 'check-declare-directory'
  935. now generate less chatter and more-compact diagnostics. The auxiliary
  936. function 'check-declare-errmsg' has been removed.
  937. +++
  938. ** The regular expression character class [:blank:] now matches
  939. Unicode horizontal whitespace as defined in the Unicode Technical
  940. Standard #18. If you only want to match space and tab, use [ \t]
  941. instead.
  942. ** 'upper' and 'lower' character classes are unaffected by case table
  943. since they are now based purely on Unicode properties.
  944. +++
  945. ** 'min' and 'max' no longer round their results. Formerly, they
  946. returned a floating-point value if any argument was floating-point,
  947. which was sometimes numerically incorrect. For example, on a 64-bit
  948. host (max 1e16 10000000000000001) now returns its second argument
  949. instead of its first.
  950. +++
  951. ** The variable 'old-style-backquotes' has been made internal and
  952. renamed to 'lread--old-style-backquotes'. No user code should use
  953. this variable.
  954. ** To avoid confusion caused by "smart quotes", the reader no longer
  955. accepts Lisp symbols which begin with the following quotation
  956. characters: ‘’‛“”‟〞"', unless they are escaped with backslash.
  957. +++
  958. ** 'default-file-name-coding-system' now defaults to a coding system
  959. that does not process CRLF. For example, it defaults to utf-8-unix
  960. instead of to utf-8. Before this change, Emacs would sometimes
  961. mishandle file names containing these control characters.
  962. +++
  963. ** 'file-attributes', 'file-symlink-p' and 'make-symbolic-link' no
  964. longer quietly mutate the target of a local symbolic link, so that
  965. Emacs can access and copy them reliably regardless of their contents.
  966. The following changes are involved.
  967. *** 'file-attributes' and 'file-symlink-p' no longer prepend "/:" to
  968. symbolic links whose targets begin with "/" and contain ":". For
  969. example, if a symbolic link "x" has a target "/y:z", (file-symlink-p
  970. "x") now returns "/y:z" rather than "/:/y:z".
  971. *** 'make-symbolic-link' no longer looks for file name handlers when
  972. creating a local symbolic link. For example, (make-symbolic-link
  973. "/y:z" "x") now creates a symlink to "/y:z" instead of failing.
  974. *** 'make-symbolic-link' now expands a link target with leading "~"
  975. only when the optional third arg is an integer, as when invoked
  976. interactively. For example, (make-symbolic-link "~y" "x") now creates
  977. a link with target the literal string "~y"; to get the old behavior,
  978. use (make-symbolic-link (expand-file-name "~y") "x"). To avoid this
  979. expansion in interactive use, you can now prefix the link target with
  980. "/:". For example, (make-symbolic-link "/:~y" "x" 1) now creates a
  981. link to literal "~y".
  982. +++
  983. ** Module functions are now implemented slightly differently; in
  984. particular, the function 'internal--module-call' has been removed.
  985. Code that depends on undocumented internals of the module system might
  986. break.
  987. ---
  988. ** The arguments LOCKNAME and MUSTBENEW of 'write-region' are
  989. propagated to file name handlers now.
  990. ** When built against recent versions of GTK+, Emacs always uses
  991. gtk_window_move for moving frames and ignores the value of the
  992. variable 'x-gtk-use-window-move'. The variable is now obsolete.
  993. * Lisp Changes in Emacs 26.1
  994. ** New optional argument TEXT in 'make-temp-file'.
  995. ** New function `define-symbol-prop'.
  996. +++
  997. ** New optional argument TESTFN in 'alist-get', 'map-elt' and 'map-put'.
  998. ** New function 'seq-set-equal-p' to check if SEQUENCE1 and SEQUENCE2
  999. contain the same elements, regardless of the order.
  1000. ** Checksum/Hash
  1001. +++
  1002. ** New function 'secure-hash-algorithms' to list the algorithms that
  1003. 'secure-hash' supports.
  1004. See the node "(elisp) Checksum/Hash" in the ELisp manual for details.
  1005. +++
  1006. ** Emacs now exposes the GnuTLS cryptographic API with the functions
  1007. 'gnutls-macs' and 'gnutls-hash-mac'; 'gnutls-digests' and
  1008. 'gnutls-hash-digest'; 'gnutls-ciphers' and 'gnutls-symmetric-encrypt'
  1009. and 'gnutls-symmetric-decrypt'.
  1010. See the node "(elisp) GnuTLS Cryptography" in the ELisp manual for details.
  1011. +++
  1012. ** Emacs now supports records for user-defined types, via the new
  1013. functions 'make-record', 'record', and 'recordp'. Records are now
  1014. used internally to represent cl-defstruct and defclass instances, for
  1015. example.
  1016. +++
  1017. ** 'save-some-buffers' now uses 'save-some-buffers-default-predicate'
  1018. to decide which buffers to ask about, if the PRED argument is nil.
  1019. The default value of 'save-some-buffers-default-predicate' is nil,
  1020. which means ask about all file-visiting buffers.
  1021. ** string-(to|as|make)-(uni|multi)byte are now declared obsolete.
  1022. ** New variable 'while-no-input-ignore-events' which allow
  1023. setting which special events 'while-no-input' should ignore.
  1024. It is a list of symbols.
  1025. ** New function 'undo-amalgamate-change-group' to get rid of
  1026. undo-boundaries between two states.
  1027. ** New var 'definition-prefixes' is a hash table mapping prefixes to
  1028. the files where corresponding definitions can be found. This can be
  1029. used to fetch definitions that are not yet loaded, for example for
  1030. 'C-h f'.
  1031. ** New var 'syntax-ppss-table' to control the syntax-table used in
  1032. 'syntax-ppss'.
  1033. +++
  1034. ** 'define-derived-mode' can now specify an :after-hook form, which
  1035. gets evaluated after the new mode's hook has run. This can be used to
  1036. incorporate configuration changes made in the mode hook into the
  1037. mode's setup.
  1038. ** Autoload files can be generated without timestamps,
  1039. by setting 'autoload-timestamps' to nil.
  1040. FIXME As an experiment, nil is the current default.
  1041. If no insurmountable problems before next release, it can stay that way.
  1042. ---
  1043. ** 'gnutls-boot' now takes a parameter ':complete-negotiation' that
  1044. says that negotiation should complete even on non-blocking sockets.
  1045. ---
  1046. ** There is now a new variable 'flyspell-sort-corrections-function'
  1047. that allows changing the way corrections are sorted.
  1048. ---
  1049. ** The new command 'fortune-message' has been added, which displays
  1050. fortunes in the echo area.
  1051. +++
  1052. ** New function 'func-arity' returns information about the argument list
  1053. of an arbitrary function. This generalizes 'subr-arity' for functions
  1054. that are not built-in primitives. We recommend using this new
  1055. function instead of 'subr-arity'.
  1056. ** New function 'region-bounds' can be used in the interactive spec
  1057. to provide region boundaries (for rectangular regions more than one)
  1058. to an interactively callable function as a single argument instead of
  1059. two separate arguments region-beginning and region-end.
  1060. +++
  1061. ** 'parse-partial-sexp' state has a new element. Element 10 is
  1062. non-nil when the last character scanned might be the first character
  1063. of a two character construct, i.e., a comment delimiter or escaped
  1064. character. Its value is the syntax of that last character.
  1065. +++
  1066. ** 'parse-partial-sexp's state, element 9, has now been confirmed as
  1067. permanent and documented, and may be used by Lisp programs. Its value
  1068. is a list of currently open parenthesis positions, starting with the
  1069. outermost parenthesis.
  1070. ---
  1071. ** 'read-color' will now display the color names using the color itself
  1072. as the background color.
  1073. ** The function 'redirect-debugging-output' now works on platforms
  1074. other than GNU/Linux.
  1075. +++
  1076. ** The new function 'string-version-lessp' compares strings by
  1077. interpreting consecutive runs of numerical characters as numbers, and
  1078. compares their numerical values. According to this predicate,
  1079. "foo2.png" is smaller than "foo12.png".
  1080. ---
  1081. ** Numeric comparisons and 'logb' no longer return incorrect answers
  1082. due to internal rounding errors. For example, (< most-positive-fixnum
  1083. (+ 1.0 most-positive-fixnum)) now correctly returns t on 64-bit hosts.
  1084. ---
  1085. ** The functions 'ffloor', 'fceiling', 'ftruncate' and 'fround' now
  1086. accept only floating-point arguments, as per their documentation.
  1087. Formerly, they quietly accepted integer arguments and sometimes
  1088. returned nonsensical answers, e.g., (< N (ffloor N)) could return t.
  1089. ---
  1090. ** On hosts like GNU/Linux x86-64 where a 'long double' fraction
  1091. contains at least EMACS_INT_WIDTH - 3 bits, 'format' no longer returns
  1092. incorrect answers due to internal rounding errors when formatting
  1093. Emacs integers with %e, %f, or %g conversions. For example, on these
  1094. hosts (eql N (string-to-number (format "%.0f" N))) now returns t for
  1095. all Emacs integers N.
  1096. ---
  1097. ** Calls that accept floating-point integers (for use on hosts with
  1098. limited integer range) now signal an error if arguments are not
  1099. integral. For example (decode-char 'ascii 0.5) now signals an error.
  1100. +++
  1101. ** The new function 'char-from-name' converts a Unicode name string
  1102. to the corresponding character code.
  1103. +++
  1104. ** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a
  1105. Lisp object suitable for use with 'eq' and 'eql' correspondingly. If
  1106. two objects are 'eq' ('eql'), then the result of 'sxhash-eq'
  1107. ('sxhash-eql') on them will be the same.
  1108. +++
  1109. ** Function 'sxhash' has been renamed to 'sxhash-equal' for
  1110. consistency with the new functions. For compatibility, 'sxhash'
  1111. remains as an alias to 'sxhash-equal'.
  1112. +++
  1113. ** 'make-hash-table' now defaults to a rehash threshold of 0.8125
  1114. instead of 0.8, to avoid rounding glitches.
  1115. +++
  1116. ** New function 'add-variable-watcher' can be used to call a function
  1117. when a symbol's value is changed. This is used to implement the new
  1118. debugger command 'debug-on-variable-change'.
  1119. +++
  1120. ** Time conversion functions that accept a time zone rule argument now
  1121. allow it to be OFFSET or a list (OFFSET ABBR), where the integer
  1122. OFFSET is a count of seconds east of Universal Time, and the string
  1123. ABBR is a time zone abbreviation. The affected functions are
  1124. 'current-time-string', 'current-time-zone', 'decode-time',
  1125. 'format-time-string', and 'set-time-zone-rule'.
  1126. +++
  1127. ** 'format-time-string' now formats "%q" to the calendar quarter.
  1128. ** New built-in function 'mapcan' which avoids unnecessary consing (and garbage
  1129. collection).
  1130. +++
  1131. ** 'car' and 'cdr' compositions 'cXXXr' and 'cXXXXr' are now part of Elisp.
  1132. ---
  1133. ** 'if-let*', 'when-let*', and 'and-let*' are new in subr-x.el.
  1134. The incumbent 'if-let' and 'when-let' are now aliases.
  1135. ** Low-level list functions like 'length' and 'member' now do a better
  1136. job of signaling list cycles instead of looping indefinitely.
  1137. +++
  1138. ** The new functions 'make-nearby-temp-file' and 'temporary-file-directory'
  1139. can be used for creation of temporary files of remote or mounted directories.
  1140. +++
  1141. ** On GNU platforms when operating on a local file, 'file-attributes'
  1142. no longer suffers from a race when called while another process is
  1143. altering the filesystem. On non-GNU platforms 'file-attributes'
  1144. attempts to detect the race, and returns nil if it does so.
  1145. +++
  1146. ** The new function 'file-local-name' can be used to specify arguments
  1147. of remote processes.
  1148. +++
  1149. ** The new functions 'file-name-quote', 'file-name-unquote' and
  1150. 'file-name-quoted-p' can be used to quote / unquote file names with
  1151. the prefix "/:".
  1152. +++
  1153. ** The new error 'file-missing', a subcategory of 'file-error', is now
  1154. signaled instead of 'file-error' if a file operation acts on a file
  1155. that does not exist.
  1156. +++
  1157. ** The function 'delete-directory' no longer signals an error when
  1158. operating recursively and when some other process deletes the directory
  1159. or its files before 'delete-directory' gets to them.
  1160. +++
  1161. *** New error type 'user-search-failed' like 'search-failed' but
  1162. avoids debugger like 'user-error'.
  1163. +++
  1164. ** The function 'line-number-at-pos' now takes a second optional
  1165. argument 'absolute'. If this parameter is nil, the default, this
  1166. function keeps on returning the line number taking potential narrowing
  1167. into account. If this parameter is non-nil, the function ignores
  1168. narrowing and returns the absolute line number.
  1169. ** Changes in Frame- and Window- Handling
  1170. +++
  1171. *** Resizing a frame no longer runs 'window-configuration-change-hook'.
  1172. 'window-size-change-functions' should be used instead.
  1173. +++
  1174. *** The new function 'frame-size-changed-p' can tell whether a frame has
  1175. been resized since the last time 'window-size-change-functions' has been
  1176. run.
  1177. +++
  1178. *** The function 'frame-geometry' now also returns the width of a
  1179. frame's outer border.
  1180. +++
  1181. *** New frame parameters and changed semantics for older ones
  1182. +++
  1183. **** 'z-group' positions a frame above or below all others.
  1184. +++
  1185. **** 'min-width' and 'min-height' specify the absolute minimum size of a
  1186. frame.
  1187. +++
  1188. **** 'parent-frame' makes a frame the child frame of another Emacs
  1189. frame. The section "Child Frames" in the Elisp manual describes the
  1190. intrinsics of that relationship.
  1191. +++
  1192. **** 'delete-before' triggers deletion of one frame before that of
  1193. another.
  1194. +++
  1195. **** 'mouse-wheel-frame' specifies another frame whose windows shall be
  1196. scrolled instead.
  1197. +++
  1198. **** 'no-other-frame' has 'next-frame' and 'previous-frame' skip this
  1199. frame.
  1200. +++
  1201. **** 'skip-taskbar' removes a frame's icon from the taskbar and has
  1202. Alt-<TAB> skip this frame.
  1203. +++
  1204. **** 'no-focus-on-map' avoids that a frame gets input focus when mapped.
  1205. +++
  1206. **** 'no-accept-focus' means that a frame does not want to get input
  1207. focus via the mouse.
  1208. +++
  1209. **** 'undecorated' removes the window manager decorations from a frame.
  1210. +++
  1211. **** 'override-redirect' tells the window manager to disregard this
  1212. frame.
  1213. +++
  1214. **** 'width' and 'height' allow to specify pixel values and ratios now.
  1215. +++
  1216. **** 'left' and 'top' allow to specify ratios now.
  1217. +++
  1218. **** 'keep-ratio' preserves size and position of child frames when their
  1219. parent frame is resized.
  1220. +++
  1221. **** 'no-special-glyphs' suppresses display of truncation and
  1222. continuation glyphs in a frame.
  1223. +++
  1224. **** 'auto-hide-function' and 'minibuffer-exit' handle auto hiding of
  1225. frames and exiting from minibuffer individually.
  1226. +++
  1227. **** 'fit-frame-to-buffer-margins' and 'fit-frame-to-buffer-sizes'
  1228. handle fitting a frame to its buffer individually.
  1229. +++
  1230. **** 'drag-internal-border', 'drag-with-header-line',
  1231. 'drag-with-mode-line', 'snap-width', 'top-visible' and 'bottom-visible'
  1232. allow to drag and resize frames with the mouse.
  1233. *** The new function 'frame-list-z-order' returns a list of all frames
  1234. in Z (stacking) order.
  1235. +++
  1236. *** The function 'x-focus-frame' optionally tries to not activate its
  1237. frame.
  1238. +++
  1239. *** The variable 'focus-follows-mouse' has a third meaningful value
  1240. 'auto-raise' to indicate that the window manager automatically raises a
  1241. frame when the mouse pointer enters it.
  1242. +++
  1243. *** The new function 'frame-restack' puts a frame above or below
  1244. another on the display.
  1245. +++
  1246. *** The new face 'internal-border' specifies the background of a frame's
  1247. internal border.
  1248. +++
  1249. *** The NORECORD argument of 'select-window' now has a meaningful value
  1250. 'mark-for-redisplay' which is like any other non-nil value but marks
  1251. WINDOW for redisplay.
  1252. +++
  1253. *** Support for side windows is now official. The display action
  1254. function 'display-buffer-in-side-window' will display its buffer in a
  1255. side window. Functions for toggling all side windows on a frame,
  1256. changing and reversing the layout of side windows and returning the main
  1257. (major non-side) window of a frame are provided. For details consult
  1258. the section "Side Windows" in the Elisp manual.
  1259. +++
  1260. *** Support for atomic windows - rectangular compositions of windows
  1261. treated by 'split-window', 'delete-window' and 'delete-other-windows'
  1262. like a single live window - is now official. For details consult the
  1263. section "Atomic Windows" in the Elisp manual.
  1264. +++
  1265. *** New 'display-buffer' alist entry 'window-parameters' allows to
  1266. assign window parameters to the window used for displaying the buffer.
  1267. +++
  1268. *** New function 'display-buffer-reuse-mode-window' is an action function
  1269. suitable for use in 'display-buffer-alist'. For example, to avoid creating
  1270. a new window when opening man pages when there's already one, use
  1271. (add-to-list 'display-buffer-alist
  1272. '("\\`\\*Man .*\\*\\'" .
  1273. (display-buffer-reuse-mode-window
  1274. (inhibit-same-window . nil)
  1275. (mode . Man-mode))))
  1276. +++
  1277. *** New window parameter 'no-delete-other-windows' prevents that
  1278. its window gets deleted by 'delete-other-windows'.
  1279. +++
  1280. *** New window parameters 'mode-line-format' and 'header-line-format'
  1281. allow to override the buffer-local formats for this window.
  1282. +++
  1283. *** New command 'window-swap-states' swaps the states of two live
  1284. windows.
  1285. +++
  1286. *** New functions 'window-pixel-width-before-size-change' and
  1287. 'window-pixel-height-before-size-change' support detecting which
  1288. window changed size when 'window-size-change-functions' are run.
  1289. +++
  1290. *** The new function 'window-lines-pixel-dimensions' returns the pixel
  1291. dimensions of a window's text lines.
  1292. +++
  1293. *** The new function 'window-largest-empty-rectangle' returns the
  1294. dimensions of the largest rectangular area not occupying any text in a
  1295. window's body.
  1296. +++
  1297. *** The semantics of 'mouse-autoselect-window' has changed slightly.
  1298. For details see the section "Mouse Window Auto-selection" in the Elisp
  1299. manual.
  1300. ---
  1301. ** 'tcl-auto-fill-mode' is now declared obsolete. Its functionality
  1302. can be replicated simply by setting 'comment-auto-fill-only-comments'.
  1303. ** New pcase pattern 'rx' to match against a rx-style regular
  1304. expression.
  1305. * Changes in Emacs 26.1 on Non-Free Operating Systems
  1306. ** Intercepting hotkeys on Windows 7 and later now works better.
  1307. The new keyboard hooking code properly grabs system hotkeys such as
  1308. Win-* and Alt-TAB, in a way that Emacs can get at them before the
  1309. system. This makes the 'w32-register-hot-key' functionality work
  1310. again on all versions of MS-Windows starting with Windows 7. On
  1311. Windows NT and later you can now register any hotkey combination. (On
  1312. Windows 9X, the previous limitations, spelled out in the Emacs manual,
  1313. still apply.)
  1314. ** 'convert-standard-filename' no longer mirrors slashes on MS-Windows.
  1315. Previously, on MS-Windows this function converted slash characters in
  1316. file names into backslashes. It no longer does that. If your Lisp
  1317. program used 'convert-standard-filename' to prepare file names to be
  1318. passed to subprocesses (which is not the recommended usage of that
  1319. function), you will now have to mirror slashes in your application
  1320. code. One possible way is this:
  1321. (let ((start 0))
  1322. (while (string-match "/" file-name start)
  1323. (aset file-name (match-beginning 0) ?\\)
  1324. (setq start (match-end 0))))
  1325. ** GUI sessions now treat SIGINT like Posix platforms do.
  1326. The effect of delivering a Ctrl-C (SIGINT) signal to a GUI Emacs on
  1327. MS-Windows is now the same as on Posix platforms -- Emacs saves the
  1328. session and exits. In particular, this will happen if you start
  1329. emacs.exe from the Windows shell, then type Ctrl-C into that shell's
  1330. window.
  1331. ---
  1332. ** 'signal-process' supports SIGTRAP on Windows XP and later.
  1333. The 'kill' emulation on Windows now maps SIGTRAP to a call to the
  1334. 'DebugBreakProcess' API. This causes the receiving process to break
  1335. execution and return control to the debugger. If no debugger is
  1336. attached to the receiving process, the call is typically ignored.
  1337. This is in contrast to the default action on POSIX Systems, where it
  1338. causes the receiving process to terminate with a core dump if no
  1339. debugger has been attached to it.
  1340. ** 'set-mouse-position' and 'set-mouse-absolute-pixel-position' work
  1341. on macOS.
  1342. ** Emacs can now be run as a GUI application from the command line on
  1343. macOS.
  1344. ** 'ns-appearance' and 'ns-transparent-titlebar' change the appearance
  1345. of frame decorations on macOS 10.9+.
  1346. ** 'ns-use-thin-smoothing' enables thin font smoothing on macOS 10.8+.
  1347. ----------------------------------------------------------------------
  1348. This file is part of GNU Emacs.
  1349. GNU Emacs is free software: you can redistribute it and/or modify
  1350. it under the terms of the GNU General Public License as published by
  1351. the Free Software Foundation, either version 3 of the License, or
  1352. (at your option) any later version.
  1353. GNU Emacs is distributed in the hope that it will be useful,
  1354. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1355. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1356. GNU General Public License for more details.
  1357. You should have received a copy of the GNU General Public License
  1358. along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  1359. Local variables:
  1360. coding: utf-8
  1361. mode: outline
  1362. paragraph-separate: "[ ]*$"
  1363. end: