aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Improve docstrings auto-generated by `define-minor-mode'Juanma Barranquero2019-10-041-5/+11
| | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (easy-mmode--mode-docstring): When using `easy-mmode--arg-docstring' to auto-generate a docstring, refill it up to `emacs-lisp-docstring-fill-column'.
* | More doc fixes in package.el (Bug#37544)Stefan Kangas2019-10-043-24/+56
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-hide-low-priority) (package-pinned-packages, package-load-descriptor) package-archive-version, package-archive-contents) package--read-archive-file, package-read-archive-contents) (package-unsigned-archives, package-read-all-archive-contents) (package--download-and-read-archives, package-install): * lisp/subr.el (package--description-file): * test/lisp/emacs-lisp/package-tests.el: Doc fixes.
* | Speed up project-files for Git projectsDmitry Gutov2019-10-041-1/+62
| | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/project.el (project-files): New method. Implementation for VC projects that uses 'git ls-files' or 'hg status --all' for listing. With gratitude to Tassilo Horn who has done most of the legwork and wrote the first version of the code (https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00069.html). (project--vc-list-files): New function, to be used by the above. (project--find-regexp-in-files): Silence warnings about nonexistent files.
* | Further improve button.el support for help-echoBasil L. Contovounesios2019-10-033-15/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The last change to forward-button added support for help-echo values that are functions. This patch fixes the arguments passed to such functions and further adds support for help-echo values that are forms (bug#37515). * doc/lispref/display.texi (Button Properties): Fix description of help-echo button property. * lisp/button.el (button--help-echo): New function. (forward-button): Use it. (backward-button): Clarify help-echo reference in docstring. * test/lisp/button-tests.el (button--help-echo-string) (button--help-echo-form, button--help-echo-function): New tests.
* | Use lexical-binding in button.elBasil L. Contovounesios2019-10-031-33/+29
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/button.el: Use lexical-binding. Expand Keywords header. Quote function symbols as such. Use ;;;-comments where appropriate. (button): Remove outdated commentary of defface. (define-button-type, make-button, insert-button, make-text-button) (insert-text-button): Clarify in docstring that PROPERTIES argument is a plist. (button-type-subtype-p, button-has-type-p): Do not overspecify return value in docstring. (button-put): Fix typo in commentary.
* | Preserve point better in hs-hide-comment-regionJohn Yates2019-10-031-3/+5
| | | | | | | | | | | | | | * lisp/progmodes/hideshow.el (hs-hide-comment-region): Preserve point better when collapsing the region (bug#10856). Copyright-paperwork-exempt: yes
* | Make lisp-do-defun do the right thing with trailing commentsLars Ingebrigtsen2019-10-031-2/+5
| | | | | | | | | | * lisp/progmodes/inf-lisp.el (lisp-do-defun): Avoid including trailing comments in the region (bug#7974).
* | Fix bytecomp.el warning a different way than the previous patchLars Ingebrigtsen2019-10-031-2/+1
| | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-mode-map): No need to use set-keymap-parent here; `define-derived-mode' will do that automatically.
* | Fix comment in previous doc-view patchLars Ingebrigtsen2019-10-031-1/+1
| | | | | | | | * lisp/doc-view.el (doc-view-open-text): Comment fix.
* | In doc-view, keep point on the equivalent page in the text versionLars Ingebrigtsen2019-10-031-1/+6
| | | | | | | | | | * lisp/doc-view.el (doc-view-open-text): After opening the text version, put point on the page the user was reading (bug#16541).
* | * lisp/pcomplete.el: Mark 'pcomplete' command as obsoleteStefan Monnier2019-10-033-63/+56
| | | | | | | | | | Remove redundant ':group's. (pcomplete, pcomplete-help): Mark as obsolete.
* | Mention the vc diff switches in diff-switchesLars Ingebrigtsen2019-10-031-1/+6
| | | | | | | | | | * lisp/vc/diff.el (diff-switches): Mention the vc diff switches in the doc string (bug#4422).
* | C++ Mode: Correct the fontification of const auto fooAlan Mackenzie2019-10-031-6/+6
| | | | | | | | | | * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Correct a coding error involving `and' and `or'.
* | Touch up previous shr-dom-to-xml encoding changeLars Ingebrigtsen2019-10-031-2/+7
| | | | | | | | | | | | * lisp/net/shr.el (shr-dom-to-xml): Include an XML declaration if we're encoding the data. (shr-parse-image-data): Add comment about why encoding is necessary.
* | Fix up previous SVG-multibyte fixLars Ingebrigtsen2019-10-031-8/+8
| | | | | | | | | | | | | | | | * lisp/net/shr.el (shr-dom-to-xml): For SVG images, take an optional charset parameter to return unibyte data. (shr-parse-image-data): Use it. (shr-tag-svg): Ditto. (svg--wrap-svg): Revert previous kludge.
* | C++ Mode: Fontify correctly declarators with identifier preceded by &Alan Mackenzie2019-10-032-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was bar in the following being spuriously recognised as a function, and foo as a type, as though the & were a *: Foo foo (&bar);. * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): New variable got-function-name-prefix, which is set when an operator like * (but not &) precedes the putative identifer in parentheses. Test this variable when deciding whether or not to "move the type backwards" to the previous identifier. * lisp/progmodes/cc-langs.el (c-type-decl-operator-prefix-key): New lang const and var.
* | Fix typo in last commitMichael Albinus2019-10-031-1/+1
| |
* | Further adaptions for shadowfile-tests.elMichael Albinus2019-10-031-10/+15
| | | | | | | | | | | | | | * test/lisp/shadowfile-tests.el: Change some traces. (shadow-test-remote-temporary-file-directory): Adapt also remote home directory. (shadow--tests-cleanup): Cleanup Tramp.
* | Don't use obsolete name in em-cmpl.elStefan Kangas2019-10-031-1/+1
| | | | | | | | | | | | * lisp/eshell/em-cmpl.el (eshell-complete-lisp-symbol): Update reference to 'elisp-completion-at-point' from its obsolete name. Reported by Carlos Pita <carlosjosepita@gmail.com>. (Bug#31906)
* | * lisp/tab-bar.el (tab-bar-show): New defcustom.Juri Linkov2019-10-024-15/+72
| | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-close-current-tab, tab-bar-close-tab): (tab-bar-new-tab): Use tab-bar-show. * doc/emacs/frames.texi (Tab Bars): Add tab-bar-show. * lisp/speedbar.el (speedbar-mode): Set buffer-local tab-bar-mode and tab-line-format to nil to not show in dedicated speedbar frame.
* | * src/w32inevt.c: Take into account FRAME_TAB_BAR_LINES.Juri Linkov2019-10-021-2/+4
| | | | | | | | | | * src/w32inevt.c (resize_event, maybe_generate_resize_event): Subtract FRAME_TAB_BAR_LINES from FRAME_MENU_BAR_LINES.
* | Fix MS-Windows error when a directory on PATH doesn't existEli Zaretskii2019-10-021-0/+4
| | | | | | | | | | * src/w32.c (faccessat): Support more MS-Windows native error codes that should be translated to ENOENT. (Bug#37576)
* | Don't mention server-socket-dir in FAQStefan Kangas2019-10-021-13/+2
| | | | | | | | | | | | | | | | server-socket-dir is a defvar, and users should use the defcustom server-name instead. * doc/misc/efaq.texi (Using an already running Emacs process): Remove details on server-socket-dir, refer to Emacs Manual. (Bug#20675)
* | Fix a typo in url-http.elEli Zaretskii2019-10-021-2/+2
| | | | | | | | | | * lisp/url/url-http.el (url-http-parse-headers): Fix a typo. Reported by Mattias Engdegård <mattiase@acm.org>.
* | Don't add trailing whitespace when passing argument to GDBSergio Durigan Junior2019-10-021-1/+1
| | | | | | | | | | * lisp/progmodes/gdb-mi.el (gdb-send): Don't append whitespace to 'gdb-continuation'. (Bug#25488)
* | Update a substitute-command-keys testGlenn Morris2019-10-011-0/+1
| | | | | | | | | | * test/src/doc-tests.el (doc-test-substitute-command-keys): Update for recent minibuffer map change.
* | Gnus registry shutdown should also run the unload-hookEric Abrahamsen2019-10-011-2/+3
| | | | | | | | | | | | | | | | * lisp/gnus/gnus-registry.el (gnus-registry-clear): Clearing the registry should also run the unload hooks. (gnus-registry-article-marks-to-names, gnus-registry-article-marks-to-chars): Now we can use a more general test here.
* | Merge branch 'feature/tabs'Juri Linkov2019-10-0153-187/+3871
|\ \
| * | Remove unused code and reformat to 70 columns.feature/tabsJuri Linkov2019-10-0120-248/+134
| | |
| * | Update documentation for tabs.Juri Linkov2019-09-2811-15/+94
| | | | | | | | | | | | * doc/emacs/frames.texi (Tab Bars): New node.
| * | * lisp/tab-line.el: Add new defcustom tab-line-close-tab-action.Juri Linkov2019-09-281-8/+32
| | |
| * | Improve customization.Juri Linkov2019-09-252-72/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-new-tab-choice) (tab-bar-close-button-show): New defcustoms. (tab-bar-tab-name-function): New defvar. * lisp/tab-line.el (tab-line-new-tab-choice) (tab-line-close-button-show): New defcustoms.
| * | Small fixes. Bind [tab-line mouse-1] to mouse-select-window.Juri Linkov2019-09-253-2/+8
| | |
| * | Revert an attempt to implement a non‐native tab bar on NS.Juri Linkov2019-09-255-559/+14
| | |
| * | Improve customizability and better tab separators.Juri Linkov2019-09-224-51/+67
| | | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-tabs-function): New defvar. * lisp/tab-line.el (tab-line-tab-name-function) (tab-line-tabs-function): New defvars.
| * | Take into account FRAME_TAB_BAR height in more places.Juri Linkov2019-09-225-24/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/dispnew.c (handle_window_change_signal, init_display_interactive): * src/frame.c (make_terminal_frame, Fmake_terminal_frame): * src/keyboard.c (Fsuspend_emacs): * src/term.c (Fresume_tty): * src/xterm.c (x_check_fullscreen): Subtract FRAME_TAB_BAR_LINES. * src/xterm.c (x_new_font): Set FRAME_TAB_BAR_HEIGHT. (x_new_font, x_check_fullscreen, x_set_window_size_1) (x_set_window_size, x_wm_set_size_hint): Add FRAME_TABBAR_HEIGHT.
| * | Try to fix macOS and Windows issues.Juri Linkov2019-09-164-44/+15
| | |
| * | Use images for new/close buttons in tab-bar and tab-line.Juri Linkov2019-09-156-141/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/images/tabs/new.xpm: * etc/images/tabs/close.xpm: New files. * lisp/tab-bar.el (tab-bar-separator): New face. (tab-bar-separator, tab-bar-button-new, tab-bar-button-close): Use display property with images in default values. * lisp/tab-line.el (tab-line-button-new, tab-line-button-close): Use display property with images in default values. * src/xdisp.c (tab_bar_item_info): Add new arg close_p and set it to the value of property `close' at charpos. (get_tab_bar_item): Add new arg close_p. (handle_tab_bar_click): Add ctrl_modifier when close_p is non-nil. (Fdump_tab_bar_row): Fix crash for non-X builds.
| * | Fix assertion violations due to non-ASCII text in tabsJuri Linkov2019-09-151-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (tab_bar_height, redisplay_tab_bar) (display_tab_bar): If the Lisp string to be displayed in the tab-bar window is multibyte, tell the display engine to treat it as multibyte, instead of relying on the initial determination by init_iterator (which is based on the multibyteness of the current buffer). (Bug#37385)
| * | Small fixes for tty and w32.Juri Linkov2019-09-084-8/+10
| | | | | | | | | | | | | | | | | | | | | * lisp/menu-bar.el (showhide-tab-bar): Visible on tty too. * lisp/tab-bar.el (tab-bar-mode): Add binding [(control shift tab)] for w32. * lisp/tab-line.el (tab-line-add-tab): Use tmm-prompt for buffer-menu on tty. * src/w32term.c (w32_read_socket): Fix tool-bar clicks.
| * | * lisp/tab-bar.el (tab-bar-make-keymap-1): Don't use fixed "Current tab".Juri Linkov2019-09-072-8/+21
| | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-make-keymap-1): * lisp/tab-line.el (tab-line-tab-name-add): Add space after Unicode char to avoid char clobbering on terminals.
| * | Don't use hook pre-redisplay-functions. Set buffer-local tab-line-format.Juri Linkov2019-09-055-23/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tab-line.el (tab-line-format): Move to C. (tab-line-update-window-parameter): Remove function. (global-tab-line-mode): Set the default value of tab-line-format. * src/buffer.c (syms_of_buffer): Define buffer-local variable tab-line-format. * src/buffer.h (struct buffer): Add tab_line_format_. * src/window.c (window_wants_tab_line): * src/xdisp.c (pos_visible_p, display_mode_lines): Check for buffer-local tab_line_format.
| * | Text-based nox builds compiled without X window supportJuri Linkov2019-09-044-113/+133
| | |
| * | Small fix for text-mode displayJuri Linkov2019-09-041-4/+2
| | |
| * | * lisp/tab-line.el (tab-line-tab-name): Try to use truncate-string-to-width.Juri Linkov2019-09-031-2/+2
| | |
| * | Try to fix compilation errors on macOSJuri Linkov2019-09-033-16/+16
| | |
| * | Text-mode display of the tab-bar and emulation of clicking on a tty.Juri Linkov2019-09-034-6/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-mouse): New command bound to mouse-1 on [tab-bar]. * lisp/xt-mouse.el (xterm-mouse-event): Use `tab-bar' when clicking on the tab-bar that is on the second row below menu-bar. * src/frame.c (set_tab_bar_lines): New function. (frame_windows_min_size): Add FRAME_TAB_BAR_LINES. (make_initial_frame): Call set_tab_bar_lines. (store_frame_param): Call set_tab_bar_lines for Qtab_bar_lines prop. (Fframe_parameters): Call store_in_alist for Qtab_bar_lines. * src/xdisp.c (display_tab_bar): New function. (redisplay_window): Call display_tab_bar when `FRAME_WINDOW_P (f)' is NULL on a tty.
| * | * lisp/tab-line.el: Limit the number of window tabs to tab-line-tabs-limit.Juri Linkov2019-09-031-10/+29
| | |
| * | * lisp/tab-line.el: Display truncated tab name in the tooltip.Juri Linkov2019-09-021-2/+3
| | |
| * | Try to add more tab-bar support on macosJuri Linkov2019-09-024-13/+601
| | |