]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoRemove unused code and reformat to 70 columns.
Juri Linkov [Tue, 1 Oct 2019 20:01:08 +0000 (23:01 +0300)]
Remove unused code and reformat to 70 columns.

5 years agoUpdate documentation for tabs.
Juri Linkov [Sat, 28 Sep 2019 19:55:05 +0000 (22:55 +0300)]
Update documentation for tabs.

* doc/emacs/frames.texi (Tab Bars): New node.

5 years ago* lisp/tab-line.el: Add new defcustom tab-line-close-tab-action.
Juri Linkov [Sat, 28 Sep 2019 19:48:48 +0000 (22:48 +0300)]
* lisp/tab-line.el: Add new defcustom tab-line-close-tab-action.

5 years agoImprove customization.
Juri Linkov [Wed, 25 Sep 2019 20:21:37 +0000 (23:21 +0300)]
Improve customization.

* 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.

5 years agoSmall fixes. Bind [tab-line mouse-1] to mouse-select-window.
Juri Linkov [Tue, 24 Sep 2019 21:54:36 +0000 (00:54 +0300)]
Small fixes.  Bind [tab-line mouse-1] to mouse-select-window.

5 years agoRevert an attempt to implement a non‐native tab bar on NS.
Juri Linkov [Tue, 24 Sep 2019 21:50:58 +0000 (00:50 +0300)]
Revert an attempt to implement a non‐native tab bar on NS.

5 years agoImprove customizability and better tab separators.
Juri Linkov [Sun, 22 Sep 2019 20:40:04 +0000 (23:40 +0300)]
Improve customizability and better tab separators.

* 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.

5 years agoTake into account FRAME_TAB_BAR height in more places.
Juri Linkov [Sat, 21 Sep 2019 22:15:57 +0000 (01:15 +0300)]
Take into account FRAME_TAB_BAR height in more places.

* 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.

5 years agoTry to fix macOS and Windows issues.
Juri Linkov [Mon, 16 Sep 2019 20:46:42 +0000 (23:46 +0300)]
Try to fix macOS and Windows issues.

5 years agoUse images for new/close buttons in tab-bar and tab-line.
Juri Linkov [Sun, 15 Sep 2019 20:52:22 +0000 (23:52 +0300)]
Use images for new/close buttons in tab-bar and tab-line.

* 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.

5 years agoFix assertion violations due to non-ASCII text in tabs
Juri Linkov [Sun, 15 Sep 2019 20:40:47 +0000 (23:40 +0300)]
Fix assertion violations due to non-ASCII text in tabs

* 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)

5 years agoSmall fixes for tty and w32.
Juri Linkov [Sun, 8 Sep 2019 20:18:45 +0000 (23:18 +0300)]
Small fixes for tty and w32.

* 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.

5 years ago* lisp/tab-bar.el (tab-bar-make-keymap-1): Don't use fixed "Current tab".
Juri Linkov [Sat, 7 Sep 2019 20:04:24 +0000 (23:04 +0300)]
* lisp/tab-bar.el (tab-bar-make-keymap-1): Don't use fixed "Current tab".

* 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.

5 years agoDon't use hook pre-redisplay-functions. Set buffer-local tab-line-format.
Juri Linkov [Thu, 5 Sep 2019 19:27:42 +0000 (22:27 +0300)]
Don't use hook pre-redisplay-functions.  Set buffer-local tab-line-format.

* 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.

5 years agoText-based nox builds compiled without X window support
Juri Linkov [Wed, 4 Sep 2019 19:05:05 +0000 (22:05 +0300)]
Text-based nox builds compiled without X window support

5 years agoSmall fix for text-mode display
Juri Linkov [Tue, 3 Sep 2019 21:56:09 +0000 (00:56 +0300)]
Small fix for text-mode display

5 years ago* lisp/tab-line.el (tab-line-tab-name): Try to use truncate-string-to-width.
Juri Linkov [Tue, 3 Sep 2019 20:47:46 +0000 (23:47 +0300)]
* lisp/tab-line.el (tab-line-tab-name): Try to use truncate-string-to-width.

5 years agoTry to fix compilation errors on macOS
Juri Linkov [Tue, 3 Sep 2019 20:19:37 +0000 (23:19 +0300)]
Try to fix compilation errors on macOS

5 years agoText-mode display of the tab-bar and emulation of clicking on a tty.
Juri Linkov [Tue, 3 Sep 2019 19:55:13 +0000 (22:55 +0300)]
Text-mode display of the tab-bar and emulation of clicking on a tty.

* 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.

5 years ago* lisp/tab-line.el: Limit the number of window tabs to tab-line-tabs-limit.
Juri Linkov [Mon, 2 Sep 2019 22:29:07 +0000 (01:29 +0300)]
* lisp/tab-line.el: Limit the number of window tabs to tab-line-tabs-limit.

5 years ago* lisp/tab-line.el: Display truncated tab name in the tooltip.
Juri Linkov [Mon, 2 Sep 2019 20:27:32 +0000 (23:27 +0300)]
* lisp/tab-line.el: Display truncated tab name in the tooltip.

5 years agoTry to add more tab-bar support on macos
Juri Linkov [Sun, 1 Sep 2019 21:32:10 +0000 (00:32 +0300)]
Try to add more tab-bar support on macos

5 years agoTry to add more tab-bar support on Windows
Juri Linkov [Sun, 1 Sep 2019 21:30:18 +0000 (00:30 +0300)]
Try to add more tab-bar support on Windows

5 years ago* src/nsterm.m: Fix arguments to window_from_coordinates function call
Juri Linkov [Sun, 1 Sep 2019 20:11:36 +0000 (23:11 +0300)]
* src/nsterm.m: Fix arguments to window_from_coordinates function call

Thanks to Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org>

5 years agoFixes to build on Windows
Martin Rudalics [Sun, 1 Sep 2019 19:47:23 +0000 (22:47 +0300)]
Fixes to build on Windows

* src/w32fns.c (w32_set_tab_bar_lines, w32_change_tab_bar_height):
New functions.

* src/w32term.c (w32_create_terminal): Set change_tab_bar_height_hook
to w32_change_tab_bar_height.

5 years agoAdd more aliases switch-to-tab, previous-tab, next-tab
Juri Linkov [Sun, 1 Sep 2019 19:30:45 +0000 (22:30 +0300)]
Add more aliases switch-to-tab, previous-tab, next-tab

5 years agoNon-graphical access to frame-local tabs (named window configurations)
Juri Linkov [Sun, 1 Sep 2019 19:16:18 +0000 (22:16 +0300)]
Non-graphical access to frame-local tabs (named window configurations)

* lisp/tab-bar.el (make-tab, delete-tab, tab-bar-list)
(tab-bar-list-next-line, tab-bar-list-prev-line)
(tab-bar-list-unmark, tab-bar-list-backup-unmark)
(tab-bar-list-delete, tab-bar-list-delete-backwards)
(tab-bar-list-execute, tab-bar-list-select)
(tab-bar-list-mouse-select): New commands.
(tab-bar-list-noselect, tab-bar-list-current-tab)
(tab-bar-list-delete-from-list): New functions.
(tab-bar-list-column): New defvar.

5 years agoFrame-local tab-bar and window-local tab-line.
Juri Linkov [Sat, 31 Aug 2019 20:40:07 +0000 (23:40 +0300)]
Frame-local tab-bar and window-local tab-line.

* etc/NEWS: Add 'tab-bar-mode' and 'global-tab-line-mode'.

* etc/TODO: Remove tab-related items.

* lisp/cus-start.el: Add tab-bar-mode, tab-bar-max-label-size.

* lisp/frame.el (frame-notice-user-settings): handle tab-bar-lines.

* lisp/loadup.el: Load "tab-bar".

* lisp/menu-bar.el (menu-bar-options-save): Add tab-bar-mode.
(menu-bar-showhide-menu): Define showhide-tab-bar.

* lisp/startup.el (tab-bar-images-pixel-height): New defconst.
(command-line): Reset tab-bar-mode.
(x-apply-session-resources): Add "tabBar", "TabBar".

* lisp/subr.el (read-key): Add tab-bar.

* lisp/tab-bar.el: New file.
* lisp/tab-line.el: New file.

* lisp/window.el (window--dump-frame): Add tab-bar-height.

* src/dispextern.h (enum window_part): Add ON_TAB_LINE.
(struct glyph_matrix): Add tab_line_p.
(struct glyph_row): Add tab_line_p.
(MATRIX_TAB_LINE_ROW): New macro.
(MATRIX_FIRST_TEXT_ROW): Handle more mode lines.
(MR_PARTIALLY_VISIBLE_AT_TOP): Add WINDOW_TAB_LINE_HEIGHT.
(MATRIX_TAB_LINE_HEIGHT, CURRENT_TAB_LINE_HEIGHT)
(DESIRED_TAB_LINE_HEIGHT): New macros.
(enum face_id): Add TAB_BAR_FACE_ID and TAB_LINE_FACE_ID.
(struct it): Add tab_line_p.
(tab_bar_item_idx, tab_bar_item_image): New enums.
(DEFAULT_TAB_BAR_LABEL_SIZE, DEFAULT_TAB_BAR_BUTTON_MARGIN)
(DEFAULT_TAB_BAR_BUTTON_RELIEF, DEFAULT_TAB_BAR_IMAGE_HEIGHT):
New constants.

* src/dispnew.c (adjust_glyph_matrix): Use window_wants_tab_line.
(shift_glyph_matrix): Add WINDOW_TAB_LINE_HEIGHT.
(clear_current_matrices, clear_desired_matrices):
Call clear_glyph_matrix on tab_bar_window.
(blank_row): Add WINDOW_TAB_LINE_HEIGHT.
(required_matrix_height): Change 2 to 3.
(fake_current_matrices): Reset tab_line_p.
(adjust_frame_glyphs_for_window_redisplay): Handle tab_bar_window.
Add FRAME_TAB_BAR_HEIGHT and FRAME_TAB_BAR_LINES.
(free_glyphs): Handle tab_bar_window.
(update_frame): Handle tab_bar_window.
(update_window): Handle row->tab_line_p.
(scrolling_window): Change arg type from bool to int.
Change header_line_p to tab_line_p.
(buffer_posn_from_coords): Add window_wants_tab_line.
(mode_line_string): Use MATRIX_TAB_LINE_ROW for part ON_TAB_LINE.

* src/frame.c (frame_default_tab_bar_height): New internal variable.
(adjust_frame_size): Handle tab_bar_window.
(make_frame): Reset tab_bar_redisplayed, tab_bar_resized and
last_tab_bar_item.
(Ftab_bar_pixel_width): New function.
(frame_parms): Add tab-bar-lines.
(gui_figure_window_size): Add new arg tabbar_p.
(syms_of_frame): Add Qtab_bar_size, Qupdate_frame_tab_bar,
Qfree_frame_tab_bar, Qtab_bar_lines, Stab_bar_pixel_width.
Add Qtab_bar_lines to frame_inhibit_implied_resize.
(tab-bar-mode): New variable.

* src/frame.h (GCALIGNED_STRUCT): Add tab_bar_window,
desired_tab_bar_string, current_tab_bar_string.
(GCALIGNED_STRUCT): Add tab_bar_items, last_tab_bar_item,
minimize_tab_bar_window_p, tab_bar_redisplayed, tab_bar_resized,
tab_bar_lines, tab_bar_height, n_tab_bar_rows, n_tab_bar_items.
(fset_tab_bar_items, fset_tab_bar_window)
(fset_current_tab_bar_string, fset_desired_tab_bar_string):
New inlines.
(FRAME_TAB_BAR_LINES, FRAME_TAB_BAR_HEIGHT): New macros.
(FRAME_TOP_MARGIN, FRAME_TOP_MARGIN_HEIGHT):
Use FRAME_TAB_BAR_LINES.

* src/fringe.c (draw_fringe_bitmap_1, update_window_fringes):
Add WINDOW_TAB_LINE_HEIGHT.

* src/gtkutil.c (xg_frame_set_char_size): Add FRAME_TABBAR_WIDTH.
(x_wm_set_size_hint): Add FRAME_TABBAR_WIDTH.

* src/keyboard.c (read_char): Handle Qtab_bar.
(kbd_buffer_get_event): Handle TAB_BAR_EVENT.
(make_lispy_position): Add WINDOW_TAB_LINE_HEIGHT.
Handle TAB_BAR_EVENT.
(tab_bar_items_vector, tab_bar_item_properties, ntab_bar_items):
New internal variables.
(tab_bar_items, process_tab_bar_item, set_prop_tab_bar)
(parse_tab_bar_item, init_tab_bar_items, append_tab_bar_item):
New functions.
(read_char_x_menu_prompt, read_key_sequence): Handle Qtab_bar.
(tab-bar-separator-image-expression): New variable.

* src/keymap.c (syms_of_keymap): Add Qtab_bar and Qtab_line.

* src/menu.c (x_popup_menu_1, Fx_popup_dialog): Handle Qtab_bar.

* src/termhooks.h (enum event_kind): Add TAB_BAR_EVENT.
(GCALIGNED_STRUCT): Add change_tab_bar_height_hook.

* src/w32fns.c (w32_frame_parm_handlers): Add w32_set_tab_bar_lines.

* src/w32term.c (w32_draw_window_cursor): Add WINDOW_TAB_LINE_HEIGHT.

* src/window.c (window_body_height): Add WINDOW_TAB_LINE_HEIGHT.
(Fwindow_tab_line_height): New function.
(coordinates_in_window): Use window_wants_tab_line with
CURRENT_TAB_LINE_HEIGHT.
(window_relative_x_coord): Add ON_TAB_LINE.
(Fcoordinates_in_window_p): Add ON_TAB_LINE.
(window_from_coordinates): Add new arg tab_bar_p.
(Fwindow_line_height): Use window_wants_tab_line with
WINDOW_TAB_LINE_HEIGHT.
(Fwindow_lines_pixel_dimensions): Add WINDOW_TAB_LINE_HEIGHT.
(make_window): Set tab_line_height to -1.
(window_wants_tab_line): New function.
(window_internal_height): Use window_wants_tab_line.
(window_scroll_pixel_based): Add WINDOW_TAB_LINE_HEIGHT.
(Frecenter): Set minimize_tab_bar_window_p to 1.
(GCALIGNED_STRUCT): Add frame_tab_bar_lines and frame_tab_bar_height.
(Fcurrent_window_configuration): Set frame_tab_bar_lines and
frame_tab_bar_height.
(set_window_scroll_bars): Add WINDOW_TAB_LINE_HEIGHT.
(syms_of_window): Add Qtab_line_format and Swindow_tab_line_height.

* src/window.h (GCALIGNED_STRUCT): Add tab_line_height.
(WINDOW_TAB_BAR_P, WINDOW_TAB_LINE_HEIGHT, WINDOW_TAB_LINE_LINES):
New macros.
(WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y, WINDOW_TAB_LINE_HEIGHT):
Add WINDOW_TAB_BAR_P.

* src/xdisp.c (window_box_height): Add window_wants_tab_line with
MATRIX_TAB_LINE_ROW and CURRENT_TAB_LINE_HEIGHT.
(pos_visible_p): Use window_wants_tab_line.
Add WINDOW_TAB_LINE_HEIGHT.
(get_glyph_string_clip_rects): Add WINDOW_TAB_LINE_HEIGHT.
(get_phys_cursor_geometry): Add WINDOW_TAB_LINE_HEIGHT.
(remember_mouse_glyph): Use MATRIX_TAB_LINE_ROW for part
ON_TAB_LINE.
(init_iterator): Use MATRIX_TAB_LINE_ROW for TAB_LINE_FACE_ID.
Add WINDOW_TAB_LINE_HEIGHT.  Add window_wants_tab_line.
(Fwindow_text_pixel_size): Add WINDOW_TAB_LINE_HEIGHT.
(prepare_menu_bars): Call update_tab_bar.
(update_tab_bar, build_desired_tab_bar_string)
(display_tab_bar_line, tab_bar_height, Ftab_bar_height)
(redisplay_tab_bar, tab_bar_item_info, get_tab_bar_item)
(handle_tab_bar_click, note_tab_bar_highlight): New functions.
(compute_window_start_on_continuation_line): Use window_wants_tab_line.
(try_cursor_movement): Use window_wants_tab_line with
CURRENT_TAB_LINE_HEIGHT.
(redisplay_window): Use window_wants_tab_line with
CURRENT_TAB_LINE_HEIGHT.
(try_window_reusing_current_matrix): Use window_wants_tab_line
with WINDOW_TAB_LINE_HEIGHT.
(Fdump_tab_bar_row): New function.
(compute_line_metrics): Add WINDOW_TAB_LINE_HEIGHT.
(display_line): Use window_wants_tab_line.
(display_mode_line): Set tab_line_p to true if face_id is
TAB_LINE_FACE_ID.
(Fformat_mode_line): Handle Qtab_line and Qtab_bar.
(gui_clear_end_of_line): Add WINDOW_TAB_LINE_HEIGHT.
(erase_phys_cursor): Use WINDOW_TAB_LINE_HEIGHT.
(show_mouse_face): Use tab_bar_window.
(note_mode_line_or_margin_highlight): Use MATRIX_TAB_LINE_ROW for
area ON_TAB_LINE.
(note_mouse_highlight): Call note_tab_bar_highlight,
(expose_frame): Handle tab_bar_window.
(syms_of_xdisp): Add Sdump_tab_bar_row and Stab_bar_height.
(auto-resize-tab-bars, auto-raise-tab-bar-buttons)
(tab-bar-border, tab-bar-button-margin, tab-bar-button-relief)
(tab-bar-max-label-size): New variables.

* src/xfaces.c (lookup_basic_face): Add TAB_LINE_FACE_ID and
TAB_BAR_FACE_ID.
(syms_of_xfaces): Define Qtab_bar and Qtab_line.

* src/xfns.c (x_set_tab_bar_lines, x_change_tab_bar_height):
New functions.
(xic_set_statusarea): Add FRAME_TABBAR_TOP_HEIGHT.
(frame_geometry): Add FRAME_TAB_BAR_HEIGHT and Qtab_bar_size.

* src/xterm.c (x_draw_image_relief): Use tab_bar_button_relief.
(x_draw_image_relief): Use TAB_BAR_FACE_ID.
(handle_one_xevent): Handle tab_bar_window.
(x_set_window_size_1): Add FRAME_TABBAR_WIDTH.
(x_create_terminal): Set change_tab_bar_height_hook.

* src/xterm.h (struct x_output): Add tabbar_top_height,
tabbar_bottom_height, tabbar_left_width, tabbar_right_width
tabbar_widget, tabbar_in_hbox, tabbar_is_packed.
(FRAME_TABBAR_TOP_HEIGHT): Add FRAME_TABBAR_TOP_HEIGHT,
FRAME_TABBAR_BOTTOM_HEIGHT, FRAME_TABBAR_HEIGHT,
FRAME_TABBAR_LEFT_WIDTH, FRAME_TABBAR_RIGHT_WIDTH,
FRAME_TABBAR_WIDTH.

5 years agoCheck instead of relying on NOTREACHED
Paul Eggert [Sat, 31 Aug 2019 17:35:08 +0000 (10:35 -0700)]
Check instead of relying on NOTREACHED

NOTREACHED was designed for traditional lint decades ago,
and _Noreturn now normally subsumes its function.
In the one case in Emacs where NORETURN might help and _Noreturn does
not, check for NOTREACHED instead of assuming it.
* lib-src/etags.c (main):
* src/xterm.c (x_connection_closed):
Remove NOTREACHED after a call to a _Noreturn function, as NOTREACHED
is no longer needed there.  Also, one of the NOTREACHEDs was
misplaced, which defeated traditional lint checking anyway.
* lib-src/pop.c (pop_getline): Redo so as to not need NOTREACHED.
* src/emacs.c (main): Use eassume (false) rather than NOTREACHED,
so that running with ENABLE_CHECKING catches any internal error
causing the toplevel Frecursive_edit to return.

5 years ago* test/lisp/net/tramp-tests.el (tramp-test21-file-links): More cleanup.
Glenn Morris [Sat, 31 Aug 2019 17:30:14 +0000 (10:30 -0700)]
* test/lisp/net/tramp-tests.el (tramp-test21-file-links): More cleanup.

5 years agoFix compilation with CHECK_STRUCTS
Andreas Schwab [Sat, 31 Aug 2019 10:39:16 +0000 (12:39 +0200)]
Fix compilation with CHECK_STRUCTS

* src/pdumper.c (dump_hash_table): Update hash of Lisp_Hash_Table.

5 years ago; * src/floatfns.c: Don't use non-ASCII characters in comments.
Eli Zaretskii [Sat, 31 Aug 2019 06:58:45 +0000 (09:58 +0300)]
; * src/floatfns.c: Don't use non-ASCII characters in comments.

5 years agoAvoid signaling errors from ls-lisp--insert-directory on macOS
Eli Zaretskii [Sat, 31 Aug 2019 06:54:05 +0000 (09:54 +0300)]
Avoid signaling errors from ls-lisp--insert-directory on macOS

* lisp/ls-lisp.el (ls-lisp-sanitize): Don't assume the
directory entries for ".." and "." will either both be present
or both absent.  (Bug#37236)

5 years ago* src/floatfns.c: Check against __FINITE_MATH_ONLY__ (bug#37140)
Mattias Engdegård [Thu, 29 Aug 2019 10:29:47 +0000 (12:29 +0200)]
* src/floatfns.c: Check against __FINITE_MATH_ONLY__ (bug#37140)

5 years agoExtend tramp--test-check-files (Bug#37228)
Michael Albinus [Fri, 30 Aug 2019 11:54:42 +0000 (13:54 +0200)]
Extend tramp--test-check-files  (Bug#37228)

* test/lisp/net/tramp-tests.el (tramp--test-check-files): Test also
`directory-files-and-attributes'.  (Bug#37228)

5 years agoFix Tramp's directory-files-and-attributes-with-stat (Bug#37228)
Koichi Arakawa [Fri, 30 Aug 2019 11:53:56 +0000 (13:53 +0200)]
Fix Tramp's directory-files-and-attributes-with-stat  (Bug#37228)

* lisp/net/tramp-sh.el
(tramp-do-directory-files-and-attributes-with-stat): Handle file
names with spaces.  (Bug#37228)

Copyright-paperwork-exempt: yes

5 years agoemacsclient: adjust to new config file location
Paul Eggert [Fri, 30 Aug 2019 07:24:07 +0000 (00:24 -0700)]
emacsclient: adjust to new config file location

* lib-src/emacsclient.c (open_config): New arg XDG, to respect
XDG_CONFIG_HOME, consistently with Emacs proper.  Caller changed.
Use XDG convention if available, falling back on the old names
if not.

5 years agoPrefer ~/.config/emacs to ~/.emacs.d if neither exists
Paul Eggert [Fri, 30 Aug 2019 05:29:52 +0000 (22:29 -0700)]
Prefer ~/.config/emacs to ~/.emacs.d if neither exists

That way, when Emacs starts in a fresh home directory,
it prefers the new (XDG) convention rather than the old one.
* lisp/files.el (locate-user-emacs-file): Make the parent
directories of user-emacs-directory if needed.  This is useful
if user-emacs-directory is "~/.config/emacs" and "~/.config"
does not yet exist.
* lisp/startup.el (command-line):
* lisp/subr.el (user-emacs-directory):
Prefer XDG_CONFIG_HOME to ~/.emacs.d if neither exists.

5 years agoMinor copyedits in ido.texi
Nick Drozd [Thu, 29 Aug 2019 23:36:50 +0000 (18:36 -0500)]
Minor copyedits in ido.texi

* doc/misc/ido.texi (Overview)
(Interactive Substring Matching, Prefix Matching)
(Regexp Matching, Hidden Buffers and Files)
(Changing List Order, Find File At Point, Misc)
(All Matching, Replacement): Fix wording, markup and punctuation.
(Bug#37225)

5 years agoMerge from origin/emacs-26
Glenn Morris [Thu, 29 Aug 2019 18:12:12 +0000 (11:12 -0700)]
Merge from origin/emacs-26

1af1240 (origin/emacs-26, emacs-26) ; Remove empty NEWS sections
96dd019 (tag: emacs-26.3-rc1, tag: emacs-26.3) * etc/HISTORY: Add Ema...

# Conflicts:
# etc/NEWS

5 years ago; Merge from origin/emacs-26
Glenn Morris [Thu, 29 Aug 2019 18:11:24 +0000 (11:11 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

4e59ad5 Bump Emacs version to 26.3

5 years agoMerge from origin/emacs-26
Glenn Morris [Thu, 29 Aug 2019 18:11:23 +0000 (11:11 -0700)]
Merge from origin/emacs-26

70829f8 ; ChangeLog.3 update

# Conflicts:
# ChangeLog.3

5 years ago; Merge from origin/emacs-26
Glenn Morris [Thu, 29 Aug 2019 18:11:22 +0000 (11:11 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

a6d0172 * etc/AUTHORS: Update.

5 years agoMerge from origin/emacs-26
Glenn Morris [Thu, 29 Aug 2019 18:11:21 +0000 (11:11 -0700)]
Merge from origin/emacs-26

290fe4d * ; ChangeLog.3 update
e8f176b * etc/NEWS: Delete temporary markup.

# Conflicts:
# ChangeLog.3
# etc/NEWS

5 years ago; Fix earlier NEWS merge
Glenn Morris [Thu, 29 Aug 2019 18:04:18 +0000 (11:04 -0700)]
; Fix earlier NEWS merge

5 years ago; Remove empty NEWS sections
Glenn Morris [Thu, 29 Aug 2019 17:59:53 +0000 (10:59 -0700)]
; Remove empty NEWS sections

5 years agoAdd new "make help" target
Stefan Kangas [Tue, 20 Aug 2019 23:02:43 +0000 (01:02 +0200)]
Add new "make help" target

* GNUmakefile: Add new "help" target that shows a brief summary of
common make targets.  (Bug#12411)
* INSTALL
* etc/NEWS: Announce it.

5 years agoTweak shr background colour handling
Lars Ingebrigtsen [Thu, 29 Aug 2019 07:18:40 +0000 (09:18 +0200)]
Tweak shr background colour handling

* lisp/net/shr.el (shr-fill-line): Extend the background to the
end of the line when folding lines.

5 years agoClarify meaning of <filename> in test/README
Michael Albinus [Wed, 28 Aug 2019 18:39:33 +0000 (20:39 +0200)]
Clarify meaning of <filename> in test/README

5 years agoDon't worry about pre-1.0.0 alsa-lib include
Paul Eggert [Wed, 28 Aug 2019 18:34:48 +0000 (11:34 -0700)]
Don't worry about pre-1.0.0 alsa-lib include

Problem reported by Ergus in:
https://lists.gnu.org/r/emacs-devel/2019-08/msg00563.html
* configure.ac (ALSA_SUBDIR_INCLUDE): Do not define.
* src/sound.c: Assume ALSA_SUBDIR_INCLUDE.

5 years ago; Improve and clarify wording of recent commit in NEWS.
Eli Zaretskii [Wed, 28 Aug 2019 11:00:01 +0000 (14:00 +0300)]
; Improve and clarify wording of recent commit in NEWS.

5 years agoUse XDG conventions more consistently
Paul Eggert [Tue, 27 Aug 2019 21:21:45 +0000 (14:21 -0700)]
Use XDG conventions more consistently

Fit in better with the XDG conventions.
Something like this was suggested in 2008 (Bug#583)
and the XDG conventions seem to have settled down by now.
* doc/emacs/custom.texi (Init File, Init Syntax, Find Init):
* doc/lispref/files.texi (Standard File Names):
* doc/lispref/os.texi (Init File):
* doc/misc/url.texi (Customization):
* etc/NEWS:
Adjust accordingly.
* lisp/startup.el (startup--load-user-init-file):
If init-file-name is nil, do not load from it; instead
just use the alt-file.
(find-init-path): Remove; no longer used.
(command-line): Don't check twice for XDG.
Look at XDG_CONFIG_HOME instead of assuming it's ~/.config.
Prefer XDG configuration if it exists; the user can disable
this by setting XDG_CONFIG_HOME to some other place.
* lisp/subr.el (user-emacs-directory):
Prefer XDG configuration if it exists.

5 years agoPort recent gnutls fixes to gcc -Wpointer-sign
Paul Eggert [Tue, 27 Aug 2019 21:19:38 +0000 (14:19 -0700)]
Port recent gnutls fixes to gcc -Wpointer-sign

* src/gnutls.c (Fgnutls_format_certificate):
Fix pointer signedness problem.

5 years agoBrowser-like Info-history button menu (bug#37184)
Juri Linkov [Tue, 27 Aug 2019 20:48:57 +0000 (23:48 +0300)]
Browser-like Info-history button menu (bug#37184)

* doc/misc/info.texi (Help-Int): Using tool-bar to navigate history.

* lisp/info.el (Info-history-menu): New function.
(Info-history-back-menu, Info-history-forward-menu): New commands.
(Info-mode-map): Bind Info-history-back-menu and
Info-history-forward-menu to tool-bar on C-key.

5 years agoDeactivate part of tramp--test-check-files on macOS (Bug#36940)
Michael Albinus [Tue, 27 Aug 2019 16:53:26 +0000 (18:53 +0200)]
Deactivate part of tramp--test-check-files on macOS (Bug#36940)

* test/lisp/net/tramp-tests.el (tramp--test-check-files): Do not
search for environment variables on macOS.  (Bug#36940)

5 years ago; Fix commentary of last change.
Eli Zaretskii [Tue, 27 Aug 2019 16:13:39 +0000 (19:13 +0300)]
; Fix commentary of last change.

5 years agoFix crashes on MS-Windows when using GnuTLS connections
Eli Zaretskii [Tue, 27 Aug 2019 15:47:24 +0000 (18:47 +0300)]
Fix crashes on MS-Windows when using GnuTLS connections

* src/gnutls.c (init_gnutls_functions) [WINDOWSNT]: Define and
load gnutls_free by an explicit call to GetProcAddress.
(gnutls_free) [WINDOWSNT]: Define as a macro that dereferences
a function pointer.  (Bug#31946)
(Fgnutls_format_certificate): Use make_string_from_bytes
instead of going through an intermediate malloc'ed buffer.

5 years agoFix filename completion in shell mode buffers
Alex Branham [Thu, 15 Aug 2019 16:02:38 +0000 (11:02 -0500)]
Fix filename completion in shell mode buffers

* lisp/shell.el (shell-dynamic-complete-functions): Move
pcomplete-completions-at-point down the list so that filename
completion has a chance to complete before pcompletion.

Fixes bug#34330

5 years ago* test/Makefile.in (test_template): Declare target FOO.log.
Michael Albinus [Tue, 27 Aug 2019 10:58:38 +0000 (12:58 +0200)]
* test/Makefile.in (test_template): Declare target FOO.log.

5 years agoFix completion in `read-library-name'
Lars Ingebrigtsen [Tue, 27 Aug 2019 07:46:28 +0000 (09:46 +0200)]
Fix completion in `read-library-name'

* lisp/emacs-lisp/find-func.el (read-library-name): Only list
.el/.el.gz files when completing (bug#36945).

5 years agoMake link widgets obey mouse-1-click-follows-link
Mauro Aranda [Tue, 27 Aug 2019 06:41:44 +0000 (08:41 +0200)]
Make link widgets obey mouse-1-click-follows-link

* lisp/wid-edit.el (widget-link-keymap): New variable, a keymap to use
inside a link widget.
('link widget): Restore the :follow-link property and add
widget-link-keymap as the :keymap property (bug#15682).

5 years agoAdapt recentf.el to the change in the Widget Library
Mauro Aranda [Tue, 27 Aug 2019 06:40:32 +0000 (08:40 +0200)]
Adapt recentf.el to the change in the Widget Library

* lisp/recentf.el (recentf-open-files-item): Stop overriding
:follow-link property of the link widgets, since now it should
work as expected (bug#15682).

5 years agoCreate push-button widgets instead of links in epa *Keys* buffer
Mauro Aranda [Tue, 27 Aug 2019 06:39:04 +0000 (08:39 +0200)]
Create push-button widgets instead of links in epa *Keys* buffer

* lisp/epa.el (epa--select-keys): Make OK and Cancel into buttons
(bug#15682).

5 years agoFix Tramp rounding of file sizes and inode numbers
Paul Eggert [Tue, 27 Aug 2019 01:57:56 +0000 (18:57 -0700)]
Fix Tramp rounding of file sizes and inode numbers

* lisp/net/tramp-sh.el (tramp-perl-file-attributes)
(tramp-perl-directory-files-and-attributes)
(tramp-do-file-attributes-with-stat)
(tramp-do-directory-files-and-attributes-with-stat):
Format file sizes and inode numbers without trailing ".0",
to avoid rounding errors when absolute values exceed 2**53
(Bug#36940#94).  This fixes the problem for Emacs 27 and later,
and doesn't hurt in earlier Emacs.

5 years agoPrefer display-line-numbers over linum in docs and one defcustom
Stefan Kangas [Fri, 31 May 2019 23:40:11 +0000 (01:40 +0200)]
Prefer display-line-numbers over linum in docs and one defcustom

* doc/misc/efaq.texi: Replace linum with display-line-numbers.
* lisp/progmodes/prog-mode.el (prog-mode-hook): Replace linum-mode
with display-line-numbers-mode in :options.  (Bug#37120)

5 years ago* src/keyboard.c (parse_tool_bar_item): Use CAPTION when HELP is unavailable
Juri Linkov [Mon, 26 Aug 2019 22:38:19 +0000 (01:38 +0300)]
* src/keyboard.c (parse_tool_bar_item): Use CAPTION when HELP is unavailable

while adding equivalent key binding to the tooltip. (Bug#36156)

5 years agoFix crashes in networking with GnuTLS on MS-Windows
Eli Zaretskii [Mon, 26 Aug 2019 16:06:13 +0000 (19:06 +0300)]
Fix crashes in networking with GnuTLS on MS-Windows

* src/gnutls.c (init_gnutls_functions) [WINDOWSNT]: Define and
load gnutls_free.
(Fgnutls_format_certificate): Use gnutls_free instead of
xfree.  This prevents crashes on MS-Windows, since the memory
being released was allocated inside GnuTLS.  (Bug#31946)

5 years ago; Continued attempt to fix Bug#36940
Michael Albinus [Mon, 26 Aug 2019 14:14:16 +0000 (16:14 +0200)]
; Continued attempt to fix Bug#36940

* test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p):
Handle link number.
(tramp--test-check-files): Encode search string on macOS.  (Bug#36940)

5 years agoAllow finding gpg2 binaries when gpg2 has an "unknown" version string
Lars Ingebrigtsen [Mon, 26 Aug 2019 06:02:31 +0000 (08:02 +0200)]
Allow finding gpg2 binaries when gpg2 has an "unknown" version string

* lisp/epg-config.el (epg-find-configuration): Allow finding a
usable configuration even if the version string looks like "gpg
(GnuPG) 2.2.15-unknown" (bug#35629).

5 years agoOnly use --sender for gpg when gpg supports it
Teemu Likonen [Mon, 26 Aug 2019 05:52:54 +0000 (07:52 +0200)]
Only use --sender for gpg when gpg supports it

* lisp/epg-config.el (epg-required-version-p): New function (bug#37025).

* lisp/gnus/mml-sec.el (mml-secure-epg-sign):
* lisp/epg.el (epg-start-sign):
(epg-start-encrypt): Use it to only use --sender when the gpg
binary supports it.

5 years agoFix ede-proj-project class
Lars Ingebrigtsen [Mon, 26 Aug 2019 04:13:20 +0000 (06:13 +0200)]
Fix ede-proj-project class

* lisp/cedet/ede/proj.el (ede-proj-project): Make class inherit
from eieio-named to get object-name slot (bug#37181).

5 years agoFix bug with non-paletted transparent PNGs
Paul Eggert [Sun, 25 Aug 2019 23:35:43 +0000 (16:35 -0700)]
Fix bug with non-paletted transparent PNGs

Adapted from a fix by YAMAMOTO Mitsuharu (Bug#37153#77).
* src/image.c (png_load_body): Fix bug with non-paletted
transparent images.

5 years agoFix misdisplay of PNG paletted images
Paul Eggert [Sun, 25 Aug 2019 17:01:46 +0000 (10:01 -0700)]
Fix misdisplay of PNG paletted images

Problem reported by Roland Winkler (Bug#37153).
Derived from a patch suggested by YAMAMOTO Mitsuharu (Bug#37153#62).
* src/image.c (png_get_valid) [WINDOWSNT]:
Do not dynamically link this function.
(png_get_tRNS) [WINDOWSNT && PNG_tRNS_SUPPORTED]:
Dynamically link this function instead.
(png_load_body): Do not assume that every paletted image supplies
only transparency data.  Fix typo in use of transparent_p.

5 years agoFix a further part of Bug#36940
Michael Albinus [Sun, 25 Aug 2019 11:44:11 +0000 (13:44 +0200)]
Fix a further part of Bug#36940

* lisp/net/tramp-sh.el (tramp-perl-file-attributes)
(tramp-perl-directory-files-and-attributes)
(tramp-do-file-attributes-with-stat)
(tramp-do-directory-files-and-attributes-with-stat): Return size
and inode as floating number.  (Bug#36940).

5 years agoIntroduce new value t for compilation-context-lines to eliminate scrolling
Alan Mackenzie [Sun, 25 Aug 2019 10:21:37 +0000 (10:21 +0000)]
Introduce new value t for compilation-context-lines to eliminate scrolling

In particular, to prevent scrolling in a window lacking a left fringe.
Instead, a visible arrow "=>" is inserted before column zero.  This fixes
bug #36832.

* lisp/progmodes/compile.el (compilation-context-lines): Add the new value t.
(compilation-set-window): Amend to handle compilation-context-lines being t.
(overlay-arrow-overlay): New variable holding an overlay with before-string
property "=>".
(compilation-set-overlay-arrow): New function which manipulates
overlay-arrow-overlay.
(compilation-goto-locus, compilation-find-file): In addition to calling
compilation-set-window, also call compilation-set-overlay-arrow.

* doc/emacs/building.texi (Compilation Mode): Document the new value t which
compilation-context-lines can take.

* etc/NEWS: Add an entry for this change.

5 years agoFix minor problems in TUTORIAL.ru
Alex Ott [Sun, 25 Aug 2019 09:33:48 +0000 (11:33 +0200)]
Fix minor problems in TUTORIAL.ru

This fixes wording and avoids visiting the tutorial in
Ruby mode.

5 years agoFix a recent change in coding.c
Eli Zaretskii [Sun, 25 Aug 2019 08:08:11 +0000 (11:08 +0300)]
Fix a recent change in coding.c

This partially reverts the changes in "extern function cleanup".
* src/coding.c (encode_string_utf_8, decode_string_utf_8): Now
extern again.  They should NOT be static, as they are intended
to be used by the likes of json.c, where we need
highly-optimized code for processing UTF-8 strings.  E.g.,
decode_string_utf_8 beats make_string_from_utf8 by a factor of
2 to 5 in a large number of scenarios.

5 years ago; Improve a recent change.
Eli Zaretskii [Sun, 25 Aug 2019 07:10:01 +0000 (10:10 +0300)]
; Improve a recent change.

* src/frame.c (Fx_parse_geometry): Improve the comment about
non-initialization of some locals.

5 years agoUse ' instead of ` in NEWS
Lars Ingebrigtsen [Sun, 25 Aug 2019 06:12:17 +0000 (08:12 +0200)]
Use ' instead of ` in NEWS

5 years agoUse `autoconf-mode' for Autoconf .m4 files
Lars Ingebrigtsen [Sun, 25 Aug 2019 06:11:58 +0000 (08:11 +0200)]
Use `autoconf-mode' for Autoconf .m4 files

* lisp/files.el (auto-mode-alist): Use `autoconf-mode' (instead of
`m4-mode') for acinclude.m4/aclocal.m4/acsite.m4 files (bug#37133).

5 years agoThe `gnus*-1' functions shouldn't be interactive
Alex Branham [Sun, 25 Aug 2019 06:05:48 +0000 (08:05 +0200)]
The `gnus*-1' functions shouldn't be interactive

* lisp/gnus/gnus-start.el (gnus-no-server-1): This function
shouldn't be interactive (bug#37022).
(gnus-1): Ditto.

5 years agoDisallow just hitting RET in gnus-mime-replace-part
Lars Ingebrigtsen [Sun, 25 Aug 2019 05:57:30 +0000 (07:57 +0200)]
Disallow just hitting RET in gnus-mime-replace-part

* lisp/gnus/gnus-art.el (gnus-mime-replace-part): Don't replace
the part if the file to replace it with doesn't exist (bug#36864).

5 years agoClarify Fx_parse_geometry initialization
Paul Eggert [Sun, 25 Aug 2019 00:46:21 +0000 (17:46 -0700)]
Clarify Fx_parse_geometry initialization

* src/frame.c (Fx_parse_geometry): Clarify why local init
isn’t needed.

5 years agoTweak time arithmetic performance
Paul Eggert [Sat, 24 Aug 2019 22:40:55 +0000 (15:40 -0700)]
Tweak time arithmetic performance

* src/timefns.c (time_arith): Prefer mpz_divexact to mpz_tdiv_q
when either will do.

5 years agoSpeed up % and mod with fixnum denom
Paul Eggert [Sat, 24 Aug 2019 22:46:31 +0000 (15:46 -0700)]
Speed up % and mod with fixnum denom

* src/data.c (integer_remainder): New function.  When the
numerator is a bignum and the denominator is small, this function
uses mpz_tdiv_ui, which should be faster than mpz_tdiv_r.
(Frem, Fmod): Use it.

5 years agoTweak integer mod performance
Paul Eggert [Sat, 24 Aug 2019 19:45:36 +0000 (12:45 -0700)]
Tweak integer mod performance

* src/data.c (integer_mod): Use mpz_tdiv_r not mpz_mod, as that’s
more similar to the fixnum case, is a bit more efficient, and
otherwise the later ‘sgn_r < 0’ code is useless anyway.

5 years agoMake (mod 1.0 0) consistent with (/ 1.0 0)
Paul Eggert [Sat, 24 Aug 2019 19:43:50 +0000 (12:43 -0700)]
Make (mod 1.0 0) consistent with (/ 1.0 0)

* src/data.c (Fmod): Do not signal an error for (mod 1.0 0), for
the same reason (/ 1.0 0) does not signal an error.
* test/src/data-tests.el (data-tests-mod-0): New test.

5 years agoextern function cleanup
Paul Eggert [Sat, 24 Aug 2019 18:42:28 +0000 (11:42 -0700)]
extern function cleanup

Most of these functions can be static.  A few are unused.
* src/coding.c (encode_string_utf_8, decode_string_utf_8):
Define only if ENABLE_UTF_8_CONVERTER_TEST, as they're
not needed otherwise.
* src/coding.c (encode_string_utf_8, decode_string_utf_8):
* src/data.c (integer_mod):
* src/fns.c (base64_encode_region_1, base64_encode_string_1):
* src/ftfont.c (ftfont_get_fc_charset):
Now static.
* src/sysdep.c (verrprintf): Remove; unused.

5 years agoFix non-deterministic process test
Noam Postavsky [Fri, 23 Aug 2019 00:48:19 +0000 (20:48 -0400)]
Fix non-deterministic process test

* test/src/process-tests.el (set-process-filter-t): Don't assume
subprocess output will come in a single chunk, keep waiting for more
data until next "prompt" is read from subprocess.

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 24 Aug 2019 13:46:00 +0000 (16:46 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoRevert "Recompute user-emacs-directory-relative defcustoms one more time"
Eli Zaretskii [Sat, 24 Aug 2019 13:45:10 +0000 (16:45 +0300)]
Revert "Recompute user-emacs-directory-relative defcustoms one more time"

This reverts commit bb5cd7c4caf415e40836edbbc4e62b0dd411d73f.
See bug#37173.

5 years agoFix DNS tests
Robert Pluim [Sat, 24 Aug 2019 12:54:02 +0000 (14:54 +0200)]
Fix DNS tests

* test/src/process-tests.el: (lookup-family-specification,
lookup-unicode-domains, unibyte-domain-name, lookup-google,
non-existent-lookup-failure): Skip on Hydra, which doesn't have DNS.
Fix buggy test condition.  (Bug#37165)

5 years agoFix some problems of Bug#36940
Michael Albinus [Sat, 24 Aug 2019 08:10:05 +0000 (10:10 +0200)]
Fix some problems of Bug#36940

* test/lisp/net/tramp-tests.el (tramp-test22-file-times): Do not
compare time value lists by `equal'.  (Bug#36940).
(tramp-test30-make-process): Adapt "kill" message to match on macOS.

5 years agoTweak gnutls-peer-status reporting
Paul Eggert [Fri, 23 Aug 2019 18:50:40 +0000 (11:50 -0700)]
Tweak gnutls-peer-status reporting

* src/gnutls.c (Fgnutls_peer_status): Report :compression and
:encrypt-then-mac only if the underlying GnuTLS library has
the corresponding features.  This give the Elisp caller a bit
more information about the peer status.
* lisp/net/nsm.el (nsm-protocol-check--compression):
Don’t worry about compression in newer GnuTLS versions
that do not support compression.

5 years agoMention new usage of `invalid-read-syntax' in the manual
Lars Ingebrigtsen [Fri, 23 Aug 2019 18:42:45 +0000 (20:42 +0200)]
Mention new usage of `invalid-read-syntax' in the manual

* doc/lispref/errors.texi (Standard Errors): Document "trailing
garbage" use of `invalid-read-syntax' (bug#24649).

5 years agoClarify compiler-pacifier in frame.c
Paul Eggert [Fri, 23 Aug 2019 18:17:38 +0000 (11:17 -0700)]
Clarify compiler-pacifier in frame.c

* src/frame.c (Fx_parse_geometry): Pacify the compiler in a
different way, so that the human reader can more easily see
that the initializations are unnecessary.

5 years agoFix compilation --without--x
Eli Zaretskii [Fri, 23 Aug 2019 16:21:33 +0000 (19:21 +0300)]
Fix compilation --without--x

* src/xdisp.c (extend_face_to_end_of_line): Fix a recent
change that moved the initialization of default_face.
Reported by Glenn Morris <rgm@gnu.org>.

5 years agoAvoid a compilation warning in w32.c
Eli Zaretskii [Fri, 23 Aug 2019 13:00:25 +0000 (16:00 +0300)]
Avoid a compilation warning in w32.c

* src/w32.c (logon_network_drive): Avoid compilation warning
about strncpy arguments.

5 years agoAvoid compilation warning in frame.c
Eli Zaretskii [Fri, 23 Aug 2019 12:52:33 +0000 (15:52 +0300)]
Avoid compilation warning in frame.c

* src/frame.c (Fx_parse_geometry): Avoid compilation warning
about x and y being used without initializing them.

5 years ago; Fix references to log-edit-generate-changelog-from-diff
Noam Postavsky [Fri, 23 Aug 2019 11:59:32 +0000 (07:59 -0400)]
; Fix references to log-edit-generate-changelog-from-diff

* doc/emacs/maintaining.texi (Log Buffer):
* etc/NEWS: Replace log-edit-generate-changelog (an old name which was
changed during editing) to log-edit-generate-changelog-from-diff.