aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix image-converter probingLars Ingebrigtsen2019-10-291-4/+6
| | | | | * lisp/image/image-converter.el (image-converter--find-converter): Stop probing on the first successful probe.
* * lisp/minibuffer.el: Tweak and undo parts of recent changesStefan Monnier2019-10-291-24/+29
| | | | | | | | | | (completion-metadata): Always return a fresh new cons cell. (completion--nth-completion): Don't bother calling adjust-metadata if the result won't be used. (completion-pcm--hilit-commonality): Revert recent change which had removed support for `completions-first-difference` in `substring` and `partial-completion` styles. (completion--flex-adjust-metadata): Treat the arg as immutable.
* Add gradle-kotlin to compilation-error-regexp-alist-alistFilipp Gunbin2019-10-293-2/+27
| | | | | | * lisp/progmodes/compile.el: Add gradle-kotlin to compilation-error-regexp-alist-alist. * etc/compilation.txt: Add samples for it.
* Optimize conditional recursive merge face.Jimmy Aguilar Mena2019-10-291-2/+7
| | | | | | | * src/xfaces.c (merge_face_vectors) : Pass ATTR_FILTER to merge_face_ref to stop recursion merging in advance when possible. (merge_named_face) : add more conditions to potentially reduce calls to merge_face_vectors in more unneeded situations.
* Fix extend face in gui interfaces.Jimmy Aguilar Mena2019-10-291-16/+14
| | | | | | * src/xdisp.c (extend_face_to_end_of_line) : Change call to PRODUCE_GLYPHS with append_stretch_glyph to fill until the windows border.
* Fix inherited :extend attribute in faces.Jimmy Aguilar Mena2019-10-291-25/+46
| | | | | | | | * src/xfaces.c (merge_face_vectors) : Add extra parameter ATTR_FILTER with the same functionality than in merge_named_face. Update all occurrences. (merge_named_face): Remove condition to avoid call `merge_face_vectors`.
* Make shr scale images on all framesLars Ingebrigtsen2019-10-291-1/+1
| | | | | * lisp/net/shr.el (shr-rescale-image): Rescale images even if the window isn't on the current frame.
* Make icomplete-exhibit actually work when navigating up directoriesJoão Távora2019-10-291-0/+2
| | | | | | | | | Sometimes, when finding files with icomplete-mode, backward-deleting the previous word or sexp (to move up a directory) doesn't actually refresh the file list of the new directory. Forcing redisplay in icomplete-exhibit misteriously fixes the problem. * lisp/icomplete.el (icomplete-exhibit): Add call to redisplay.
* New commands for making icomplete behave more like idoJoão Távora2019-10-291-0/+85
| | | | | | | | | | | | | | | | This tries (not particularly hard) to emulate Ido's magic C-k, C-d, RET and DEL. For now, the new commands have to be explicitly added to an active map by the user, using something like this: (let ((imap icomplete-minibuffer-map)) (define-key imap (kbd "C-k") 'icomplete-magic-ido-kill) (define-key imap (kbd "C-d") 'icomplete-magic-ido-delete-char) (define-key imap (kbd "RET") 'icomplete-magic-ido-ret) (define-key imap (kbd "DEL") 'icomplete-magic-ido-backward-updir)) * lisp/icomplete.el (icomplete-magic-ido-kill) (icomplete-magic-ido-delete-char, icomplete-magic-ido-ret) (icomplete-magic-ido-backward-updir): New commands.
* * lisp/tab-bar.el: Check for minibuffer-depth in tab-bar-history-mode.Juri Linkov2019-10-281-10/+16
| | | | | | * lisp/tab-bar.el (tab-bar-history--pre-change): Store also minibuffer-depth. (tab-bar-history-change): Check stored minibuffer-depth for zero. (tab-bar-history-mode): Use prefix -- for internal functions.
* Use new-style rx extensions in python.elMattias Engdegård2019-10-281-68/+59
| | | | | | | * lisp/progmodes/python.el (python-rx): Use `rx-let' instead of `rx-constituents'. This allows for some slight redundancy reduction, since `rx-let' definitions are expanded inside `not' (bug#37849). Reorder some `or' forms for more efficient matching.
* ; Fix recent change in docsEli Zaretskii2019-10-281-4/+4
| | | | | * doc/lispref/minibuf.texi (Minibuffer Commands): Fix wording and markup. (Bug#37948)
* Add doc for goto-history-elementHong Xu2019-10-282-1/+9
| | | | | | * doc/lispref/minibuf.texi (Minibuffer Commands): Add goto-history-element (bug#37948). * lisp/simple.el (goto-history-element): Clarify NABS.
* * lisp/eshell/em-term.el: Remove commented out XEmacs compat code.Stefan Kangas2019-10-281-14/+8
|
* Remove more XEmacs compat code from CEDETStefan Kangas2019-10-284-31/+10
| | | | | | | | * lisp/cedet/mode-local.el (mode-local-describe-bindings-1): * lisp/cedet/semantic/idle.el (semantic-idle-summary-out-of-context-faces): * lisp/cedet/semantic/imenu.el (semantic-imenu-rebuild-directory-indexes): * lisp/cedet/semantic/texi.el (semantic-texi-command-completion-list): Remove XEmacs compat code.
* Remove obsolete doc references to XEmacs (Bug#37899)Stefan Kangas2019-10-2813-58/+14
| | | | | | | | | | | | | | | | | * doc/misc/edt.texi (Changes, Goals): * doc/misc/emacs-mime.texi (Charset Translation): * doc/misc/gnus-faq.texi (FAQ 4-15): * doc/misc/pcl-cvs.texi (Bugs): * doc/misc/srecode.texi (SRecode Minor Mode): * lisp/cedet/srecode/insert.el (srecode-insert-ask-variable-method): * lisp/follow.el: * lisp/leim/quail/ipa.el (ipa-x-sampa, ipa-kirshenbaum): * lisp/net/newsticker.el: * lisp/obsolete/iswitchb.el: * lisp/progmodes/hideshow.el: * lisp/savehist.el (savehist-file): * lisp/vc/ediff.el: Remove obsolete references to XEmacs in doc strings and comments.
* Add cert bundle path for OpenIndianaMichal Nowak2019-10-281-0/+1
| | | | | | | * lisp/net/gnutls.el (gnutls-trustfiles): Add cert bundle path for OpenIndiana (bug#37960). Copyright-paperwork-exempt: yes
* Make ERC respect erc-channel-hide-listLars Ingebrigtsen2019-10-281-4/+4
| | | | | | * lisp/erc/erc.el (erc-hide-current-message-p): Make erc-channel-hide-list work (bug#37879) by getting matching on the channel name instead of the ERC client name.
* Fix `G c' in Gnus group buffers for non-ASCII textLars Ingebrigtsen2019-10-281-9/+0
| | | | | | * lisp/gnus/gnus-cus.el (gnus-group-customize): Decoding is superfluous here -- everything is utf-8 already. (gnus-group-customize-done): Don't double-encode the text (bug#37901).
* Be more permissive when interpreting IMAP mail headersLars Ingebrigtsen2019-10-281-2/+2
| | | | | | * lisp/gnus/nnimap.el (nnimap-transform-headers): Some mail doesn't have space after the colon of the header name. Don't ignore these.
* Make <up> work in read-char-with-historyLars Ingebrigtsen2019-10-281-6/+10
| | | | | * lisp/simple.el (read-char-with-history): Tweak to make <up>/<down> also traverse the history (bug#10477).
* Reorder command-line switches in TrampKoichi Arakawa2019-10-281-2/+2
| | | | | | | | * lisp/net/tramp-sh.el (tramp-maybe-open-connection): `tramp-encoding-command-interactive' must be the last command-line switch, at least for bash. (Bug#37953) Copyright-paperwork-exempt: yes
* * lisp/tab-bar.el: Add tab-bar-history-mode with arrow buttons for navigation.Juri Linkov2019-10-281-2/+110
| | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-back-button, tab-bar-forward-button): New variables. (tab-bar-make-keymap-1): Show these buttons in tab-bar-history-mode. (tab-bar--tab): Add history-back and history-forward. (tab-bar-select-tab): Restore history-back and history-forward. (tab-bar-history-omit, tab-bar-history-back) (tab-bar-history-forward, tab-bar-history-pre-change): New variables. (tab-bar-history-pre-change, tab-bar-history-change) (tab-bar-history-back, tab-bar-history-forward) (tab-bar-history-mode): New functions.
* * test/lisp/cedet/semantic-utest: silence compiler warningsEric Ludlam2019-10-272-28/+4
| | | | | | | | | | * test/lisp/cedet/semantic-utest-c.el (semantic-test-c-preprocessor-simulation): Use with-current-buffer. * test/lisp/cedet/semantic-utest.el (semantic-utest-makebuffer): Use read-only-mode. (semantic-utest-verify-names-jave, semantic-utest-verify-names-2): Remove functions, unused.
* * .gitignore: Don't ignore .rej filesStefan Monnier2019-10-271-1/+0
| | | | | | Left over rejected hunks that we forgot to merge by hand should not be silently ignored. Better explicitly remove/rename .rej files when done with them.
* * lisp/emacs-lisp/seq.el: Don't require cl-lib.Stefan Monnier2019-10-272-22/+23
| | | | | (seq-subseq): Move cl-subseq's code here instyead of calling it. * lisp/emacs-lisp/cl-extra.el (cl-subseq): Use seq-subseq.
* * lisp/loadup.el: Load minibuffer after cl-genericStefan Monnier2019-10-273-10/+8
| | | | | | | | This is so minibuffer.el can make use of cl-generic * lisp/minibuffer.el (minibuffer-local-completion-map): Move switch-to-completions bindings here from... * lisp/simple.el (minibuffer-local-completion-map): ... here.
* time-stamp-time-zone: update customizationStephen Gildea2019-10-272-2/+37
| | | | | | | | | | | * time-stamp.el (time-stamp-time-zone): Support customization with an integer offset (a new possible value of the ZONE argument to format-time-string in Emacs 27). Update the safe-local-variable predicate from string-or-null-p (describing time-stamp-time-zone's domain before 2015) to new predicate time-stamp-zone-type-p (describing the current domain). * time-stamp-tests.el (time-stamp-test-helper-zone-type-p): New test.
* Fix point position after revert-buffer in tabulated-list modeEli Zaretskii2019-10-271-1/+6
| | | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Don't use count-screen-lines, as it is unreliable when lines are truncated and the region ends before a newline (the root cause is in vertical-motion, but is very hard to fix there). Instead, use vertical-motion directly, as the problems with counting/not counting the newline that ends the region are not relevant to what we need in this function, which is simply the number of the current window line. (Bug#37941)
* Optimize lisp/icomplete.el when default completion availableJoão Távora2019-10-271-4/+2
| | | | | | | | | | | | | | | | | | | | Often, when using icomplete with icomplete-show-matches-on-no-input and commands like C-h f, icomplete-exhibit will take a long time (like several seconds) to show all the completions. However, if there is a non-nil default value, like when the C-h f is performed exactly on a function name, the minibuffer prompt will reflect that immediately. If the user immediately presses RE (icomplete-force-complete-and-exit) we take that to mean "use the default" and avoid the long wait. As an extra performance tweak, this commit also removes an unneeded call to icomplete-exhibit in icomplete-minibuffer-setup. * lisp/icomplete.el (icomplete-force-complete-and-exit): Short-circuit possibility of non-nil minibuffer-default. (icomplete-minibuffer-setup): No need to explicitly icomplete-exhibit here since icomplete-post-command-hook will call it unconditionally.
* Expand rx definitions inside (not ...)Mattias Engdegård2019-10-273-3/+21
| | | | | | | | | * lisp/emacs-lisp/rx.el (rx--translate-not): * test/lisp/emacs-lisp/rx-tests.el (rx-not, rx-def-in-not): * doc/lispref/searching.texi (Rx Constructs, Extending Rx): Allow user-defined rx constructs to be expanded inside (not ...) forms, for better composability (bug#37849).
* Some Tramp trace improvementsMichael Albinus2019-10-272-3/+3
| | | | | | | * lisp/net/tramp.el (tramp-call-process): `result' can also be nil. * test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Improve trace format.
* Improve scoring algorithm for flex-style completionsJoão Távora2019-10-271-22/+38
| | | | | | | | | | | | | | | | | | | | The previous algorithm had two problems: it considered non-matches in the beginning and end of the string as matching "holes" and failed to penalize larger holes, making flex-score-match-tightness only effective in some corner cases. The new formula, which is described in code and in pseudo-code in the comments, fixes these problems. As a result, by default, C-h f flex now correctly bubbles up "company-search-flex-regexp" to the top, in front of "file-exists-p". With a flex-score-match-tightness smaller than 1.0, the situation is reversed. * lisp/minibuffer.el (flex-score-match-tightness): Adjust default value. Improve docstring example. (completion-pcm--hilit-commonality): Improve example. Remove unused variable. Improve algorithm.
* minibuffer.el: Remove leftover code, unused after recent changeJuanma Barranquero2019-10-271-1/+0
| | | | | * lisp/minibuffer.el (completion-pcm--hilit-commonality): Don't set point-idx.
* dired-dwim-target uses most recently visited window instead of next window.Juri Linkov2019-10-275-30/+32
| | | | | | | | | | | | | * doc/emacs/dired.texi (Operating on Files): Document behavior change. * lisp/dired-aux.el (dired-dwim-target-directories): New function. (dired-dwim-target-directory, dired-dwim-target-defaults): Use it to get the most recently used window instead of the next window (bug#35385). * lisp/dired.el (dired-dwim-target): Doc fix. * test/lisp/dired-tests.el: Remove unnecessary require and pacify byte-compiler.
* Customizable tab-line-tabs-function and new buffer-local tab-line-mode.Juri Linkov2019-10-273-18/+77
| | | | | | | | | | | | | | | | | | | | | | * lisp/tab-line.el (tab-line-tabs-function): Turn defvar into defcustom with default of tab-line-tabs-window-buffers. (tab-line-tabs-mode-buffers): New function. (tab-line-tabs-window-buffers): Rename from tab-line-tabs. (tab-line-select-tab, tab-line-switch-to-prev-tab) (tab-line-switch-to-next-tab): Handle the value tab-line-tabs-window-buffers of tab-line-tabs-function specially. (tab-line-mode): Rename from global-tab-line-mode and change scope to buffer-local. (global-tab-line-mode): New globalized-minor-mode. (tab-line-mode--turn-on): New function. (tab-line-exclude-modes): New defcustom. (tab-line-exclude): New buffer-local variable. https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00988.html * lisp/dired.el (dired-mark-pop-up): Set tab-line-exclude to nil. Don't set tab-line-format. (Bug#37699) * lisp/speedbar.el (speedbar-mode): Set tab-line-exclude to nil. Don't set tab-line-format.
* * lisp/tab-bar.el (tab-bar-switch-to-recent-tab): New command.Juri Linkov2019-10-272-4/+30
| | | | | | | | | (tab-recent): Alias to tab-bar-switch-to-recent-tab. (tab-bar--tab-index-recent): New internal function. (tab-bar-close-tab-select): Add new default option 'recent'. (tab-bar-close-tab): Handle it. * lisp/emacs-lisp/seq.el (seq-sort-by, seq-remove): Add autoload.
* * lisp/tab-bar.el (tab-bar-move-tab-to): Add force-mode-line-update.Juri Linkov2019-10-271-18/+20
| | | | (tab-bar-close-last-tab-choice, tab-bar-close-tab): Adjust option names.
* Add customization option for what do when the last tab is closedRobert Cochran2019-10-271-30/+54
| | | | | | | * lisp/tab-bar.el (tab-bar-close-last-tab-choice): New custom variable. (tab-bar-close-tab): Handle closing the last tab specially, referring to tab-bar-close-last-tab-choice.
* time-stamp-tests: add name prefix to tests of formattingStephen Gildea2019-10-261-17/+17
| | | | | | * time-stamp-tests.el: rename all the time-stamp-string formatting tests to have the word "format" in their name, to make room in the namespace for other, future tests.
* Restore default value of face completions-common-partJoão Távora2019-10-261-5/+6
| | | | | | | | | The previous commit titled "Rework face hints for partial-string completion styles" contained a potentially controversial backwards-incompatible change to this face's default value. * lisp/minibuffer.el (completions-common-part): Restore empty default value.
* Improve support for biblatex and cleveref macrosArash Esbati2019-10-262-5/+12
| | | | | | | | | * lisp/textmodes/reftex-cite.el (reftex-figure-out-cite-format): Extend regexp to match additional cite commands from biblatex.sty. * lisp/textmodes/reftex-dcr.el (reftex-view-crossref): Extend regexp to match additional cite commands from biblatex.sty and reference commands from cleveref.sty.
* Avoid infloop's by doing a case-sensitive matchArash Esbati2019-10-261-1/+2
| | | | | | * lisp/textmodes/reftex-ref.el (reftex-format-special): Be case-sensitive when checking the actual reference macro against \ref. This avoids infloop when \Ref is chosen.
* ; * etc/NEWS: Fix entry about map.el's 'type' argument. (Bug#37936)Eli Zaretskii2019-10-261-1/+1
|
* Merge from origin/emacs-26Glenn Morris2019-10-261-2/+3
|\ | | | | | | 55dcd32 (origin/emacs-26) Fix rcirc not to interpret nil as nickname ...
| * Fix rcirc not to interpret nil as nickname (bug#37344)Leo Liu2019-10-071-2/+3
| | | | | | | | | | * lisp/net/rcirc.el (rcirc-send-privmsg): Type check `target'. (rcirc-cmd-me): Send CTCP only when `target' exists.
* | ; Merge from origin/emacs-26Glenn Morris2019-10-260-0/+0
|\ \ | |/ | | | | | | | | The following commit was skipped: bd0f173 Fix trig simplification crash (bug#33052)
| * Fix trig simplification crash (bug#33052)Mattias Engdegård2019-09-232-6/+42
| | | | | | | | | | | | | | | | * lisp/calc/calc-alg.el (calcFunc-sec, calcFunc-csc, calcFunc-cot): Check that `math-known-sin' and `math-known-tan' succeeded before using their value in arithmetic. * test/lisp/calc/calc-tests.el (calc-test-trig): Add regression tests. Backport from master.
* | Merge from origin/emacs-26Glenn Morris2019-10-260-0/+0
|\ \ | |/ | | | | | | | | | | 73e1727 Fix linear equation system solving in Calc (bug#35374) # Conflicts: # test/lisp/calc/calc-tests.el
| * Fix linear equation system solving in Calc (bug#35374)Mattias Engdegård2019-09-232-0/+109
| | | | | | | | | | | | | | | | * lisp/calc/calcalg2.el (math-try-solve-for): To solve Ax^n=0 where A is a nonzero constant and x the variable to solve for, solve x^n=0 instead of solving A=0 (which obviously fails) or something equally stupid. * test/lisp/calc/calc-tests.el (calc-test-solve-linear-system): New.