aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Module API: Don’t require null-terminated strings in make_string.Philipp Stephani2019-04-221-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * emacs-module.c (module_make_string): Use make_unibyte_string, which doesn’t require its argument to be null-terminated. Since it always returns a heap-allocated string, we don’t have to copy it any more while decoding. (module_decode): New helper function.
* | | | Use utf-8-unix for coding system conversions in the module API.Philipp Stephani2019-04-221-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Factor out conversions into helper functions to provide a simpler interface. * src/emacs-module.c (module_encode, module_decode_copy): New helper functions. (module_make_function, module_copy_string_contents) (module_make_string): Use them.
* | | | Improve pure and side-effect-free docsBasil L. Contovounesios2019-04-225-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For discussion, see thread starting at: https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00316.html * doc/lispref/customize.texi (Composite Types): Do not overspecify :match-alternatives predicates. * doc/lispref/eval.texi (Intro Eval): Anchor definition of "side effect" for cross-referencing... * doc/lispref/functions.texi (What Is a Function): ...from here. Define what a pure function is. * doc/lispref/internals.texi (Writing Emacs Primitives): Describe currently preferred approach to marking primitives as pure and side-effect-free. * doc/lispref/symbols.texi (Standard Properties): Expand description of pure and side-effect-free properties.
* | | | Refactoring: Inline a few macros.Philipp Stephani2019-04-221-22/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that CATCHER_ALL catches signals as well, we can simplify MODULE_HANDLE_NONLOCAL_EXIT a bit. * src/emacs-module.c (MODULE_SETJMP, MODULE_SETJMP_1): Remove. (MODULE_HANDLE_NONLOCAL_EXIT): Inline MODULE_SETJMP and MODULE_SETJMP_1.
* | | | ; * etc/NEWS: Improve wording of a recent addition.Eli Zaretskii2019-04-221-2/+3
| | | |
* | | | Some changes in tramp-testsMichael Albinus2019-04-221-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test32-shell-command): Check for backward compatibility. (tramp-test33-environment-variables): Apply a better check for unset variable.
* | | | Mention AddressSanitizer etc. in etc/DEBUGPaul Eggert2019-04-212-47/+82
| | | | | | | | | | | | | | | | | | | | * etc/DEBUG: Modernize for AddressSanitizer etc. * etc/NEWS: Defer to etc/DEBUG for this.
* | | | Remove --enable-checking=xmallocoverrunPaul Eggert2019-04-213-179/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It doesn’t work anymore, and these days ‘gcc -fsanitize=address’ does a better job anyway. * configure.ac: Remove the option. * configure.ac (ac_xmalloc_overrun, XMALLOC_OVERRUN_CHECK): * src/alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD) (XMALLOC_OVERRUN_CHECK_SIZE, XMALLOC_OVERRUN_SIZE_SIZE) (xmalloc_overrun_check_header, xmalloc_overrun_check_trailer) (xmalloc_put_size, xmalloc_get_size, overrun_check_malloc) (overrun_check_realloc, overrun_check_free): Remove. All uses removed. * etc/NEWS: Mention this.
* | | | Remove --enablechecking=conslist configure optionPaul Eggert2019-04-215-44/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Remove the option. * configure.ac (ac_gc_check_cons_list, GC_CHECK_CONS_LIST): * src/alloc.c (check_cons_list) [GC_CHECK_CONS_LIST]: * src/lisp.h (lisp_h_check_cons_list, check_cons_list): Remove. All uses removed. * etc/NEWS: Mention this.
* | | | Simplify XPNTRPaul Eggert2019-04-211-29/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because XPNTR now uses ATTRIBUTE_NO_SANITIZE_UNDEFINED, it can be simplified. * src/alloc.c (macro_PNTR_ADD, PNTR_ADD, macro_XPNTR): Remove. (XPNTR): Open-code rather than using the removed macros and functions. Also, simplify by using LISP_WORD_TAG.
* | | | Fix drain_reloc_list alignment bugPaul Eggert2019-04-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/pdumper.c (dump_charset): Use alignof (struct charset), not alignof (int), since struct charset might be more strictly aligned than int. I think this is just a minor performance issue, but we might as well use the correct alignment. (drain_reloc_list): Use an alignment instead of a size for the output alignment. This prevents undefined behavior when alignof (struct emacs_reloc) == 8 and sizeof (dump_off) == 4 when building on x86-64 with gcc -fsanitize=undefined.
* | | | Port dump_bitset_clear to -fsanitize=undefinedPaul Eggert2019-04-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/pdumper.c (dump_bitset_clear): Pacify -fsanitize=undefined by avoiding memset (NULL, x, 0), which strictly speaking has undefined behavior although it works on all production platforms I know.
* | | | Port to recent gcc -fsanitize=undefinedPaul Eggert2019-04-212-26/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (XPNTR): Add ATTRIBUTE_NO_SANITIZE_UNDEFINED and remove ATTRIBUTE_UNUSED. Do not define as a macro, so that ATTRIBUTE_NO_SANITIZE_UNDEFINED works. * src/lisp.h (lisp_h_XSYMBOL): Remove. All uses removed. With recent GCC the macro does not work with -fsanitize=undefined, and the macro can be omitted as its only function is to optimize -O0.
* | | | Move side-effect-free from unsafep.el to subr.elBasil L. Contovounesios2019-04-212-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/unsafep.el: Move side-effect-free property setting from here... * lisp/subr.el: ...to here, as function declarations for modularity.
* | | | Fix double-free in pdumperPaul Eggert2019-04-211-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert the double-free bug that I introduced in 2019-03-11T15:20:54Z!eggert@cs.ucla.edu. * src/pdumper.c (dump_mmap_reset): Do not free the private member; that’s the release function’s job. (dump_mm_heap_cb_release): Free cb if its refcount goes to zero. (dump_mmap_contiguous_heap): Mention memory leak in comment.
* | | | Merge from origin/emacs-26Glenn Morris2019-04-215-10/+11
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9d7e08d (origin/emacs-26) Avoid false positives and false negatives o... 75b589c Fix markup related to quoting in Info fd6ff29 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac... cd2204f Add a package: line to c-submit-bug-report. a992dca ; Remove empty NEWS sections ea67270 ; Add NEWS sections for 26.3 45b0946 ; Bump Emacs version to 26.2.50 aae8cc3 * admin/admin.el (set-version): Add NEWS headers for a .50 ve...
| * | | Avoid false positives and false negatives of Info-quoted faceMauro Aranda2019-04-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/info.el (Info-mode-font-lock-keywords): Modify the regexp, for matching single quotes of opening single quote and closing single quote, and avoid matching text followed by a curly quote when it is not quoting. (Bug#35202)
| * | | Fix markup related to quoting in InfoEli Zaretskii2019-04-214-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/sc.texi (Citations): Fix markup of '>'. * doc/misc/mh-e.texi (Speedbar): Fix markup in a @table. * doc/misc/calc.texi (Yacas Language Mode): Fix a typo. * doc/emacs/mark.texi (Setting Mark): Remove duplicate quoting. (Bug#35202)
| * | | Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26Eli Zaretskii2019-04-217-15/+54
| |\ \ \
* | \ \ \ ; Merge from origin/emacs-26Glenn Morris2019-04-210-0/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | The following commit was skipped: bacdaa5 Use pkg-config to find lcms2 CFLAGS and LIBS (Bug#30346)
| * | | | Use pkg-config to find lcms2 CFLAGS and LIBS (Bug#30346)Noam Postavsky2019-04-212-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Use EMACS_CHECK_MODULES fors LCMS2 rather than AC_SEARCH_LIBS. * src/Makefile.in: Get LCMS2_LIBS and LCMS2_CFLAGS from configure, instead of just LIBLCMS2. (cherry picked from commit cb3863370cbe574810f796726faa39ba0de0a429)
* | | | | Merge from origin/emacs-26Glenn Morris2019-04-212-10/+46
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cd2204f Add a package: line to c-submit-bug-report. a992dca ; Remove empty NEWS sections ea67270 ; Add NEWS sections for 26.3 Conflicts: etc/NEWS
| * | | | Add a package: line to c-submit-bug-report.Glenn Morris2019-04-201-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-mode.el (c-submit-bug-report): Add a Package: line for mail clients that do not support X- headers.
| * | | | ; Remove empty NEWS sectionsGlenn Morris2019-04-201-9/+0
| | | | |
| * | | | ; Add NEWS sections for 26.3Glenn Morris2019-04-201-0/+27
| | | | |
* | | | | ; Merge from origin/emacs-26Glenn Morris2019-04-210-0/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | The following commit was skipped: 45b0946 ; Bump Emacs version to 26.2.50
| * | | | ; Bump Emacs version to 26.2.50Glenn Morris2019-04-204-4/+4
| | | | |
* | | | | Merge from origin/emacs-26Glenn Morris2019-04-211-1/+4
|\ \ \ \ \ | |/ / / / | | | | | | | | | | aae8cc3 * admin/admin.el (set-version): Add NEWS headers for a .50 ve...
| * | | | * admin/admin.el (set-version): Add NEWS headers for a .50 version.Glenn Morris2019-04-201-1/+4
| |/ / /
* | | | ; Merge from origin/emacs-26Glenn Morris2019-04-210-0/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | The following commit was skipped: f90a336 Backport doc improvement in ELisp manual
| * | | Backport doc improvement in ELisp manualEli Zaretskii2019-04-201-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Accepting Output): Backport: document how do avoid race conditions while waiting for all of the process's output to arrive.
* | | | Merge from origin/emacs-26Glenn Morris2019-04-216-6/+57
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | 037970f Document insert-image-file's return value (Bug#32978) 598b45a Autoload cua-toggle-rectangle-mark (Bug#34947) 95bd56d Tell xclip not to expect job-control under eshell (Bug#35257) 9997bbb ; * src/emacs.c: Fix typo in comment (Bug#35320). a4ad7be Fix off-by-one-link error in image--set-property
| * | | Document insert-image-file's return value (Bug#32978)Noam Postavsky2019-04-191-2/+3
| | | | | | | | | | | | | | | | * lisp/image-file.el (insert-image-file): Document return value.
| * | | Autoload cua-toggle-rectangle-mark (Bug#34947)Braun Gábor2019-04-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emulation/cua-base.el (cua-toggle-rectangle-mark): Autoload it. Library cua-base.el binds cua-toggle-rectangle-mark to a key in the :set function in (defcustom cua-rectangle-mark-key ...), so it should ensure that the command is defined. Copyright-paperwork-exempt: yes
| * | | Tell xclip not to expect job-control under eshell (Bug#35257)Noam Postavsky2019-04-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/esh-proc.el (eshell-needs-pipe): Add "xclip" and other programs that xclip.el (in GNU ELPA) calls with `process-connection-type' bound to nil.
| * | | ; * src/emacs.c: Fix typo in comment (Bug#35320).Noam Postavsky2019-04-191-1/+1
| | | |
| * | | Fix off-by-one-link error in image--set-propertyBasil L. Contovounesios2019-04-182-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image.el (image--set-property): Ensure new value is set even in the unlikely case that the plist is empty. Fix off-by-one-link error when deleting a property. (bug#35285) * test/lisp/image-tests.el: New file. (image--set-property): New test.
* | | | Port make-fingerprint to LeakSanitizerPaul Eggert2019-04-201-1/+4
| | | | | | | | | | | | | | | | | | | | * lib-src/make-fingerprint.c (buf): Now static, to pacify LeakSanitizer.
* | | | * lisp/progmodes/sql.el Bug#35307Michael R. Mauger2019-04-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (sql-product-alist): Added :prompt-cont-regexp for ms. Looking for experience with Microsofts SQLCMD interpreter and adjustments needed for Emacs to support it.
* | | | * lisp/progmodes/sql.el Bug#24483Michael R. Mauger2019-04-211-4/+5
| | | | | | | | | | | | | | | | | | | | (sql-interactive-remove-continuation-prompt): Properly protect `sql-prompt-cont-regexp'. (sql-interactive-mode): Same.
* | | | * lisp/progmodes.sql.elMichael R. Mauger2019-04-212-19/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (sql-product-alist): Corrected :terminator defns. (sql-debug-send): New variable. (sql-send-string): Use it and correct buffer context. (sql-send-magic-terminator): Use `sql-input-sender'. (sql-placeholders-filter): Bug#11481 Don't recursively replace placeholders * test/lisp/progmodes/sql-tests.el (sql-test-placeholder-filter): Test placeholder functionality.
* | | | Fix text metrics calculation in Xft support for lwlibYAMAMOTO Mitsuharu2019-04-212-2/+2
| | | | | | | | | | | | | | | | | | | | * lwlib/lwlib-Xaw.c (get_text_width_and_height) [HAVE_XFT]: * lwlib/xlwmenu.c (string_width) [HAVE_XFT]: Use xOff member instead of width.
* | | | * src/configure.ac: Check for GTK 2 features only on GTK 2Alexander Gramiak2019-04-201-14/+17
| | | |
* | | | * lwlib/lwlib-Xaw.c (draw_text) [HAVE_XFT]: Fix memory leak.YAMAMOTO Mitsuharu2019-04-211-5/+6
| | | |
* | | | Support amending the last commit using VC-HgDmitry Gutov2019-04-213-23/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/log-edit.el (log-edit--toggle-amend): Extract from vc-git-log-edit-toggle-amend (bug#34944). * lisp/vc/vc-hg.el (vc-hg-log-edit-toggle-amend): New function. Use the aforementioned. (vc-hg-log-edit-mode-map): New variable. (vc-hg-log-edit-mode): New major mode.
* | | | Mark different-diagnostic-types as failed on emba.Michael Albinus2019-04-201-1/+2
| | | | | | | | | | | | | | | | | | | | * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Expect also failure on emba.gnu.org.
* | | | Improve XDG_RUNTIME_DIR diagnosticPaul Eggert2019-04-201-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib-src/emacsclient.c (set_local_socket): If there appears to be an XDG runtime directory for the user but XDG_RUNTIME_DIR is unset, suggest setting it while warning about potential security issues (Bug#35300).
* | | | Fix Pike Mode's autodoc doc comments style's continued lines.Alan Mackenzie2019-04-204-24/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-engine.el (c-forward-sws, c-backward-sws): Recognize matches of c-doc-line-join-re as syntactic whitespace. (c-find-decl-prefix-search): Recognize and move over matches of c-doc-line-join-re as whitespace. (c-find-decl-spots): Before moving backward a char, check (bobp). Before moving forward over a comment, check it isn't possibly a "bright" comment. * lisp/progmodes/cc-fonts.el (c-get-doc-comment-style): New function, extracted from c-compose-keywords-list. (c-compose-keywords-list): Call the above new function. (pike-font-lock-keywords, pike-font-lock-keywords-2) (pike-font-lock-keywords-3): Call c-set-doc-comment-res. (c-doc-line-join-re, c-doc-bright-comment-start-re, c-doc-line-join-end-ch): New variables. (c-set-doc-comment-re-element, c-set-doc-comment-char-list): New macros. (c-set-doc-comment-res): New function. (c-font-lock-doc-comments): For consistency and repeatability, in a sequence of C++ style doc comments, don't fontify the region between BOL and the comment marker. (autodoc-line-join-re, autodoc-bright-comment-start-re) (autodoc-line-join-end-ch): New variables. * lisp/progmodes/cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end): New functions. (c-change-expand-fl-region, c-context-expand-fl-region): Call the above two new functions for extra possibilities for the start and end of a construct. * doc/misc/cc-mode.texi (Doc Comments): Add a sentence drawing attention to the possibility of fontifying constructs within a doc comment.
* | | | * lisp/emacs-lisp/smie.el (smie-indent-comment-continue): Single-char case.Stefan Monnier2019-04-191-5/+27
| | | | | | | | | | | | | | | | | | | | Make it so the comment-continue is aligned with the comment-start when comment-start is a single-char.
* | | | * src/ftcrfont.c (ftcrfont_shape): Fix last change.YAMAMOTO Mitsuharu2019-04-201-0/+2
| | | |