aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Use lexical-binding in forms.el example filesStefan Kangas2020-04-252-2/+2
| | | | | | | | | | * etc/forms/forms-d2.el: * etc/forms/forms-pass.el: Use lexical-binding.
* | ; * test/lisp/international/mule-util-tests.el: Fix typos.Stefan Kangas2020-04-251-2/+2
| |
* | Use lexical-binding for international testsStefan Kangas2020-04-242-1/+3
| | | | | | | | | | * test/lisp/international/mule-util-tests.el: * test/lisp/international/ccl-tests.el: Use lexical-binding.
* | Use lexical-binding for all net testsStefan Kangas2020-04-245-5/+5
| | | | | | | | | | | | | | | | * test/lisp/net/dbus-tests.el: * test/lisp/net/gnutls-tests.el: * test/lisp/net/newsticker-tests.el: * test/lisp/net/puny-tests.el: * test/lisp/net/rfc2104-tests.el: Use lexical-binding.
* | Use lexical-binding for textmodes testsStefan Kangas2020-04-242-2/+2
| | | | | | | | | | * test/lisp/textmodes/mhtml-mode-tests.el: * test/lisp/textmodes/sgml-mode-tests.el: Use lexical-binding.
* | Use lexical-binding in most url testsStefan Kangas2020-04-245-5/+5
| | | | | | | | | | | | | | | | * test/lisp/url/url-auth-tests.el: * test/lisp/url/url-expand-tests.el: * test/lisp/url/url-parse-tests.el: * test/lisp/url/url-tramp-tests.el: * test/lisp/url/url-util-tests.el: Use lexical-binding.
* | Use lexical-binding in most src testsStefan Kangas2020-04-2415-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/src/charset-tests.el: * test/src/chartab-tests.el: * test/src/cmds-tests.el: * test/src/coding-tests.el (top-level) (generate-ascii-file, generate-mostly-nonascii-file): * test/src/doc-tests.el: * test/src/floatfns-tests.el: * test/src/font-tests.el: * test/src/keymap-tests.el: * test/src/process-tests.el (top-level) (process-test-sentinel-wait-function-working-p) (process-test-stderr-buffer, process-test-stderr-filter): * test/src/textprop-tests.el: * test/src/thread-tests.el: * test/src/timefns-tests.el: * test/src/undo-tests.el: * test/src/xml-tests.el: Use lexical-binding.
* | Fix bug #40766, an error in edebug spec handlingAlan Mackenzie2020-04-241-4/+1
| | | | | | | | | | | | | | | | | | | | Also remove some debris. * lisp/emacs-lisp/edebug.el (edebug-spec): Move the entry for edebug-spec-list to before that for vector in the &or form. This assures that in a dotted list of vectors, that list gets handled correctly by edebug-spec-list rather than wrongly by (vector ...). (def-edebug-spec &key): Remove, since it is ill formed and superfluous.
* | * etc/edt-user.el: Use lexical-binding.Stefan Kangas2020-04-241-1/+1
| |
* | * lisp/kermit.el: Use lexical-binding.Stefan Kangas2020-04-241-1/+1
| |
* | * test/lisp/net/tramp-tests.elMichael Albinus2020-04-241-1/+2
| | | | | | | | (tramp-test32-shell-command-dont-erase-buffer): Tag it :unstable.
* | Fix display of composed text with :box face attributeEli Zaretskii2020-04-236-26/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (get_next_display_element): For a composition on a display or overlay string, set the end_of_box_run_p flag if the string ends at the last character included in the composition. (fill_gstring_glyph_string): Fix the way the width of a gstring glyph string is calculated: use the values calculated in gui_produce_glyphs, since the latter adjusts the width due to the face's ':box' attribute. * src/xterm.c (x_draw_glyph_string_box): * src/w32term.c (w32_draw_glyph_string_box): * src/nsterm.m (ns_dumpglyphs_box_or_relief): Support automatic compositions, which have the right_box_line_p flag set on the last glyph produced from the composition. (Bug#40687) * src/w32term.c (w32_compute_glyph_string_overhangs): Update to be consistent with xterm.c in its support of automatic composition glyph strings. * src/dispextern.h (enum glyph_type): More accurate commentary. * src/.gdbinit (pgx): Display slice.img members only for image glyphs.
* | text-char-description minor cleanupPaul Eggert2020-04-221-15/+8
| | | | | | | | | | | | * src/keymap.c (push_text_char_description): Omit useless code. (Ftext_char_description): Minor code cleanup, inspired by seeing an incorrect comment about MAX_MULTIBYTE_LENGTH’s value.
* | Tweak multibyte parsing loopsPaul Eggert2020-04-221-3/+3
| | | | | | | | | | | | * src/character.c (parse_str_as_multibyte, str_as_multibyte): Let the fast loop run a little longer, fixing what appears to be an off-by-1 performance nit.
* | Support old SMB1 protocol in TrampMichael Albinus2020-04-222-5/+53
| | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Frequently Asked Questions): Describe `tramp-smb-options'. * lisp/net/tramp-smb.el (tramp-smb-conf): Fix docstring. (tramp-smb-options): New defcustom. (tramp-smb-handle-copy-directory, tramp-smb-handle-file-acl) (tramp-smb-handle-set-file-acl, tramp-smb-maybe-open-connection): Use it.
* | Fix recently introduced error in `tramp-sh-handle-vc-registered'Michael Albinus2020-04-211-16/+13
| | | | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered): Improve test for `vc-handled-backends'. (Bug#40670)
* | Fix string-to-multibyte overlong sequence bugPaul Eggert2020-04-205-68/+101
| | | | | | | | | | | | | | | | | | * src/character.h (MULTIBYTE_LENGTH, MULTIBYTE_LENGTH_NO_CHECK): Remove, replacing with ... (multibyte_length): ... this new function. All callers changed. The new function rejects overlong multibyte forms. * test/src/buffer-tests.el (buffer-multibyte-overlong-sequences): New test.
* | * lisp/hi-lock.el (hi-lock--regexps-at-point): Use proper-list-p, not consp.Juri Linkov2020-04-211-2/+3
| |
* | Remove unnecessary lambda quotingEric Abrahamsen2020-04-201-2/+2
| | | | | | | | | | * lisp/gnus/nntp.el (nntp-open-connection): Buffer has lexical-binding turned on.
* | Remove workaround from w32image.cEli Zaretskii2020-04-201-2/+0
| | | | | | | | | | | | * src/w32image.c (w32_load_image): Remove a workaround for a bug that is not needed anymore. This error was happening because GDI+ functions were called as CDECL, not as STDCALL.
* | Merge from origin/emacs-27Glenn Morris2020-04-2053-301/+420
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 05089a4d65 (origin/emacs-27) Tweak wording re constant variables a1040861f1 Tweak setcar-related wording 751510f865 * lisp/image-mode.el: Add prefix key 's' and reduce depend... 9261a219ec * doc/emacs/windows.texi (Window Convenience): Decribe mor... e1d42da0d6 Fix mutability glitches reported by Drew Adams 5805df74f5 Improve mutability doc dca35b31d0 Improve mutability documentation 81e7d7f111 Document that quoting yields constants 5734339f40 * doc/lispref/keymaps.texi (Extended Menu Items, Easy Menu... 14a570afae Remove #' and function quoting from lambda forms in manual d5ec18c66b * src/regex-emacs.c (re_match_2_internal): Rework comment ... 4df8a61117 Add new node "Image Mode" to Emacs Manual. d7d5ee6c57 ; Fix a typo in cmdargs.texi (bug#40701) 5e9db48fbe * doc/lispref/display.texi (Customizing Bitmaps): Fix typo. eebfb72c90 Document constant vs mutable objects better 6c187ed6b0 Improve documentation of 'sort-lines' 52288f4b66 Mention 'spam-stat-process-directory-age' in the documenta... 067b070598 ; Fix some typos and doc issues (bug#40695) # Conflicts: # etc/NEWS
| * Tweak wording re constant variablesPaul Eggert2020-04-191-1/+2
| | | | | | | | | | * doc/lispref/objects.texi (Constants and Mutability): Tweak. Problem reported by Michael Heerdegen (Bug#40693#44).
| * Tweak setcar-related wordingPaul Eggert2020-04-191-1/+1
| | | | | | | | | | | | | | * doc/lispref/eval.texi (Self-Evaluating Forms): Change “primitives” to “operations”. Problem reported by Štěpán Němec in: https://lists.gnu.org/r/emacs-devel/2020-04/msg01146.html
| * * lisp/image-mode.el: Add prefix key 's' and reduce dependency on ImageMagick.Juri Linkov2020-04-202-38/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image-mode.el (image-mode-map): Regroup existing keybindings and add new ones with the prefix key 's'. Remove condition ":visible (eq image-type 'imagemagick)" from menu. (image-toggle-display-image): Don't rotate again after user rotated manually. (image-transform-check-size): Remove check for imagemagick. (image-transform-properties, image-transform-set-scale) (image-transform-fit-to-height, image-transform-fit-to-width) (image-transform-set-rotation, image-transform-reset): Remove mentions of ImageMagick from docstrings since these commands now work without ImageMagick.
| * * doc/emacs/windows.texi (Window Convenience): Decribe more windmove features.Juri Linkov2020-04-202-34/+46
| | | | | | | | | | | | | | | | | | * doc/emacs/windows.texi (Window Convenience): Add descriptions of windmove-display-default-keybindings, windmove-delete-default-keybindings, windmove-swap-states-in-direction. * etc/NEWS: Regroup to move some parts closer to related sections.
| * Fix mutability glitches reported by Drew AdamsPaul Eggert2020-04-192-8/+10
| | | | | | | | | | | | | | | | | | | | See Bug#40693#32. * doc/lispref/eval.texi (Self-Evaluating Forms, Backquote): Say that these yield constant conses, vectors and strings, not constant symbols. * doc/lispref/objects.texi (Constants and Mutability): Say that an attempt to modify a constant variable signals an error, instead of saying that it has undefined behavior.
| * Improve mutability docPaul Eggert2020-04-192-15/+15
| | | | | | | | | | | | | | | | | | | | See Eli Zaretskii’s suggestions (Bug#40671#33). * doc/lispref/lists.texi (Setcar, Setcdr, Rearrangement): * doc/lispref/sequences.texi (Sequence Functions) (Array Functions): Add commentary to examples. * doc/lispref/lists.texi (Sets And Lists): Revert change to delq example.
| * Improve mutability documentationPaul Eggert2020-04-197-15/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | This change was inspired by comments from Štěpán Němec in: https://lists.gnu.org/r/emacs-devel/2020-04/msg01063.html * doc/lispref/objects.texi (Lisp Data Types): Mention mutability. (Constants and mutability): New section. * doc/lispintro/emacs-lisp-intro.texi (Lists diagrammed) (Indent Tabs Mode): Improve wording. * doc/lispref/eval.texi (Self-Evaluating Forms): Say that they return constants. * doc/lispref/lists.texi (Sets And Lists): Fix memql mistake/confusion that I recently introduced.
| * Document that quoting yields constantsPaul Eggert2020-04-191-1/+7
| | | | | | | | | | * doc/lispref/eval.texi (Quoting, Backquote): Mention that quoted expressions yield a constant (Bug#40693).
| * * doc/lispref/keymaps.texi (Extended Menu Items, Easy Menu) <:key-sequence>:Stefan Monnier2020-04-191-14/+11
| | | | | | | | Clarify the documentation further
| * Remove #' and function quoting from lambda forms in manualMattias Engdegård2020-04-197-50/+47
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/abbrevs.texi (Abbrev Expansion): * doc/lispref/backups.texi (Reverting): * doc/lispref/functions.texi (Mapping Functions): * doc/lispref/help.texi (Accessing Documentation): * doc/lispref/sequences.texi (Char-Tables): * doc/lispref/syntax.texi (Categories): * doc/lispref/text.texi (Sorting): Remove function quoting from lambda in examples where it still occurs, since examples should follow our best style and be consistent.
| * * src/regex-emacs.c (re_match_2_internal): Rework comment in last changeStefan Monnier2020-04-182-5/+7
| | | | | | | | | | | | Explain why we don't need to worry about Lisp modifying the buffer. * src/syntax.c (parse_sexp_propertize): Fix name in error message.
| * Add new node "Image Mode" to Emacs Manual.Juri Linkov2020-04-196-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/dired.texi (Image-Dired): Add xref to "Image Mode". * doc/emacs/emacs.texi (Top): Add new node "Image Mode" to menu. * doc/emacs/files.texi (Files): Add new node "Image Mode" to menu. (File Conveniences): Split part of node to new node "Image Mode". * doc/emacs/frames.texi (Mouse Commands): Add xref to "Image Mode". * doc/emacs/misc.texi (Embedded WebKit Widgets): Rename xref from "File Conveniences" to "Image Mode".
| * ; Fix a typo in cmdargs.texi (bug#40701)Štěpán Němec2020-04-181-1/+1
| |
| * * doc/lispref/display.texi (Customizing Bitmaps): Fix typo.Paul Eggert2020-04-181-1/+1
| |
| * Document constant vs mutable objects betterPaul Eggert2020-04-186-59/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch builds on a suggested patch by Mattias Engdegård and on further comments by Eli Zaretskii. Original bug report by Kevin Vigouroux (Bug#40671). * doc/lispintro/emacs-lisp-intro.texi (set & setq, Review) (setcar, Lists diagrammed, Mail Aliases, Indent Tabs Mode): setq is a special form, not a function or command. * doc/lispintro/emacs-lisp-intro.texi (setcar): * doc/lispref/lists.texi (Modifying Lists, Rearrangement): * doc/lispref/sequences.texi (Sequence Functions) (Array Functions, Vectors): * doc/lispref/strings.texi (String Basics, Modifying Strings): Mention mutable vs constant objects. * doc/lispintro/emacs-lisp-intro.texi (setcar, setcdr) (kill-new function, cons & search-fwd Review): * doc/lispref/edebug.texi (Printing in Edebug): * doc/lispref/keymaps.texi (Changing Key Bindings): * doc/lispref/lists.texi (Setcar, Setcdr, Rearrangement) (Sets And Lists, Association Lists, Plist Access): * doc/lispref/sequences.texi (Sequence Functions) (Array Functions): * doc/lispref/strings.texi (Text Comparison): Fix examples so that they do not try to change constants.
| * Improve documentation of 'sort-lines'Eli Zaretskii2020-04-181-1/+2
| | | | | | | | | | * lisp/sort.el (sort-lines): Clarify the interactive invocation. (Bug#40697)
| * Mention 'spam-stat-process-directory-age' in the documentationŠtěpán Němec2020-04-181-0/+7
| | | | | | | | | | | | | | | | | | I was at a loss as to why my attempt to set up spam-stat seemed to have no effect, only to find (digging in the code) that it was ignoring most of the sample files due to this undocumented variable. * doc/misc/gnus.texi (Creating a spam-stat dictionary): Document the variable 'spam-stat-process-directory-age'. (bug#39780)
| * ; Fix some typos and doc issues (bug#40695)Štěpán Němec2020-04-1827-83/+79
| |
* | * lisp/cdl.el: Use lexical binding.Stefan Kangas2020-04-201-1/+1
| |
* | Silence byte-compiler after my previous commitStefan Kangas2020-04-201-3/+2
| | | | | | | | * lisp/autoarg.el (autoarg-kp-digits): Silence byte-compiler.
* | Rework how GDI+ functions are loaded dynamically in w32image.cEli Zaretskii2020-04-191-43/+102
| | | | | | | | | | | | | | | | | | | | * src/w32image.c: Define correct WINGDIPAPI typedefs for GDI+ functions. We cannot use DEF_DLL_FN, since that is for functions with C calling conventions, whereas GDI+ functions are __stdcall. (gdiplus_init): Load functions from DLL manually, not via LOAD_DLL_FN, as the latter is for __cdecl functions. (w32_frame_delay): Initialize delay with a negative value, as zero is a valid delay.
* | Don't use Gnulib's explicit_bzero on MS-WindowsEli Zaretskii2020-04-193-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | This is a preventive change, since Gnulib was recently changed its explicit_bzero to call SecureZeroMemory on MS-Windows, disregarding systems older than XP, which didn't have it. * src/w32.c (explicit_bzero): New function. * nt/mingw-cfg.site (ac_cv_func_explicit_bzero): Avoid using the Gnulib replacement for explicit_bzero. * nt/inc/ms-w32.h (explicit_bzero): Add prototype.
* | Use lexical-binding in elide-head.el and add testsSimen Heggestøyl2020-04-192-5/+65
| | | | | | | | | | | | | | | | | | | | * lisp/elide-head.el: Use lexical-binding. (elide-head-headers-to-hide): Remove redundant :group arg. (elide-head-overlay): Use `defvar-local'. (elide-head-show): Fix docstring. * test/lisp/elide-head-tests.el: New file with tests for elide-head.el.
* | * lisp/autoarg.el: Use lexical binding.Stefan Kangas2020-04-191-1/+1
| |
* | Fix misnamed variable breaking GNUstepAhmed Khanzada2020-04-181-1/+1
| | | | | | | | * src/nsterm.m (ns_set_offset): Use correct variable.
* | Use lexical-binding in apropos.el and add testsSimen Heggestøyl2020-04-182-31/+154
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/apropos.el: Use lexical-binding and remove redundant :group args. (apropos-words-to-regexp, apropos): Tweak docstrings. (apropos-value-internal): Replace '(if x (progn y))' with '(when x y)'. (apropos-format-plist): Add docstring and replace '(if x (progn y))' with '(when x y)'. * test/lisp/apropos-tests.el: New file with tests for apropos.el.
* | Merge from origin/emacs-27Glenn Morris2020-04-189-42/+80
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | f3b62b6c62 (origin/emacs-27) Avoid crashes in regex-emacs.c due to GC 175c61c18b Fix "C-u M-!" when 'shell-command-dont-erase-buffer' is no... 6b297519b5 Fix cl-most-positive-float doc typo c36c5a3ded ; lisp/ldefs-boot.el: Update. 3876a60569 Fix a typo in calculator.el 9e832ba91b * lisp/erc/erc.el: Add URL to the new ERC page on the Emac... # Conflicts: # etc/NEWS
| * Avoid crashes in regex-emacs.c due to GCEli Zaretskii2020-04-181-0/+22
| | | | | | | | | | * src/regex-emacs.c (re_match_2_internal): Prevent GC from invalidating C pointers to buffer text. (Bug#40661)
| * Fix "C-u M-!" when 'shell-command-dont-erase-buffer' is non-nilEli Zaretskii2020-04-184-26/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (shell-command-dont-erase-buffer): Clarify the effect of the various values in the doc string. (shell-command-save-pos-or-erase, shell-command): Don't move or push point if the output will go to the current buffer. (Bug#40690) (shell-command): Mention 'shell-command-dont-erase-buffer' in the doc string. * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Don't is shell quoting 'like this', as it doesn't work on MS-Windows; quote "like this" instead. (simple-tests-shell-command-dont-erase-buffer): Adapt the test to the new modus operandi. * doc/emacs/misc.texi (Single Shell): Document the effect of the various values of 'shell-command-dont-erase-buffer'. * etc/NEWS: Expand and reword the entry regarding changes in 'shell-command-dont-erase-buffer'.