summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Mark all def* functions that should indent as `defun'Lars Ingebrigtsen2021-10-138-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/abbrev.el (define-abbrev): (define-abbrev-table): Mark all functions that have names that start with "def" that should indent according to the current heuristics (bug#43329). * lisp/autoinsert.el (define-auto-insert): * lisp/button.el (define-button-type): * lisp/subr.el (define-key-after): (define-mail-user-agent): (define-keymap): * lisp/widget.el (define-widget): * lisp/emacs-lisp/package.el (define-package): * lisp/international/mule-cmds.el (define-char-code-property): * lisp/international/mule.el (define-charset): (define-coding-system): (define-translation-table): (define-translation-hash-table):
* Pacify gcc -Warray-parameterPaul Eggert2021-10-131-1/+2
| | | | | * src/pdumper.h: Declare array parameter with the same signature that the function definition uses.
* Pacify GCC -Wanalyzer-possible-null-dereferencePaul Eggert2021-10-133-35/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the only remaining GCC diagnostics when emacs-28 is configured with --enable-gcc-warnings. It does so by adding ATTRIBUTE_RETURNS_NONNULL so that GCC knows certain functions return nonnull. It also arranges for three of those functions to always return nonnull; I thought these functions already were doing so, but apparently not, and it is conceivable (though I haven’t checked this) that changing these functions to always return nonnull even on non-GNU platforms may fix unlikely portability bugs elsewhere in Emacs. I used GCC 11.2.1 20210728 (Red Hat 11.2.1-1) on x86-64 when checking the diagnostics. * configure.ac: Invoke gl_EEMALLOC before gl_INIT, in case the regex code doesn't invoke gl_EEMALLOC; needed for src/alloc.c’s use of MALLOC_0_IS_NONNULL. * src/alloc.c (xmalloc, xzalloc, xrealloc): Don’t worry about the special case where SIZE == 0, since lmalloc and lrealloc now return null only on allocation failure. (lmalloc, lrealloc): Return null only on allocation failure, instead of having special cases that treat malloc (0) and realloc (X, 0) as successes even when they return null. * src/lisp.h: Add ATTRIBUTE_RETURNS_NONNULL to a few functions that always return nonnull pointers, so that gcc -fanalyzer does not issue diagnostics like “alloc.c: In function ‘allocate_vector_block’: alloc.c:2985:15: warning: dereference of possibly-NULL ‘block’ [CWE-690] [-Wanalyzer-possible-null-dereference]” as per <https://cwe.mitre.org/data/definitions/690.html>.
* Merge from origin/emacs-28Paul Eggert2021-10-139-25/+45
|\ | | | | | | | | | | | | | | | | | | | | | | efb1cd7fa9 ; * etc/charsets/README: Update the format documentation. cc796b7409 Tramp doc cleanup a338d46060 Make emacs-lisp-byte-compile-and-load load the .elc file a... 3eac7dc780 Fix point movement in image-dired 4e9452a399 Improve shortdoc for vector f223ac6ef9 Fix test bug when calloc returns null ebeaa54f19 Pacify GCC 11 -fanalyzer on x86-64 56d1f42f30 Improve handling of non-character events in input methods 3fbe6fd367 ; Fix mistakes in last doc rewording about shorthands
| * ; * etc/charsets/README: Update the format documentation.Eli Zaretskii2021-10-131-1/+3
| |
| * Tramp doc cleanupMichael Albinus2021-10-131-4/+9
| | | | | | | | | | | | * doc/misc/tramp.texi (Overview, Bug Reports) (Frequently Asked Questions): Stylistic changes. (Bug Reports): Mention tramp buffers appended to bug report.
| * Make emacs-lisp-byte-compile-and-load load the .elc file againLars Ingebrigtsen2021-10-131-1/+1
| | | | | | | | | | * lisp/progmodes/elisp-mode.el (emacs-lisp-byte-compile-and-load): Load the compiled file instead of the source (bug#51180).
| * Fix point movement in image-diredPeter Münster2021-10-131-5/+6
| | | | | | | | | | | | | | * lisp/image-dired.el (image-dired-thumb-file-marked-p): Don't move point in associated dired buffer. (image-dired-delete-marked): Revert "Fix deletion of associated image" because it was wrong and introduced another problem (bug#51152).
| * Improve shortdoc for vectorStefan Kangas2021-10-131-5/+10
| | | | | | | | | | | | * lisp/emacs-lisp/shortdoc.el (vector): Improve shortdoc with titles. Add mapc. Fix typo where 'seq-reduce' is incorrectly written as 'reduce'.
| * Fix test bug when calloc returns nullPaul Eggert2021-10-121-1/+4
| | | | | | | | | | * test/src/emacs-module-resources/mod-test.c (Fmod_test_userptr_make): Don’t dump core if calloc returns null and signal_errno returns.
| * Pacify GCC 11 -fanalyzer on x86-64Paul Eggert2021-10-121-1/+3
| | | | | | | | | | | | * src/buffer.c (fix_overlays_before): Redo slightly to work around GCC bug 102692 <https://gcc.gnu.org/bugzilla//show_bug.cgi?id=102692>.
| * Improve handling of non-character events in input methodsGregory Heytings2021-10-121-1/+3
| | | | | | | | | | * lisp/international/quail.el (quail-add-unread-command-events): Handle non-vector event arguments. Fixes bug#51118.
| * ; Fix mistakes in last doc rewording about shorthandsJoão Távora2021-10-121-6/+6
| | | | | | | | | | | | | | | | | | | | | | bug#51089 1. The 'punctuation' syntax class is actually empty in Emacs Lisp. The class used in the implementation is 'symbol constituents'; 2) The prefix to escape shorthands is '#_' together, not '#' or '_'. * doc/lispref/symbols.texi (Shorthands): Fix exception.
* | Change release branch to emacs-28Paul Eggert2021-10-132-5/+5
| | | | | | | | | | * admin/notes/git-workflow: * Makefile.in (PREFERRED_BRANCH): emacs-27 → emacs-28
* | Update Emacs requirement after removing compat codeLars Ingebrigtsen2021-10-131-1/+1
| |
* | Allow inhibiting `not-unused' warningsLars Ingebrigtsen2021-10-132-5/+5
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types): Allow inhibiting the `not-unused' warning (bug#31641). (There has been some discussion about removing the `not-unused' warning, but it's still in there, so making it possible to inhibit it seems like the right thing to do.) * lisp/emacs-lisp/cconv.el (cconv--analyze-use): Don't warn about `not-unused'.
* | Fix problem with multiline fontification in interactive PythonLars Ingebrigtsen2021-10-131-6/+2
| | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-font-lock-post-command-hook): When doing multi-line (`C-c SPC') inputs, remove all the preceding lines when doing fontification (bug#47657).
* | Continue to work on emba integrationMichael Albinus2021-10-132-5/+8
| | | | | | | | | | | | | | * test/infra/Dockerfile.emba: Remove instrumentation. * test/infra/gitlab-ci.yml (.job-template): Specify timeout signal. (.job-template, .test-template): Improve wildcard.
* | Remove some compat code from python.elLars Ingebrigtsen2021-10-131-5/+1
| | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-font-lock-post-command-hook): Remove Emacs 24.3 and earlier compat code.
* | * src/pdumper.h: Include <stdio.h>.Andreas Schwab2021-10-131-0/+1
| |
* | Improve 'display-buffer' 'temp-buffer-resize-mode' cohabitation (Bug#51062)Martin Rudalics2021-10-134-48/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Temporary Displays): Explain how to override the effect of 'temp-buffer-resize-mode' with a suitable 'display-buffer' action alist entry. * doc/lispref/windows.texi (Buffer Display Action Alists): Mention that an 'inhibit-switch-frame' entry might not work with every WM. Describe the 'window-size' entry. Describe how automatic window resizing can be overridden. * lisp/help.el (resize-temp-buffer-window-inhibit): New variable. (resize-temp-buffer-window): Handle case where user overrides automatic resizing. * lisp/window.el (temp-buffer-window-show): Bind 'resize-temp-buffer-window-inhibit' to nil around 'display-buffer'. Do not raise frame automatically to avoid defeating 'inhibit-switch-frame'. (window--display-buffer): Set 'resize-temp-buffer-window-inhibit' to t when the action alist contains a 'window-height', 'window-width' or 'window-size' entry. Use 'modify-frame-parameters' instead of 'set-frame-height' and 'set-frame-width' to avoid that the latter step on each others toes. (display-buffer): Fix 'inhibit-switch-frame' part in and add 'window-size' part to doc-string.
* | MH-E: restore message about obsolete key bindingStephen Gildea2021-10-122-4/+3
| | | | | | | | | | | | * lisp/mh-e/mh-show.el: * lisp/mh-e/mh-folder.el: Restore "obsolete key" message for "J w" that was lost in the conversion from gnus-define-keys to define-keymap.
* | Fix byte-compilation warnings in nox buildsBasil L. Contovounesios2021-10-124-16/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For discussion, see bug#51139. * lisp/edmacro.el (edmacro-fix-menu-commands): Load mwheel to pacify free variable warnings in without-x builds. * lisp/mh-e/mh-compat.el: Declare image.el functions that are not preloaded in without-x builds. * lisp/mh-e/mh-utils.el (mh--with-image-load-path): New macro. (mh-logo-display): * lisp/mh-e/mh-tool-bar.el (mh-tool-bar-folder-buttons-init) (mh-tool-bar-letter-buttons-init): Use it to pacify byte-compilation warnings about image.el definitions not preloaded without-x.
* | Clean up nnimap buffers with dead processesEric Abrahamsen2021-10-121-9/+29
| | | | | | | | | | | | | | | | | | | | * lisp/gnus/nnimap.el (nnimap-keepalive): If the keepalive "NOOP" fails, remove the buffer with the dead process from `nnimap-process-buffers' and `nnimap-connection-alist'. (nnimap-find-connection): Do the same here, when the connection can't be found. (nnimap-close-server): Remove process buffer from lists when closing server.
* | decoded-time-add doc string additionLars Ingebrigtsen2021-10-121-1/+5
| | | | | | | | * lisp/calendar/time-date.el (decoded-time-add): Add a usage example.
* | Adapt emba control filesMichael Albinus2021-10-122-6/+5
| | | | | | | | | | | | | | | | * test/infra/Dockerfile.emba: Print core pattern. * test/infra/gitlab-ci.yml (.job-template, .test-template): Improve wildcard. (.job-template): Add timeout.
* | Merge from origin/emacs-28Glenn Morris2021-10-126-28/+50
|\| | | | | | | | | | | | | | | 66b8dfd060 (origin/emacs-28) ; Fix last change related to shorthands 3832b983cf In Fdelete_other_windows_internal fix new total window siz... 5deb0ec14f * lisp/mh-e/mh-show.el (mh-junk-whitelist): Custom obsoles... cf1409db71 Don't apply shorthands to punctuation-only symbols (bug#51... b3d0f53b29 * lisp/progmodes/python.el: Bump package version to 0.28.
| * ; Fix last change related to shorthandsEli Zaretskii2021-10-122-12/+12
| | | | | | | | | | | | | | * src/lread.c (read1): Minor stylistic fixes of the last change, including the wording of the comment. * doc/lispref/symbols.texi (Shorthands): Fix wording and typos.
| * In Fdelete_other_windows_internal fix new total window sizes (Bug#51007)Martin Rudalics2021-10-121-22/+16
| | | | | | | | | | | | * src/window.c (Fdelete_other_windows_internal): Assign the new total sizes of windows _after_ the new window configuration is in place (Bug#51007).
| * * lisp/mh-e/mh-show.el (mh-junk-whitelist): Custom obsolescence message.Stephen Gildea2021-10-111-1/+8
| |
| * Don't apply shorthands to punctuation-only symbols (bug#51089)João Távora2021-10-113-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes symbols used for arithmetic functions such as -, /=, etc. Using "-" or "/=" is still possible but doing so won't shadow those functions. * doc/lispref/symbols.texi (Shorthand, Exceptions): New subsubsection. * src/lread.c (read1): Exempt punctionation-only symbols from oblookup_considering_shorthand. * test/lisp/progmodes/elisp-mode-tests.el (elisp-dont-shadow-punctuation-only-symbols): Tweak test.
| * * lisp/progmodes/python.el: Bump package version to 0.28.Stefan Kangas2021-10-111-1/+1
| |
* | ; Merge from origin/emacs-28Glenn Morris2021-10-120-0/+0
|\| | | | | | | | | | | The following commit was skipped: 392d6708a5 Fontify "print" and "exec" as functions in python-mode
| * Fontify "print" and "exec" as functions in python-modeStefan Kangas2021-10-111-3/+0
| | | | | | | | | | | | | | | | | | This change was first made on master, but on closer consideration it is better to fix this bug already in Emacs 28.1. * lisp/progmodes/python.el (python-font-lock-keywords-level-2): Fontify "print" and "exec" as functions, which is the case in Python 3. (Bug#43298) Do not merge to master.
* | Merge from origin/emacs-28Glenn Morris2021-10-122-3/+7
|\| | | | | | | | | 47e09d1855 Copy parent face attributes to tab-line-tab-current instea... d96f8b22c0 Another fix for 'ibuffer-shrink-to-fit' (Bug#7218, Bug#51029)
| * Copy parent face attributes to tab-line-tab-current instead of inheriting faceJuri Linkov2021-10-111-1/+5
| | | | | | | | | | | | | | * lisp/tab-line.el (tab-line-tab-current): Don't inherit face from 'tab-line-tab' to not inherit the face attribute :height from 'tab-line', because :height of mouse-face is added to the base face. Copy here most of the parent face attributes (bug#50798).
| * Another fix for 'ibuffer-shrink-to-fit' (Bug#7218, Bug#51029)Martin Rudalics2021-10-111-2/+2
| | | | | | | | | | * lisp/ibuffer.el (ibuffer-shrink-to-fit): Fit window only if its buffer is in 'ibuffer-mode' (Bug#7218, Bug#51029).
* | ; Merge from origin/emacs-28Glenn Morris2021-10-120-0/+0
|\| | | | | | | | | | | The following commit was skipped: 665a184f87 Backport: * doc/misc/tramp.texi (Bug Reports): Describe, h...
| * Backport: * doc/misc/tramp.texi (Bug Reports): Describe, how to activate ↵Michael Albinus2021-10-111-0/+8
| | | | | | | | | | | | ELPA Tramp. (cherry picked from commit 978e5339e0d4ef98575096bcf3ec2061ad530f27)
* | Merge from origin/emacs-28Glenn Morris2021-10-122-0/+10
|\| | | | | | | 0d374b1b83 Work around GCC bug 102671
| * Work around GCC bug 102671Paul Eggert2021-10-112-0/+10
| | | | | | | | | | This is for --enable-gcc-warnings on GCC 11.2.1. * src/window.c, src/timefns.c: Disable -Wanalyzer-null-dereference.
* | Fix more Gnus group key bindings recently changedLars Ingebrigtsen2021-10-121-21/+21
| | | | | | | | | | * lisp/gnus/gnus-group.el (:keymap): Fix some prefix keys that ended up in the wrong place during the keymap rewrite (bug#51136).
* | Remove more MH-E compat codeStefan Kangas2021-10-129-255/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mh-e/mh-e.el (mh-strip-package-version, defgroup-mh) (defcustom-mh, defface-mh): Make Emacs 21 compat aliases obsolete. Update callers. * lisp/mh-e/mh-e.el: (mh-exchange-point-and-mark-preserving-active-mark) * lisp/mh-e/mh-folder.el (desktop-buffer-mode-handlers): * lisp/mh-e/mh-mime.el (mh-mm-inline-media-tests) (mh-have-file-command, mh-mime-security-button-map): * lisp/mh-e/mh-show.el (mh-summary-height): * lisp/mh-e/mh-speed.el (mh-process-kill-without-query): * lisp/mh-e/mh-xface.el (mh-uncompface-executable) (mh-face-to-png, mh-uncompface, mh-picon-file-contents): Remove XEmacs and Emacs 21 and older compat code.
* | Make dbus work in a dumped EmacsLars Ingebrigtsen2021-10-121-9/+13
| | | | | | | | | | | | * lisp/net/dbus.el (dbus--init): Make into a defun. (after-pdump-load-hook): Put it onto the new pdump hook so that it's run after startup (bug#37331).
* | Add a new after-pdump-load-hook variableLars Ingebrigtsen2021-10-125-0/+24
| | | | | | | | | | | | | | | | | | * doc/lispref/internals.texi (Building Emacs): Document it. * lisp/subr.el (after-pdump-load-hook): New variable. * src/emacs.c (main): Run the new hook. * src/pdumper.c (syms_of_pdumper): Define a symbol.
* | Make mh-do-in-gnu-emacs obsoleteStefan Kangas2021-10-122-9/+4
| | | | | | | | | | | | | | * lisp/mh-e/mh-acros.el (mh-do-in-gnu-emacs): Make obsolete. * lisp/mh-e/mh-tool-bar.el: Don't use above obsolete macro. (mh-acros): Require to avoid warnings. Thanks to Lars Ingebrigtsen <larsi@gnus.org>.
* | Change --fingerprint to output to stdoutAndreas Schwab2021-10-124-9/+11
| | | | | | | | | | | | | | | | | | * src/pdumper.c (dump_fingerprint): Add argument OUTPUT, use it instead of stderr, update all uses. Don't print colon if LABEL is empty. * src/pdumper.h (dump_fingerprint): Adjust. * src/emacs.c (main): Print fingerprint to stdout, without label. * Makefile.in (EMACS_PDMP): Adjust.
* | Have 'while-no-input-ignore-events' handle idle timers too (Bug#49997)Martin Rudalics2021-10-122-20/+28
| | | | | | | | | | | | | | | | | | | | | | * src/keyboard.c (read_char): Use Vwhile_no_input_ignore_events to check which idle timers should be resumed (Bug#49997). (init_while_no_input_ignore_events): New function to initialize Vwhile_no_input_ignore_events. (Vwhile_no_input_ignore_events): Say in doc-string that events in this list do not stop idle timers. * lisp/subr.el (while-no-input): Remove initialization of 'while-no-input-ignore-events'; do that in keyboard.c now.
* | * list/erc/erc-{replace,imenu,dcc}: Tweak copyright formatStefan Monnier2021-10-113-6/+3
| | | | | | | | | | | | * lisp/erc/erc-replace.el: * lisp/erc/erc-imenu.el: * lisp/erc/erc-dcc.el: Massage copyright so elpa-admin.el recognizes it
* | Remove last XEmacs compat code from ERCStefan Kangas2021-10-122-4/+2
| | | | | | | | | | | | | | * lisp/erc/erc-dcc.el (erc-dcc-member): Remove XEmacs compat code. * lisp/erc/erc-goodies.el (erc-move-to-prompt-setup): Doc fix; remove spurious reference to XEmacs; this is needed also for Emacs.