aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix `tramp-test39-unload'Michael Albinus2017-07-171-16/+17
| | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case-p) (tramp--test-instrument-test-case): Rename. Adapt all callees. (tramp-test36-asynchronous-requests): Bind `timer-max-repeats'. (tramp-test39-unload): Expect it to pass. Ignore buffer-local variables and autoload functions; they are not removed. Check also for `-function(s)'.
* Preserve point under 'dired-auto-revert-buffer' (second case)Stephen Berman2017-07-172-1/+31
| | | | | | | | * lisp/dired.el (dired): Use pop-to-buffer-same-window instead of switch-to-buffer. This preserves Dired window point when dired-auto-revert-buffer is non-nil. (Bug#27243) * test/lisp/dired-tests.el (dired-test-bug27243): New test.
* Have Fgnutls_available_p return Qnil when GNUTLS is undefinedMartin Rudalics2017-07-171-1/+7
| | | | | * src/gnutls.c (Fgnutls_available_p): Return Qnil when GNUTLS is undefined to allow --with-gnutls=no builds to proceed.
* * src/gnutls.c: Restore some comments.Paul Eggert2017-07-161-4/+9
|
* Use memset, not bzeroPaul Eggert2017-07-161-3/+3
| | | | | * src/ftcrfont.c (ftcrfont_glyph_extents): Use memset instead of the (less-portable) bzero.
* Use explicit_bzero to clear GnuTLS keysPaul Eggert2017-07-166-4/+110
| | | | | | | | * admin/merge-gnulib (GNULIB_MODULES): Add explicit_bzero. * lib/explicit_bzero.c, m4/explicit_bzero.m4: New files. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * src/gnutls.c (clear_storage): New function. (gnutls_symmetric_aead): Use it instead of memset.
* Merge from gnulibPaul Eggert2017-07-165-22/+59
| | | | | | | | | | This incorporates: 2017-07-16 explicit_bzero: new module 2017-07-15 getdtablesize: Add minimal support for OpenVMS. * lib/getdtablesize.c, lib/string.in.h, m4/getdtablesize.m4: * m4/string_h.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate.
* Fix vc-src-dir-status-filesDieter Deyke2017-07-171-1/+1
| | | | | * lisp/vc/vc-src.el (vc-src-dir-status-files): Fix broken copy-paste from b1a765b3 (bug#27641).
* Fix mismatched parensWilfred Hughes2017-07-161-1/+1
| | | | * etc/NEWS.21: Remove excess parenthesis in code example
* Add missing declare-function for new functionAlan Third2017-07-161-0/+1
| | | | | * lisp/frame.el: Add declare function for ns-mouse-absolute-pixel-position.
* Realgud for tango themesR. Bernstein2017-07-162-0/+20
|
* Fix test when running from test/lisp/subr-tests.elcNoam Postavsky2017-07-151-3/+3
| | | | | | * test/lisp/subr-tests.el (subr-test-backtrace-simple-tests): Don't assume a lambda expression will be `equal' to its quoted form. That's not true if the lambda expression has been compiled.
* Fix some frame handling issues on NSAlan Third2017-07-153-0/+40
| | | | | | | * lisp/frame.el (mouse-absolute-pixel-position): Use new NS function. * src/nsfns.m (Sns_mouse_absolute_pixel_position): New function. * src/nsterm.m (x_make_frame_visible): Re-establish parent-child relationship if it's broken.
* ls-lisp: Fix file size formatTino Calancha2017-07-162-3/+15
| | | | | | * lisp/ls-lisp.el (ls-lisp-filesize-d-fmt, ls-lisp-filesize-f-fmt) (ls-lisp-filesize-b-fmt): Add space in front (Bug#27693). * test/lisp/dired-tests.el (dired-test-bug27693): Add test.
* Avoid link errors with older versions of GnuTLSEli Zaretskii2017-07-151-0/+6
| | | | | | | * src/gnutls.c (Fgnutls_ciphers, gnutls_symmetric_aead) (Fgnutls_macs, Fgnutls_digests): Conditionally compile code that calls GnuTLS functions which might be unavailable in older versions of GnuTLS.
* Improve comments in faces.elEli Zaretskii2017-07-151-1/+6
| | | | | * lisp/faces.el (face-font-family-alternatives): Improve commentary.
* Improve some GnuTL error messagesEli Zaretskii2017-07-152-6/+14
| | | | | * src/gnutls.c (gnutls_symmetric_aead, gnutls_symmetric): * src/fns.c (Fsecure_hash_algorithms): Fix error messages.
* Fix the Elisp manual wrt GnuTL cryptographyEli Zaretskii2017-07-152-0/+6
| | | | | | * doc/lispref/elisp.texi (Top): Update the master menu. * doc/lispref/text.texi (GnuTLS Cryptography): Add a @menu, to avoid errors in makeinfo.
* Fix compilation of gnutls.c with older GnuTLSEli Zaretskii2017-07-151-0/+2
| | | | | | * src/gnutrls.c (syms_of_gnutls): Condition some defsubr's on HAVE_GNUTLS3, to avoid compilation errors when GnuTLS v3.X is not available. Reported by Colin Baxter <m43cap@yandex.com>.
* Realgud for two more light themesrocky2017-07-152-1/+19
|
* Rearrange MS-Windows code that dynamically loads GnuTLS functionsEli Zaretskii2017-07-151-36/+62
| | | | | * src/gnutls.c [WINDOWSNT]: Reorganize definitions and loading of functions using the same preprocessing directives as in the code.
* Fix the MS-Windows build broken in gnutls.cEli Zaretskii2017-07-151-19/+19
| | | | | | * src/gnutls.c (Fgnutls_available_p) [WINDOWSNT]: Move the DLL loading code to after 'capabilities' has been calculated. Remove redundant comments.
* src/image.c (compute_image_size): Remove superfluous checks.Lars Ingebrigtsen2017-07-151-2/+2
| | | | * src/image.c (compute_image_size): Remove superfluous checks.
* Make combinations of :width/:max-height image specs work reliablyLars Ingebrigtsen2017-07-154-54/+72
| | | | | | | | | | | | * doc/lispref/display.texi (ImageMagick Images): Document :width/:max-height combinations (etc) (bug #25583). * src/image.c (compute_image_size): Handle :width/:max-height (etc) combinations consistently (by letting "max" win and preserve ratio). * test/manual/image-size-tests.el (image-size-tests): Add tests for :width/:max-height (etc) combinations.
* Fix recent theme changesGlenn Morris2017-07-142-22/+20
| | | | | * etc/themes/manoj-dark-theme.el, etc/themes/tsdh-dark-theme.el: Fix typos in recent changes.
* GnuTLS integer-overflow and style fixesPaul Eggert2017-07-144-359/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | This tweaks the recently-added GnuTLS improvements so that they avoid some integer-overflow problems and follow typical Emacs style a bit better. * configure.ac (HAVE_GNUTLS3_HMAC, HAVE_GNUTLS3_AEAD) (HAVE_GNUTLS3_CIPHER): Use AC_CACHE_CHECK so that the configure-time results are displayed. * src/fns.c (extract_data_from_object): Return char *, not char const *, since one gnutls caller wants a non-const pointer. Use CONSP rather than !NILP when testing for conses. Use CAR_SAFE instead of rolling our own code. Prefer signed types to unsigned when either will do. Report problems for lengths out of range, instead of silently mishandling them. * src/gnutls.c (emacs_gnutls_strerror): New function, to simplify callers. All callers of gnutls_sterror changed. (Fgnutls_boot): Check for integers out of range rather than silently truncating them. (gnutls_symmetric_aead): Check for integer overflow in size calculations. (gnutls_symmetric_aead, Fgnutls_macs, Fgnutls_digests): Prefer signed to unsigned integers where either will do. (gnutls_symmetric_aead, gnutls_symmetric): Work even if ptrdiff_t is wider than ‘long’. (gnutls_symmetric, Fgnutls_hash_mac, Fgnutls_hash_digest): Check for integer overflow in algorithm selection.
* * .gitlab-ci.yml: Don't install a C++ compiler. Suppress apt interaction.Noam Postavsky2017-07-141-1/+1
|
* Fix the MS-Windows build due to added GnuTLS functionsEli Zaretskii2017-07-144-13/+136
| | | | | | | | | | | | | | | | * src/gnutls.c [WINDOWSNT]: Add DEF_DLL_FN for new functions. (init_gnutls_functions) [WINDOWSNT]: Add LOAD_DLL_FN for new functions. Add #define redirections for new functions. (gnutls_symmetric_aead): Fix format specs to be more portable when printing ptrdiff_t arguments. * src/fns.c (gnutls_rnd) [WINDOWSNT]: Redirect to w32_gnutls_rnd wrapper. * src/gnutls.h [WINDOWSNT]: Add prototype for w32_gnutls_rnd. * test/lisp/net/gnutls-tests.el (gnutls-tests-tested-macs) (gnutls-tests-tested-digests, gnutls-tests-tested-ciphers): Call gnutls-available-p, otherwise GnuTLS functions might not be loaded from the DLL on MS-Windows.
* ; Standardize license notices in new filesGlenn Morris2017-07-142-6/+10
|
* * lisp/emacs-lisp/bytecomp.el: Fix bug#14860.Stefan Monnier2017-07-144-38/+18
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile--function-signature): New fun. Dig into advice wrappers to find the "real" signature. (byte-compile-callargs-warn, byte-compile-arglist-warn): Use it. (byte-compile-arglist-signature): Don't bother with "new-style" arglists, since bytecode functions are now handled in byte-compile--function-signature. * lisp/files.el (create-file-buffer, insert-directory): Remove workaround introduced for (bug#14860). * lisp/help-fns.el (help-fns--analyse-function): `nadvice` is preloaded. * lisp/help.el (help-function-arglist): Dig into advice wrappers to find the "real" signature.
* GnuTLS HMAC and symmetric cipher supportTed Zlatanov2017-07-148-29/+1340
| | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Add news for new feature. * doc/lispref/text.texi (GnuTLS Cryptography): Add documentation. * configure.ac: Add macros HAVE_GNUTLS3_DIGEST, HAVE_GNUTLS3_CIPHER, HAVE_GNUTLS3_AEAD, HAVE_GNUTLS3_HMAC. * src/fns.c (Fsecure_hash_algorithms): Add function to list supported `secure-hash' algorithms. (extract_data_from_object): Add data extraction function that can operate on buffers and strings. (secure_hash): Use it. (Fsecure_hash): Mention `secure-hash-algorithms'. * src/gnutls.h: Include gnutls/crypto.h. * src/gnutls.c (Fgnutls_ciphers, gnutls_symmetric_aead) (gnutls_symmetric, Fgnutls_symmetric_encrypt, Fgnutls_symmetric_decrypt) (Fgnutls_macs, Fgnutls_digests, Fgnutls_hash_mac, Fgnutls_hash_digest) (Fgnutls_available_p): Implement GnuTLS cryptographic integration. * test/lisp/net/gnutls-tests.el: Add tests.
* * lisp/emacs-lisp/cl-lib.el (cl--random-time): Remove as wellStefan Monnier2017-07-141-5/+0
| | | | It's also defined in cl-extra.el.
* Do not convert ij and IJ to compatibility charsPaul Eggert2017-07-142-3/+3
| | | | | * lisp/leim/quail/latin-alt.el: Omit lines for ij and IJ in Dutch. Problem reported by James Cloos (Bug#518#10).
* Remove Turkish ligatures from Dutch input methodToon Claes2017-07-142-12/+4
| | | | * lisp/leim/quail/latin-alt.el: Remove Turkish ligatures (Bug#518).
* Improve stack-overflow heuristic on GNU/LinuxPaul Eggert2017-07-147-17/+18
| | | | | | | | | | | | | | Problem reported by Steve Kemp (Bug#27585). * src/eval.c (near_C_stack_top): Remove. All uses replaced by current_thread->stack_top. (record_in_backtrace): Set current_thread->stack_top. This is for when the Lisp interpreter calls itself. * src/lread.c (read1): Set current_thread->stack_top. This is for recursive s-expression reads. * src/print.c (print_object): Set current_thread->stack_top. This is for recursive s-expression printing. * src/thread.c (mark_one_thread): Get stack top first. * src/thread.h (struct thread_state.stack_top): Now void *, not char *.
* Remove duplicate cl--random-state definitionPaul Eggert2017-07-141-3/+0
| | | | | * lisp/emacs-lisp/cl-lib.el (cl--random-state): Remove. This variable is now defined in cl-extra.el (Bug#27617).
* Adjust timer in tramp-test36-asynchronous-requestsMichael Albinus2017-07-141-1/+7
| | | | | * test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests): Adjust timer if it takes too much time.
* Always display rmail progress report under user controlEli Zaretskii2017-07-141-2/+0
| | | | | * lisp/mail/rmail.el (rmail-show-message-1): Delete the second copy of '(message "Showing message %d..." msg)'. (Bug#27535)
* Avoid byte-compilation warnings for advised functionsEli Zaretskii2017-07-141-0/+9
| | | | | | * lisp/files.el (insert-directory, create-file-buffer): Add an advertised-calling-convention form to shut up byte-compilation warnings. (Bug#14860)
* Add assertion related to display-line-numbersEli Zaretskii2017-07-141-0/+2
| | | | | | * src/xdisp.c (maybe_produce_line_number): Add assertion for the condition regarding IT->glyph_row->used[TEXT_AREA] expected by the code. (Bug#27668)
* Prevent display corruption when display-line-numbers is setEli Zaretskii2017-07-141-3/+3
| | | | | | | | * src/xdisp.c (try_window_reusing_current_matrix): If giving up due to display-line-numbers, clear the window's desired glyph matrix before returning, as the following call to try_window will call display_line, which expects rows of the desired matrix cleared. (Bug#27668)
* Revert "Use fixed-pitch font for display-line-numbers"Eli Zaretskii2017-07-141-5/+2
| | | | | | | | | This reverts commit d014a5e15c1110af77e7a96f06ccd0f0cafb099f. * lisp/faces.el (line-number): Don't use a fixed-pitch font, by popular demand. For relevant discussions, see http://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00433.html http://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00445.html
* Merge from gnulibPaul Eggert2017-07-1313-89/+113
| | | | | | | | | | | | | | This incorporates: 2017-07-13 Improve cross-compilation guesses for native Windows 2017-07-11 More systematic m4 quoting and indentation 2017-07-10 Make sure $host and $host_os are defined when used 2017-07-03 stdioext: Port to OpenVMS 2017-06-24 xalloc-oversized: port to icc * doc/misc/texinfo.tex, lib/fpending.c, lib/stdio-impl.h: * lib/xalloc-oversized.h, m4/dirfd.m4, m4/gettimeofday.m4: * m4/lstat.m4, m4/mktime.m4, m4/pselect.m4, m4/putenv.m4: * m4/stdint.m4, m4/strtoimax.m4, m4/utimes.m4: Copy from Gnulib.
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsVincent Belaïche2017-07-1310-67/+104
|\
| * C++ Mode. Fix anomaly occurring when a ">" is deleted then reinserted.Alan Mackenzie2017-07-132-21/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fontification anomaly happened because after deleting the ">", c-forward-<>-arglist parses the preceding identifier as a putative type but stores it in c-found-types before it becomes clear it is not an unambiguous type. c-forward-<>-arglist fails, leaving the spurious type id in c-found-types. Fix this by "binding" c-found-types "to itself" in c-forward-<>-arglist, and restoring the original value when that function call fails. * lisp/progmodes/cc-engine.el (c-copy-found-types): New function. (c-forward-<>-arglist): Record the original value of c-found-types at the beginning of the function, and restore it at the end on failure. * lisp/progmodes/cc-mode.el (c-unfind-coalesced-tokens): Rewrite more accurately.
| * ; Improve tramp-tests tracesMichael Albinus2017-07-132-3/+9
| |
| * Fix some bugs in c-defun-name. This fixes bug #25623.Alan Mackenzie2017-07-121-10/+17
| | | | | | | | | | * lisp/progmodes/cc-cmds.el (c-defun-name): Fix some bugs to do with structs, etc.
| * Make prog-mode-map the parent of c-mode-base-map. Fixes bug #26658.Vasilij Schneidermann2017-07-121-0/+2
| | | | | | | | | | * lisp/progmodes/cc-mode.el (top level): Make prog-mode-map the parent of c-mode-base-map if possible.
| * CC Mode: create and use c-set-keymap-parent.Alan Mackenzie2017-07-122-12/+13
| | | | | | | | | | | | | | | | * lisp/progmodes/cc-defs.el (c-set-keymap-parent): New macro. * lisp/progmodes/cc-mode.el (top-level): Remove cc-bytecomp-defun for set-keymap-parents. (c-make-inherited-keymap): Use c-set-keymap-parent in place of inline code.
| * Minor tweaks of new line number display variablesMartin Rudalics2017-07-124-21/+24
| | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (Vdisplay_line_numbers): Tweak doc-string. (Vdisplay_line_number_width): Rename to Vdisplay_line_numbers_width. (maybe_produce_line_number): Comply with above rename. * lisp/cus-start.el (standard): * lisp/frame.el (top-level): * etc/NEWS: Comply with renaming of `display-line-number-width' to `display-line-numbers-width'.