aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/emacs-lisp/cl-generic.el: Fix bootstrap.scratch/completion-apiStefan Monnier2019-12-042-15/+37
| | | | | | | | | | Most importantly, prefill dispatchers for the new minibuffer.el methods. * lisp/minibuffer.el (completion-table-category): Return both the category and the default style. (completion-table--call-method): New function. (completion-table-test, completion-table-category) (completion-table-boundaries, completion-table-fetch-matches): Use it.
* WIP of possible new completion APIStefan Monnier2019-11-161-0/+193
|
* * lisp/tab-bar.el: Add missing arg.Juri Linkov2019-11-172-3/+3
| | | | | | | | * lisp/tab-bar.el (tab-bar-list-next-line) (tab-bar-list-prev-line): Add missing interactive spec for prefix arg. * lisp/mouse.el (mouse-buffer-menu-mode-groups): Add "Git" regexp to match "Git-Region-History" mode name for "Version Control" group.
* * lisp/simple.el (eval-expression-print-maximum-character): Use choice type.Juri Linkov2019-11-171-1/+3
| | | | https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00433.html
* * lisp/dired.el (dired-dwim-target): Add choice dired-dwim-target-next-visibleJuri Linkov2019-11-173-8/+22
| | | | | | | | * lisp/dired-aux.el (dired-dwim-target-next): Add arg ALL-FRAMES. (dired-dwim-target-next-visible): New function. * doc/emacs/dired.texi (Operating on Files): Describe function value of dired-dwim-target. (Bug#35385)
* Fix display of R2L textEli Zaretskii2019-11-161-6/+10
| | | | | * src/xdisp.c (extend_face_to_end_of_line): Fix padding of R2L screen lines with stretch glyph on the left. (Bug#38233)
* Fix moving files with duplicate names to trash-canShingo Tanaka2019-11-161-1/+2
| | | | | | | | * lisp/files.el (move-file-to-trash): Fix file name in trash-can when another deleted file under the same name is already stored there. (Bug#37922) Copyright-paperwork-exempt: yes.
* Do not report move frame events for tooltip frames (Bug#38213)Martin Rudalics2019-11-162-2/+4
| | | | | | * src/w32term.c (w32_read_socket): * src/xterm.c (handle_one_xevent): Do not report move frame events for tooltip frames (Bug#38213).
* tex-mode: paragraph separator groups text and commentsMichael Orlitzky2019-11-161-1/+1
| | | | | | | * lisp/textmodes/tex-mode.el (latex-mode): Don't wrap text with leading spaces into preceding comments (bug#38152). Copyright-paperwork-exempt: yes
* Don't move point on undefined keystrokes in the article bufferLars Ingebrigtsen2019-11-161-26/+21
| | | | | * lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): Don't move point on undefined commands (bug#38227).
* Make button-1 work on all Gnus buttonsLars Ingebrigtsen2019-11-162-5/+12
| | | | | | | | | * lisp/gnus/gnus-icalendar.el (gnus-icalendar-insert-button): * lisp/gnus/gnus-art.el (gnus-insert-mime-button) (gnus-mime-display-alternative, gnus-insert-prev-page-button) (gnus-insert-next-page-button) (gnus-insert-mime-security-button): Make button-1 work on all the Gnus buttons (bug#38144).
* Make it clear what edebug-remove-instrumentation offersLars Ingebrigtsen2019-11-161-2/+4
| | | | | * doc/lispref/edebug.texi (Instrumenting): Reword the description of the edebug-remove-instrumentation command.
* Port new float-scaling code to SolarisPaul Eggert2019-11-151-4/+1
| | | | | | * src/floatfns.c (double_integer_scale): Simplify, so that the function works when (FP_ILOGBNAN == INT_MAX && FP_ILOGB0 == INT_MIN), as on Solaris.
* ; * lisp/so-long.el: Silence byte-compiler warningsPhil Sainty2019-11-161-0/+3
|
* Make icomplete-tidy-shadowed-file-names less aggressiveJoão Távora2019-11-151-52/+55
| | | | | | | | | | | | | When using this option and editing input, some transient situations may arise that lead to file-name shadowing, but that shouldn't necessarily lead to auto-delete behaviour, which will be suprising. In '/foo/x/bar', if the user deletes the 'x', shadowing occurs, but probably shouldn't. So, somewhat like ido-mode, only auto-tidy shadowed file names if the user is inserting text at end of input. * lisp/icomplete.el (icomplete-exhibit): Check this-command. (icomplete-tidy-shadowed-file-names): Tweak docstring.
* * lisp/progmodes/perl-mode.el (perl-calculate-indent): Indent qw(...)Stefan Monnier2019-11-152-9/+28
| | | | | Fix initialization of `state`. Special-case `qw(...)` because we do want to indent its contents.
* Used magic-fallback-mode-alist to detect .doc files (Bug#20891)Robert Pluim2019-11-151-1/+2
| | | | | | | | | This avoids running doc-view-mode on files that are actually text files. * lisp/files.el (auto-mode-alist): Don't use doc-view-mode-maybe for .doc (but continue to do so for .docx). (magic-fallback-mode-alist): Add signature for .doc files.
* Improve indexing of function doc string conventionsEli Zaretskii2019-11-151-1/+2
| | | | | * doc/lispref/functions.texi (Function Documentation): Improve indexing (bug#38158).
* Port hexdigit init to non-GCC + pdumperPaul Eggert2019-11-152-23/+11
| | | | | | | | | | | | | | The old code assumed that hexdigit initialization (needed by non-GCC) could be done in syms_of_character, but that is no longer true with pdumper. Instead, simplify hexdigit init so that it can be done statically on all C99 platforms. Problem discovered on Solaris 10 sparc + Oracle Solaris Studio 12.6. * src/character.c (hexdigit): Add 1 to every value; all uses changed. This simplifies the initialization so that it can be done statically on any C99 compiler. hexdigit is now always const. (syms_of_character): Omit no-longer-necessary initialization. * src/character.h (HEXDIGIT_CONST, HEXDIGIT_IS_CONST): Remove. All uses removed.
* Improve documentation of 'add-variable-watcher'Eli Zaretskii2019-11-152-15/+18
| | | | | | | | * doc/lispref/variables.texi (Watching Variables): Clarify the documentation of 'add-variable-watcher' and fix markup. * src/data.c (Fadd_variable_watcher): Clarify the doc string. (Bug#38205)
* Avoid using subr-x functionLars Ingebrigtsen2019-11-151-1/+2
| | | | | * lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Avoid using subr-x function (bug#38216).
* In 'dframe-frame-mode' avoid 'switch-to-buffer' (Bug#37840)Martin Rudalics2019-11-151-3/+7
| | | | | | * lisp/dframe.el (dframe-frame-mode): Use 'set-window-buffer' instead of 'switch-to-buffer’ to avoid that 'switch-to-buffer-obey-display-actions' butts in (Bug#37840).
* lisp/vc/vc-hg.el: Don't pass empty string to hg updateAndrii Kolomoiets2019-11-151-1/+1
| | | | | * lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Don't pass empty name to `hg update` (bug#38216).
* Fix minor formatting issue in isearch-forward documentationLele Gaifax2019-11-151-2/+2
| | | | | * lisp/isearch.el (isearch-forward): Doc string formatting fix (bug#38207).
* Make edebug-remove-instrumentation remove macro instrumentationLars Ingebrigtsen2019-11-151-2/+3
| | | | | | * lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): Macros can also have edebug instrumentation, so remove that as well (bug#38195).
* Update nnir-method-default-engines version tagRobert Pluim2019-11-151-1/+1
| | | | * lisp/gnus/nnir.el (nnir-method-default-engines): Update version tag.
* Fix a recent change in xdisp.cEli Zaretskii2019-11-151-3/+0
| | | | | | | * src/xdisp.c (tty_handle_tab_bar_click): Revert the last change which made this work only in the HAVE_NTGUI build. This function is needed by any build which supports a mouse on TTY frames.
* Handle weird cases like (ceil 0 0.0)Paul Eggert2019-11-142-22/+31
| | | | | | | | | | | * src/floatfns.c (double_integer_scale): Distinguish Inf from NaN. (rounding_driver): Handle (ceil 0 0.0) and (ceil 0 1.0e+INF). * test/src/floatfns-tests.el (special-round): Add tests for weird cases like this. Avoid crash with (floor 0 0.0) * src/floatfns.c (rounding_driver): Signal an arithmetic error if divisor is 0.0 or -0.0, instead of crashing.
* * lisp/cedet/semantic/db.el: Use lexical-bindingStefan Monnier2019-11-141-49/+50
| | | | | | | | | Also prefer setf over oset. (semanticdb-abstract-table-list): Always define. (semanticdb--inhibit-make-directory): Fix name of declaration to match name of variable actually used. (semanticdb-with-match-any-mode): Use `declare`. Add Edebug spec. (semanticdb-project-roots): Remove redundant :group.
* Fix byte-counting error in ‘format’Paul Eggert2019-11-142-3/+7
| | | | | | | Problem reported by Paul Pogonyshev (Bug#38191). * src/editfns.c (styled_format): When checking for adjacent %-sequences, use byte position rather than character position. * test/src/editfns-tests.el (format-properties): Test for fix.
* In Cairo builds, omit some unnecessary functionsPaul Eggert2019-11-143-2/+17
| | | | | | | | | | | * src/font.c (fset_font_data, font_put_frame_data) (font_get_frame_data): * src/ftfont.c (ftfont_open, ftfont_close) (ftfont_encode_char, ftfont_glyph_metrics) (ftfont_text_extents, ftfont_driver): Define only if USE_CAIRO. * src/xdisp.c (tty_handle_tab_bar_click): Define only if HAVE_NTGUI && !CYGWIN.
* (repos-count-screen-lines): Narrow without changing point-minDmitry Gutov2019-11-141-2/+3
| | | | | | | | | * lisp/reposition.el (repos-count-screen-lines): Narrow without changing point-min. It wasn't necessary for vertical-motion to work, and it had some adverse effects on how font-lock rules were applied (https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00522.html). This can also be an alternative fix for bug#38049.
* CC Mode: Fix two bugs in the "state cache".Alan Mackenzie2019-11-141-19/+42
| | | | | | | | | | | | | | | | This (along with a suggestion to the OP to set open-paren-in-column-0-is-defun-start to nil) fixes bug #37910. It may also have fixed bug #5490 and bug #18072. * lisp/progmodes/cc-engine.el (c-state-cache-non-literal-place): Remove thi non-sensical function, replacing it with .... (c-state-cache-lower-good-pos): New function. (c-renarrow-state-cache, c-append-lower-brace-pair-to-state-cache) (c-remove-stale-state-cache, c-remove-stale-state-cache-backwards): Instead of altering the state-cache list structure with setcar and setcdr, use setq and consing. (c-parse-state-1): Call c-state-cache-lower-good-pos rather than c-state-cache-non-literal-place.
* Remove unneeded font_is_ignored prototypeRobert Pluim2019-11-141-4/+0
| | | | | * src/gtkutil.h: Remove unneeded prototype for font_is_ignored, it's in font.h now.
* ; Add explanation for face-ignored-fonts defaultsRobert Pluim2019-11-141-2/+3
|
* Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2019-11-146-27/+401
|\
| * Merge branch 'scratch/so-long-updates'Phil Sainty2019-11-156-27/+401
| |\
| | * Make so-long disable flymake, flyspell, flycheckPhil Sainty2019-11-151-0/+3
| | | | | | | | | | | | | | | * so-long.el (so-long-minor-modes): Add flymake-mode, flyspell-mode, and flycheck-mode.
| | * Support loading so-long.el on top of an earlier versionPhil Sainty2019-11-151-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | * so-long.el (so-long-version, so-long--latest-version): New variables. This enables users to safely load version 1.0 of so-long.el on top of an earlier version, as well as making provisions for doing likewise following any incompatible changes arising in future versions.
| | * Backwards-compatibility function definitions for so-long.elPhil Sainty2019-11-151-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | * so-long.el (so-long-inhibit-whitespace-mode) (so-long-make-buffer-read-only, so-long-revert-buffer-read-only) (so-long-inhibit-global-hl-line-mode): Restore dummy definitions of now-obsolete hook functions used by earlier versions of so-long.el, to support users who have saved these symbols in their customized values for the hooks in question.
| | * * lisp/so-long.el (so-long-unload-function): Improved feature unloadPhil Sainty2019-11-151-8/+39
| | |
| | * ; * lisp/so-long.el (so-long-predicate): Custom type consistencyPhil Sainty2019-11-151-2/+2
| | | | | | | | | | | | | | | This is for consistency with the other function options, which all used the 'radio' custom type.
| | * Defer triggering `so-long' until the buffer is displayedPhil Sainty2019-11-155-6/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/so-long.el (so-long-invisible-buffer-function): New user option. (so-long--set-auto-mode): Use so-long-invisible-buffer-function. (so-long-deferred): New function/value for so-long-invisible-buffer-function. (so-long, so-long--disable): Support for so-long-deferred. * test/lisp/so-long-tests/autoload-longlines-mode-tests.el * test/lisp/so-long-tests/autoload-major-mode-tests.el * test/lisp/so-long-tests/autoload-minor-mode-tests.el * test/lisp/so-long-tests/so-long-tests.el: Support for so-long-deferred. Pre-existing tests have been updated to ensure the buffer is already displayed in cases where a call to `normal-mode' is the (potential) trigger for `so-long'.
| | * ; Documentation and spellingPhil Sainty2019-11-152-17/+106
| |/ | | | | | | | | | | | | | | | | | | | | | | | | * lisp/so-long.el: Documentation fixes. For the purposes of consistency, this reverts some of the changes made in commit 41ba8231ef072571e1a6feabc15d113e5cf57556, including one which had introduced inconsistent spelling. ispell configuration and LocalWords have been added such that `ispell-buffer' should find no misspellings for this library. * test/lisp/so-long-tests/spelling-tests.el (so-long-spelling): New test to check the spelling using `ispell-buffer'.
* | ; * src/font.h (font_is_ignored): Add prototype to avoid warnings.Eli Zaretskii2019-11-141-0/+1
|/
* Fix recent documentation changesEli Zaretskii2019-11-142-6/+5
| | | | | | | | * doc/lispref/minibuf.texi (Multiple Queries): Move the reference to 'read-char-from-minibuffer' from here... * doc/lispref/commands.texi (Reading One Event): ...to here. Fix the wording of the description of 'read-char-from-minibuffer'.
* Make GTK font chooser respect face-ignored-fontsRobert Pluim2019-11-143-14/+45
| | | | | | | | | | * src/font.c (font_delete_unmatched): Move Vface_ignored_fonts matching to... (font_is_ignored): ..Here. New function. * src/gtkutil.c (xg_font_filter): New function, uses font_is_ignored to filter fonts. (xg_get_font): Set GTK font chooser filter to xg_font_filter. * src/gtkutil.h: Add prototype for font_is_ignored.
* Obsolete rfc2047-quote-special-characters-in-quoted-strings (bug#38200)Katsumi Yamaoka2019-11-141-0/+50
| | | | | | * lisp/mail/rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings): Make obsolete instead of removing it.
* Remove rfc2047-quote-special-characters-in-quoted-strings (bug#38200)Katsumi Yamaoka2019-11-141-63/+9
| | | | | | * lisp/mail/rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings): Remove function. (rfc2047-encode-message-header, rfc2047-encode-region): Don't use it.
* (vc-default-update-on-retrieve-tag): Accept backend argumentAndrii Kolomoiets2019-11-141-1/+1
| | | | | | * lisp/vc/vc.el (vc-default-update-on-retrieve-tag): Accept backend argument (bug#38156). This fixes a bug introduced in the previous patch.