summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2021-09-111-0/+1
|\
| * * lisp/info.el (Info-streamline-headings): Add entry.Stefan Kangas2021-09-111-0/+1
| |
* | Improve documentation of Show Paren modeEli Zaretskii2021-09-111-13/+17
|/ | | | | * doc/emacs/programs.texi (Matching): Improve wording and indexing. (Bug#29381)
* Fix restoring from pdumper file on MS-Windows 9XEli Zaretskii2021-09-111-1/+14
| | | | | | * src/pdumper.c (dump_map_file_w32): Use PAGE_WRITECOPY flag when calling CreateFileMapping for DUMP_MEMORY_ACCESS_READWRITE access, as that is required by Windows 9X. (Bug#50453)
* New minor mode 'show-paren-local-mode'Dmitry Gutov2021-09-113-6/+33
| | | | | | | | | * lisp/paren.el (show-paren--delete-overlays): New function, extracted from show-paren-mode. (show-paren-local-mode): New minor mode. (show-paren-mode): Update docstring to mention it (bug#29381). * doc/emacs/programs.texi (Matching): Update show-paren-mode section.
* Improve overlay placement performanceTassilo Horn2021-09-111-15/+30
| | | | | | | | * lisp/progmodes/bug-reference.el (bug-reference--overlays-in): New function. (bug-reference-unfontify): Use it. (bug-reference-fontify): Reuse and move existing overlays instead of deleting all and creating them anew.
* Add support for GCC compiler command-line optionsArthur Miller2021-09-103-0/+79
| | | | | | | | | * lisp/emacs-lisp/comp.el ('native-comp-compiler-options): New option. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Add support for new 'native-comp-compiler-options'. * src/comp.c (Fcomp_native_compiler_options_effective_p): New function. (add_compiler_options): New function. (Fcomp__compile_ctxt_to_file): Call 'add_compiler_options'.
* Fix test find-defs-defgeneric-elDmitry Gutov2021-09-101-0/+6
| | | | | * test/lisp/progmodes/elisp-mode-tests.el (find-defs-defgeneric-el): Fix the test. Reported by dick.r.chiang@gmail.com.
* Revert usage of format-prompt in python.elLars Ingebrigtsen2021-09-101-1/+3
| | | | | | * lisp/progmodes/python.el (python-eldoc-at-point): Revert usage of format-prompt in python.el since this is also an ELPA package (and older Emacs versions doesn't have format-prompt).
* Properly encode all strings sent to Python shellAugusto Stoffel2021-09-101-43/+21
| | | | | | | | | | * lisp/progmodes/python.el: Now depends on Emacs 28. (python-shell-package-enable, python-shell-completion-get-completions) (python-ffap-module-path, python-eldoc--get-doc-at-point): Enconde Python strings using 'python-shell--encode-string' instead of triple quotes. (python-shell-completion-string-code, python-eldoc-string-code) (python-ffap-string-code): Remove defcustoms. (bug#50503).
* Tramp: honor default file modes in make-directoryStephen Gildea2021-09-106-24/+62
| | | | | | | | | | | | | * lisp/net/tramp-sh.el: * lisp/net/tramp-adb.el: * lisp/net/tramp-sudoedit.el: * lisp/net/tramp-gvfs.el: Add support for default file modes to relevant Tramp back ends for make-directory. (Closes: Bug#50410) * test/lisp/net/tramp-tests.el (tramp-test13-make-directory-with-file-modes): New test. * etc/NEWS: Note this enhancement. Thanks to Michael Albinus for helping improve this patch.
* Doc string followup to last change.Eli Zaretskii2021-09-102-4/+7
| | | | | | | * lisp/progmodes/xref.el (xref-find-apropos): Mention 'tags-apropos-additional-actions' in the doc string. * lisp/progmodes/etags.el (tags-apropos-additional-actions): Mention 'xref-find-apropos' in the doc string.
* Document 'tags-apropos-additional-actions' with XrefEli Zaretskii2021-09-102-55/+38
| | | | | | | | | | | * doc/emacs/maintaining.texi (Looking Up Identifiers): Rearrange and reword documentation of 'xref-find-apropos' and 'xref-auto-jump-to-first-definition'. Add the description of 'tags-apropos-additional-actions'. Delete the comment with not-yet implemented features that were available with 'tags-apropos'. * etc/NEWS: Augment the wording of 'xref-find-apropos' entry.
* Further fix for the search-whitespace-regexp changeLars Ingebrigtsen2021-09-101-1/+1
| | | | | * lisp/isearch.el (search-whitespace-regexp): Fix yet another typo in this one-line change (bug#21278).
* New user options to move between isearch matchesGregory Heytings2021-09-103-1/+81
| | | | | | | | | | * lisp/isearch.el (isearch-allow-motion, isearch-motion-changes-direction): New user options. (isearch-pre-command-hook): Handle the new options. * etc/NEWS: Mention the new user options. * doc/emacs/search.texi: Document the new user options.
* Fix typo in previous search-whitespace-regexp changeLars Ingebrigtsen2021-09-101-1/+1
| | | | | * lisp/isearch.el (search-whitespace-regexp): Fix typo in last checkin for this variable.
* Fix behavior of isearch-{beginning,end}-of-bufferGregory Heytings2021-09-101-3/+5
| | | | | | * lisp/isearch.el (isearch-beginning-of-buffer) (isearch-end-of-buffer): Fix their behavior when isearch-repeat-on-direction-change is non-nil (bug#50466).
* Change the default value of search-whitespace-regexpLars Ingebrigtsen2021-09-102-2/+8
| | | | | | | * lisp/isearch.el (search-whitespace-regexp): Change the default to always exclude newlines from the set (bug#21278). It used to be mode-dependent whether newlines were included or not, and this was confusing as a user interface.
* * lisp/progmodes/ruby-mode.el (ruby-current-indentation): Tweak obsoletion.Dmitry Gutov2021-09-101-1/+1
|
* Support tags-apropos-additional-actions in etags Xref backendDmitry Gutov2021-09-102-1/+52
| | | | | | | | | * lisp/progmodes/etags.el (xref-etags-apropos-location): New class. (xref-location-marker): New method definition. (xref-make-etags-apropos-location): New function. (etags--xref-apropos-additional): New function. (xref-backend-apropos): Use it here.
* ; * lisp/progmodes/python.el (python-shell-send-string): Fix last change.Eli Zaretskii2021-09-091-1/+1
|
* Improve documentation of tab-bar functions and variablesEli Zaretskii2021-09-092-16/+29
| | | | | | | * etc/NEWS: Improve wording of tab-bar related entries. * lisp/tab-bar.el (tab-bar-show, tab-bar-select-tab-modifiers): Improve and clarify the doc strings.
* Fix a recent change wrt 'comint-max-line-length'Eli Zaretskii2021-09-092-2/+6
| | | | | | | | | * lisp/progmodes/python.el (python-shell-send-string): Only heed 'comint-max-line-length' for subprocesses with which we communicate via PTYs. (Bug#49822) * lisp/comint.el (comint-max-line-length): Doc fix. Add a value for MS-Windows.
* Change ruby-align-chained-calls indendationStefan Monnier2021-09-093-7/+51
| | | | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Align with the first sibling on the previous line instead of the last (bug#32496). That is, before it used to be one.two.three .four and now it is one.two.three .four
* Better treatment of line length limits for the Python inferiorAugusto Stoffel2021-09-092-47/+57
| | | | | | | | | | | | | | | * lisp/comint.el (comint-max-line-length): New constant reflecting a safe maximum line size that can be sent to an inferior process. * lisp/progmodes/python.el (python-shell-comint-watch-for-first-prompt-output-filter): Send setup code to the inferior process only once and at this stage. (python-shell-eval-setup-code, python-shell-eval-file-setup-code): Move, unchanged, to an earlier point to avoid byte-compiler warnings. (python-shell-send-string-no-output): Revert changes of e32c7d2a8d (python-shell-send-string): Use 'comint-max-line-length' to decide when to resort to temp files. (python-shell-send-string, python-shell-send-file): Don't send setup code each time (bug#49822).
* Clarify Gnus vs. font locking in the Gnus manualLars Ingebrigtsen2021-09-091-0/+7
| | | | | * doc/misc/gnus.texi (Formatting Variables): Explicitly mention that font locking doesn't work in Gnus buffers (bug#50474).
* Remove the "Real meaning of copyleft" node in efaqLars Ingebrigtsen2021-09-091-31/+3
| | | | | | * doc/misc/efaq.texi (Real meaning of copyleft): Remove the section (bug#50446). (Common acronyms): Add a link to the GNU site's page about licenses.
* ; Add NEWS about tab bar mouse commandsJuri Linkov2021-09-091-0/+7
|
* Merge branch 'feature/tab-bar-events'Juri Linkov2021-09-0911-161/+198
|\
| * ; Remove NEWS about tab bar mouse commands to avoid merge conflictsJuri Linkov2021-09-091-7/+0
| |
| * Improve tab-bar event handling (bug#41343)Juri Linkov2021-09-055-87/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar--key-to-number): Rename from tab--key-to-number. (tab-bar--event-to-item): New function from tab-bar-handle-mouse. (tab-bar-mouse-select-tab, tab-bar-mouse-close-tab) (tab-bar-mouse-context-menu, tab-bar-mouse-move-tab): Use tab-bar--event-to-item. * src/menu.c (x_popup_menu_1): Handle Qtab_bar in the second list element. * src/xdisp.c (tty_get_tab_bar_item): Change arg 'end' to bool 'close_p'. (tty_get_tab_bar_item): Detect if the close button was clicked. (tty_handle_tab_bar_click): Return a list with caption that has text properties.
| * Mouse wheel scrolling on the tab barJuri Linkov2021-08-183-7/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-map): Bind mouse-4/wheel-up/wheel-left to tab-previous and mouse-5/wheel-down/wheel-right to tab-next. Bind S-mouse-4/wheel-up/wheel-left to tab-bar-move-tab-backward and S-mouse-5/wheel-down/wheel-right to tab-bar-move-tab. (tab-bar-move-tab-backward): New command. (tab-bar-move-repeat-map): Use tab-bar-move-tab-backward instead of lambda. * src/xterm.c (handle_one_xevent): Remove restriction to allow clicking mouse-4 and mouse-5.
| * Bind [drag-mouse-1] to tab-bar-mouse-move-tab on tab-bar-mapJuri Linkov2021-08-183-7/+18
| | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-mouse-move-tab): New command. (tab-bar-map): Bind [drag-mouse-1] to tab-bar-mouse-move-tab. (tab-bar-select-tab): Zero or nil arg means the current tab. * src/xdisp.c (handle_tab_bar_click): Remove restriction to allow dragging the tab to another tab.
| * Redesign tab-bar event processing (bug#41342, bug#41343)Juri Linkov2021-08-1811-119/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of emitting menu-item keys like [tab-1], emit normal mouse events like [mouse-1] and [down-mouse-3] for all mouse clicks issued on the tab-bar. * lisp/mouse.el (mouse-posn-property): Handle 'tab-bar' posn-area. * lisp/tab-bar.el (tab--key-to-number): New internal function. (tab-bar-handle-mouse): Use tab key to select/close tab. (tab-bar-mouse-select-tab, tab-bar-mouse-close-tab) (tab-bar-mouse-context-menu): New commands. (tab-bar-map): Bind [down-mouse-1] to tab-bar-mouse-select-tab, [down-mouse-2] to tab-bar-mouse-close-tab, [down-mouse-3] to tab-bar-mouse-context-menu. (tab-bar-keymap-cache): Remove. (tab-bar-make-keymap): Don't use cache. (tab-bar--format-tab): Remove default bindings from menu items. (tab-bar-make-keymap-1): Prepend tab-bar-map. * src/keyboard.c (make_lispy_event): Append event->arg to position for Qtab_bar. * src/term.c (handle_one_term_event): Simplify to set event arg. * src/w32inevt.c (do_mouse_event): Set emacs_ev->arg to the value returned from tty_handle_tab_bar_click. * src/w32term.c (w32_handle_tab_bar_click): Return value from handle_tab_bar_click. (w32_read_socket): Set tab_bar_key to value returned from w32_handle_tab_bar_click, and set event arg from it. * src/xdisp.c (handle_tab_bar_click): Instead of emitting event, return a list with Qtab_bar and tab caption with text properties that contain Qmenu_item with key and binding. (tty_handle_tab_bar_click): Simplify to return a list of Qtab_bar, key and close_p, instead of emitting event. * src/xterm.c (handle_one_xevent): Set tab_bar_key to value returned from handle_tab_bar_click, and set event arg from it.
* | Document restriction of completion styles with remote file namesMichael Albinus2021-09-081-1/+4
| | | | | | | | | | * doc/misc/tramp.texi (File name completion): Mention restriction of completion styles.
* | Don't ding at the user in pop-markLars Ingebrigtsen2021-09-081-1/+0
| | | | | | | | | | | | | | | | * lisp/simple.el (pop-mark): Don't ding at the user if there's no mark to pop (bug#44375). This function is used (in some circumstances) when the user mouse-1-clicks links (in *Help* buffer, for instance), which will then ding at the user before following the link.
* | Further tweak describe-variable lookLars Ingebrigtsen2021-09-081-1/+8
| | | | | | | | | | * lisp/help-fns.el (describe-variable): Tweak how long variable values are shown.
* | Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2021-09-081-1/+2
|\ \
| * | * etc/NEWS: macOS alternative context menu mouse binding.Mattias Engdegård2021-09-081-1/+2
| | |
* | | ; * admin/README: Add descriptions of more subdirectories.Eli Zaretskii2021-09-081-6/+12
| | |
* | | ; * admin/README: Mention 'coccinelle'.Richard Stallman2021-09-081-0/+5
|/ /
* | Fix previous help-fns changeLars Ingebrigtsen2021-09-081-1/+1
| | | | | | | | | | * lisp/help-fns.el (help-fns--run-describe-functions): Fix the test for whether the function inserted anything.
* | Adjust test to describe-function changesLars Ingebrigtsen2021-09-081-1/+3
| | | | | | | | The doc now always ends with an empty line
* | Allow kmacros to end with C-g in minibufferMiha Rihtaršič2021-09-081-0/+4
| | | | | | | | | | * src/keyboard.c (cmd_error): If a command causes a minibuffer-quit condition, record its key in a keyboard macro (bug#48603).
* | Add support for keypad `=' key in xterm.elLars Ingebrigtsen2021-09-081-0/+3
| | | | | | | | | | * lisp/term/xterm.el (xterm-function-map): Add support for keypad = key (bug#16645).
* | Don't disable ipython as a native interpreterLars Ingebrigtsen2021-09-081-4/+3
| | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-completion-native-disabled-interpreters): Remove ipython from list, because it apparently works fine these days (bug#50458).
* | Fix mail-user-agent defcustom typeLars Ingebrigtsen2021-09-081-1/+1
| | | | | | | | | | * lisp/simple.el (mail-user-agent): Any symbol can be used as the value (bug#50460).
* | Move the indented *Help* block to after the doc stringLars Ingebrigtsen2021-09-082-14/+20
| | | | | | | | | | | | * lisp/help-fns.el (describe-function-1): Move indented admin block to the end (bug#50463). (describe-variable): Ditto (bug#50463).
* | Don't output "probably introduced" if we know the answer for sureLars Ingebrigtsen2021-09-081-12/+35
| | | | | | | | | | | | | | | | | | | | * lisp/help-fns.el (help-fns--customize-variable-version): Factored out from `help-fns--customize-variable' to be able to see whether it outputs anything. (help-fns--run-describe-functions): New function. (help-fns--activated-functions): New internal variable. (describe-variable): Use new function. (describe-face, describe-function-1): Ditto (bug#50463).
* | Center Emacs logo above text on the splash screenStefan Kangas2021-09-081-3/+13
| | | | | | | | | | * lisp/startup.el (fancy-splash-head): Center Emacs logo above text on the splash and about screen.