1. 08 Sep, 2019 1 commit
    • Juri Linkov's avatar
      Small fixes for tty and w32. · 89ef791c
      Juri Linkov authored
      * 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.
      89ef791c
  2. 31 Aug, 2019 1 commit
    • Juri Linkov's avatar
      Frame-local tab-bar and window-local tab-line. · 3e0ad29a
      Juri Linkov authored
      * 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.
      3e0ad29a
  3. 13 Jul, 2019 1 commit
    • Eli Zaretskii's avatar
      Fix TTY menus in GUD and GDB-MI modes · 127dadbb
      Eli Zaretskii authored
      * lisp/menu-bar.el (menu-bar-open): Accept a numerical
      argument interactively, and drop down menu at that X
      coordinate.
      (popup-menu): Detect when MENU is not a list.  (Bug#36613)
      127dadbb
  4. 25 May, 2019 1 commit
    • Paul Eggert's avatar
      Go back to "Maintainer: emacs-devel@gnu.org" · f744797a
      Paul Eggert authored
      Restore lines saying "Maintainer: emacs-devel@gnu.org" when there is
      no special maintainer for a file.  Although this wasn't documented
      it was common practice and removing the lines didn't have consensus.
      f744797a
  5. 20 May, 2019 1 commit
  6. 07 Feb, 2019 1 commit
  7. 01 Jan, 2019 1 commit
  8. 04 Dec, 2018 1 commit
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-yank-on-move): New defcustom · f745cf8c
      Juri Linkov authored
      with shift-move related options extracted from `search-exit-option'.
      (isearch-pre-command-hook): Rename search-exit-option to
      isearch-yank-on-move in shift-move related places.
      (isearch-post-command-hook): Check for isearch-pre-move-point
      instead of search-exit-option.  (Bug#15839)
      
      * doc/emacs/search.texi (Not Exiting Isearch): Rename
      search-exit-option to isearch-yank-on-move.
      
      * lisp/menu-bar.el (menu-bar-i-search-menu): Add more isearch commands.
      f745cf8c
  9. 25 Nov, 2018 1 commit
    • Michael Heerdegen's avatar
      Replace insignificant backquotes · 1808d254
      Michael Heerdegen authored
      Replace most insignificant occurrences of '`' with a straight quote,
      sharp quote or nothing.  This includes backquotes in 'pcase' patterns.
      
      * admin/admin.el:
      * lisp/apropos.el:
      * lisp/arc-mode.el:
      * lisp/auth-source.el:
      * lisp/avoid.el:
      * lisp/bindings.el:
      * lisp/bs.el:
      * lisp/calculator.el:
      * lisp/calendar/todo-mode.el:
      * lisp/cedet/semantic.el:
      * lisp/cedet/semantic/analyze/debug.el:
      * lisp/cedet/semantic/bovine.el:
      * lisp/cedet/semantic/dep.el:
      * lisp/cedet/semantic/grammar.el:
      * lisp/cedet/semantic/wisent/comp.el:
      * lisp/cedet/semantic/wisent/grammar.el:
      * lisp/cedet/srecode/mode.el:
      * lisp/cus-edit.el:
      * lisp/doc-view.el:
      * lisp/elec-pair.el:
      * lisp/electric.el:
      * lisp/emacs-lisp/autoload.el:
      * lisp/emacs-lisp/benchmark.el:
      * lisp/emacs-lisp/byte-opt.el:
      * lisp/emacs-lisp/bytecomp.el:
      * lisp/emacs-lisp/cconv.el:
      * lisp/emacs-lisp/cl-extra.el:
      * lisp/emacs-lisp/cl-generic.el:
      * lisp/emacs-lisp/cl-macs.el:
      * lisp/emacs-lisp/copyright.el:
      * lisp/emacs-lisp/debug.el:
      * lisp/emacs-lisp/eieio-compat.el:
      * lisp/emacs-lisp/ert.el:
      * lisp/emacs-lisp/generator.el:
      * lisp/emacs-lisp/inline.el:
      * lisp/emacs-lisp/macroexp.el:
      * lisp/emacs-lisp/map.el:
      * lisp/emacs-lisp/package-x.el:
      * lisp/emacs-lisp/package.el:
      * lisp/emacs-lisp/radix-tree.el:
      * lisp/emacs-lisp/smie.el:
      * lisp/epa.el:
      * lisp/erc/erc-dcc.el:
      * lisp/erc/erc-track.el:
      * lisp/erc/erc.el:
      * lisp/eshell/em-ls.el:
      * lisp/eshell/esh-cmd.el:
      * lisp/files.el:
      * lisp/filesets.el:
      * lisp/font-lock.el:
      * lisp/frameset.el:
      * lisp/gnus/gnus-agent.el:
      * lisp/gnus/gnus-art.el:
      * lisp/gnus/gnus-cite.el:
      * lisp/gnus/gnus-group.el:
      * lisp/gnus/gnus-msg.el:
      * lisp/gnus/gnus-salt.el:
      * lisp/gnus/gnus-srvr.el:
      * lisp/gnus/gnus-sum.el:
      * lisp/gnus/gnus-topic.el:
      * lisp/gnus/gnus-util.el:
      * lisp/gnus/gnus.el:
      * lisp/gnus/message.el:
      * lisp/gnus/mm-util.el:
      * lisp/gnus/mml.el:
      * lisp/gnus/nnheader.el:
      * lisp/gnus/nnimap.el:
      * lisp/gnus/nnmairix.el:
      * lisp/gnus/spam.el:
      * lisp/hexl.el:
      * lisp/hi-lock.el:
      * lisp/ibuf-ext.el:
      * lisp/ibuffer.el:
      * lisp/ido.el:
      * lisp/info.el:
      * lisp/international/mule-cmds.el:
      * lisp/international/mule-util.el:
      * lisp/json.el:
      * lisp/jsonrpc.el:
      * lisp/language/cyrillic.el:
      * lisp/language/european.el:
      * lisp/language/georgian.el:
      * lisp/language/tibetan.el:
      * lisp/language/utf-8-lang.el:
      * lisp/language/vietnamese.el:
      * lisp/ldefs-boot.el:
      * lisp/mail/mail-extr.el:
      * lisp/man.el:
      * lisp/menu-bar.el:
      * lisp/mh-e/mh-acros.el:
      * lisp/mh-e/mh-folder.el:
      * lisp/mh-e/mh-mime.el:
      * lisp/mh-e/mh-show.el:
      * lisp/mh-e/mh-speed.el:
      * lisp/minibuffer.el:
      * lisp/mpc.el:
      * lisp/net/ange-ftp.el:
      * lisp/net/hmac-def.el:
      * lisp/net/newst-backend.el:
      * lisp/net/quickurl.el:
      * lisp/net/tramp-archive.el:
      * lisp/net/tramp-compat.el:
      * lisp/notifications.el:
      * lisp/obsolete/pgg-parse.el:
      * lisp/obsolete/vc-arch.el:
      * lisp/obsolete/xesam.el:
      * lisp/org/ob-C.el:
      * lisp/org/ob-core.el:
      * lisp/org/ob-exp.el:
      * lisp/org/ob-groovy.el:
      * lisp/org/ob-haskell.el:
      * lisp/org/ob-io.el:
      * lisp/org/ob-lisp.el:
      * lisp/org/ob-lob.el:
      * lisp/org/ob-lua.el:
      * lisp/org/ob-octave.el:
      * lisp/org/ob-perl.el:
      * lisp/org/ob-python.el:
      * lisp/org/ob-ref.el:
      * lisp/org/ob-ruby.el:
      * lisp/org/ob-sql.el:
      * lisp/org/org-agenda.el:
      * lisp/org/org-capture.el:
      * lisp/org/org-clock.el:
      * lisp/org/org-colview.el:
      * lisp/org/org-duration.el:
      * lisp/org/org-element.el:
      * lisp/org/org-entities.el:
      * lisp/org/org-gnus.el:
      * lisp/org/org-indent.el:
      * lisp/org/org-info.el:
      * lisp/org/org-inlinetask.el:
      * lisp/org/org-lint.el:
      * lisp/org/org-list.el:
      * lisp/org/org-mouse.el:
      * lisp/org/org-plot.el:
      * lisp/org/org-src.el:
      * lisp/org/org-table.el:
      * lisp/org/org.el:
      * lisp/org/ox-ascii.el:
      * lisp/org/ox-html.el:
      * lisp/org/ox-latex.el:
      * lisp/org/ox-man.el:
      * lisp/org/ox-md.el:
      * lisp/org/ox-org.el:
      * lisp/org/ox-publish.el:
      * lisp/org/ox-texinfo.el:
      * lisp/org/ox.el:
      * lisp/play/bubbles.el:
      * lisp/play/gamegrid.el:
      * lisp/progmodes/autoconf.el:
      * lisp/progmodes/cc-defs.el:
      * lisp/progmodes/cc-engine.el:
      * lisp/progmodes/cc-fonts.el:
      * lisp/progmodes/cc-langs.el:
      * lisp/progmodes/cperl-mode.el:
      * lisp/progmodes/ebrowse.el:
      * lisp/progmodes/elisp-mode.el:
      * lisp/progmodes/flymake-cc.el:
      * lisp/progmodes/flymake.el:
      * lisp/progmodes/fortran.el:
      * lisp/progmodes/grep.el:
      * lisp/progmodes/gud.el:
      * lisp/progmodes/idlwave.el:
      * lisp/progmodes/js.el:
      * lisp/progmodes/m4-mode.el:
      * lisp/progmodes/make-mode.el:
      * lisp/progmodes/mixal-mode.el:
      * lisp/progmodes/modula2.el:
      * lisp/progmodes/octave.el:
      * lisp/progmodes/opascal.el:
      * lisp/progmodes/prolog.el:
      * lisp/progmodes/ps-mode.el:
      * lisp/progmodes/python.el:
      * lisp/progmodes/ruby-mode.el:
      * lisp/progmodes/sh-script.el:
      * lisp/progmodes/sql.el:
      * lisp/progmodes/verilog-mode.el:
      * lisp/ps-mule.el:
      * lisp/rtree.el:
      * lisp/ruler-mode.el:
      * lisp/ses.el:
      * lisp/simple.el:
      * lisp/startup.el:
      * lisp/subr.el:
      * lisp/term/ns-win.el:
      * lisp/textmodes/bibtex.el:
      * lisp/textmodes/conf-mode.el:
      * lisp/textmodes/css-mode.el:
      * lisp/textmodes/refill.el:
      * lisp/textmodes/sgml-mode.el:
      * lisp/textmodes/tex-mode.el:
      * lisp/tutorial.el:
      * lisp/url/url-dav.el:
      * lisp/url/url-gw.el:
      * lisp/url/url-http.el:
      * lisp/url/url-methods.el:
      * lisp/url/url-privacy.el:
      * lisp/vc/cvs-status.el:
      * lisp/vc/diff-mode.el:
      * lisp/vc/ediff-init.el:
      * lisp/vc/ediff-ptch.el:
      * lisp/vc/log-edit.el:
      * lisp/vc/log-view.el:
      * lisp/vc/pcvs-info.el:
      * lisp/vc/pcvs.el:
      * lisp/vc/smerge-mode.el:
      * lisp/vc/vc-git.el:
      * lisp/vc/vc-hg.el:
      * lisp/vc/vc-mtn.el:
      * lisp/vc/vc-rcs.el:
      * lisp/whitespace.el:
      * lisp/window.el:
      * test/lisp/electric-tests.el:
      * test/lisp/emacs-lisp/cl-lib-tests.el:
      * test/lisp/emacs-lisp/ert-tests.el:
      * test/lisp/epg-tests.el:
      * test/lisp/jsonrpc-tests.el:
      * test/src/data-tests.el:
      * test/src/json-tests.el: Replace most insignificant backquotes.
      1808d254
  10. 22 Sep, 2018 2 commits
  11. 23 Aug, 2018 1 commit
    • Paul Eggert's avatar
      Prune most-positive-fixnum from Lisp source · a4a3c92e
      Paul Eggert authored
      I looked through all instances of most-negative-fixnum
      and most-positive-fixnum in the Lisp source code, and
      when it was easy I removed assumptions that integers
      fit in fixnums.  The remaining instances are either
      nontrivial to fix, or are inherent to the algorithm.
      * lisp/arc-mode.el (archive-l-e): Do not convert to float,
      since we have bignums now.  All uses changed.
      * lisp/calc/calc.el (math-bignum):
      Don’t special-case most-negative-fixnum.
      * lisp/calendar/parse-time.el (parse-time-string):
      * lisp/emacs-lisp/edebug.el (edebug-read-special):
      * lisp/emacs-lisp/package.el (package--remove-hidden):
      * lisp/gnus/nnfolder.el (nnfolder-read-folder):
      * lisp/international/mule-util.el (filepos-to-bufferpos--dos):
      * lisp/menu-bar.el (menu-bar-update-buffers):
      * lisp/net/rcirc.el (rcirc-handler-317):
      * lisp/org/org-agenda.el (org-cmp-ts):
      * lisp/window.el (window--resize-child-windows):
      Avoid arbitrary limit to most-positive-fixnum or to
      most-negative-fixnum.
      * lisp/calendar/time-date.el (days-to-time):
      * lisp/erc/erc-dcc.el (erc-unpack-int):
      Don’t worry about integer overflow.
      * lisp/cedet/semantic/wisent/comp.el (wisent-BITS-PER-WORD):
      * lisp/gnus/message.el (message-unique-id):
      * lisp/org/org-footnote.el (org-footnote-new):
      Simplify.
      * lisp/erc/erc-dcc.el (erc-most-positive-int-bytes)
      (erc-most-positive-int-msb): Remove; no longer needed.
      * lisp/net/imap.el (imap-string-to-integer): Remove; unused.
      * lisp/org/org-element.el (org-element--cache-generate-key):
      Document fixnum limitation.
      a4a3c92e
  12. 02 Jul, 2018 1 commit
    • John Shahid's avatar
      Optionally add argument description in minor mode DOC (bug#10754) · ee3e4323
      John Shahid authored
      Add a paragraph to minor mode's docstring documenting the mode's ARG
      usage if the supplied docstring doesn't already contain the word "ARG".
      
      * easy-mmode.el (easy-mmode--arg-docstring): New const.
      (easy-mmode--arg-docstring): New function.
      (define-minor-mode): Use them.
      
      Remove argument documentation from all minor modes.
      ee3e4323
  13. 25 Jan, 2018 1 commit
    • Stefan Monnier's avatar
      Replace (default-value 'enable-multibyte-characters) with t · 9107cf30
      Stefan Monnier authored
      Since Emacs-24, (default-value 'enable-multibyte-characters) can't be
      changed any more, so we can remove all code which checks this value.
      
      * lisp/x-dnd.el (x-dnd-handle-file-name):
      * lisp/w32-fns.el (w32-set-default-process-coding-system):
      * lisp/textmodes/ispell.el (ispell-send-string):
      * lisp/term/internal.el (dos-codepage-setup):
      * lisp/tar-mode.el (tar-header-block-tokenize, tar--extract):
      * lisp/startup.el (command-line):
      * lisp/server.el (server-process-filter):
      * lisp/net/browse-url.el (browse-url-file-url):
      * lisp/menu-bar.el (menu-bar-options-menu, menu-bar-describe-menu):
      * lisp/mail/sendmail.el (mail-setup):
      * lisp/mail/rmail.el (rmail-mode, rmail-get-new-mail):
      * lisp/mail/rfc2047.el (rfc2047-encode-message-header):
      * lisp/mail/emacsbug.el (report-emacs-bug):
      * lisp/international/mule-diag.el (mule-diag):
      * lisp/files.el (find-file-noselect-1):
      * lisp/dos-fns.el (dos-set-default-process-coding-system):
      * lisp/arc-mode.el (archive-mode):
      * lisp/international/mule-cmds.el (mule-menu-keymap)
      (set-default-coding-systems, set-language-info)
      (set-language-environment, standard-display-european-internal)
      (set-locale-environment): Simplify code.
      9107cf30
  14. 01 Jan, 2018 1 commit
  15. 15 Dec, 2017 1 commit
  16. 22 Nov, 2017 2 commits
  17. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  18. 01 Aug, 2017 1 commit
  19. 22 Jul, 2017 2 commits
  20. 18 Jul, 2017 1 commit
  21. 08 Jul, 2017 1 commit
  22. 17 Jun, 2017 1 commit
    • Eli Zaretskii's avatar
      Finish up native display of line numbers · 7277c0fc
      Eli Zaretskii authored
      * src/xdisp.c (maybe_produce_line_number): Produce a blank before
      the number, for R2L rows.  Increment 'g' in the loop even if
      glyph_row is NULL.  Accept 2nd argument FORCE and produce the
      line-number glyphs if it is non-zero.
      (move_it_in_display_line_to): Account for the space taken by the
      line-number glyphs.  Call maybe_produce_line_number with 2nd
      argument non-zero.
      (set_cursor_from_row): Fix calculation of cursor X coordinate in
      R2L rows with display-produced glyphs at the beginning.
      (syms_of_xdisp) <line-number>: New face symbol.
      <relative, display-line-width>: New symbols.
      (maybe_produce_line_number): Use the line-number face for
      displaying line numbers.  Support relative line-number display.
      Support user-defined width for displaying line numbers.
      (try_cursor_movement, try_window_id): Disable these optimizations
      when displaying relative line numbers.
      * src/dispextern.h (struct it): New member 'pt_lnum'.
      
      * lisp/faces.el (line-number): New face.
      * lisp/cus-start.el (standard): Provide customization forms for
      display-line-numbers and display-line-width.
      * lisp/menu-bar.el (menu-bar-showhide-menu): Add menu-bar item to
      turn display-line-numbers on and off.
      
      * etc/NEWS: Document the new feature.
      7277c0fc
  23. 24 May, 2017 1 commit
    • Stephen Berman's avatar
      Fix and improve UI of scroll bar menu (bug#27047) · 08f00c01
      Stephen Berman authored
      In addition, since the Emacs manual writes "scroll bar", "tool
      bar" and "menu bar", use this convention in the Show/Hide menues
      and tooltips as well.
      
      * lisp/menu-bar.el (menu-bar-showhide-scroll-bar-menu): Make
      pressing a radio button in the menu actually show that it was
      pressed.  Replace the two radio buttons to turn the horizontal
      scroll bar on and off with a single check-box toggle and add a
      separator between this and the vertical scroll bar radio
      buttons.  Use conventional spelling.
      (menu-bar-horizontal-scroll-bar)
      (menu-bar-no-horizontal-scroll-bar): Remove, since now unused.
      (menu-bar-showhide-tool-bar-menu, menu-bar-showhide-menu)
      (menu-bar-mode): Use conventional spelling.
      08f00c01
  24. 28 Apr, 2017 1 commit
    • Bartosz Duszel's avatar
      Don't pass the value of point to 'push-mark', as that's the default. · 6a151cf8
      Bartosz Duszel authored
      * lisp/textmodes/bib-mode.el (mark-bib):
      * lisp/simple.el (mark-whole-buffer, yank):
      * lisp/ses.el (ses--advice-yank, ses-mark-row, ses-mark-column):
      * lisp/progmodes/xscheme.el (xscheme-yank):
      * lisp/progmodes/verilog-mode.el (verilog-mark-defun):
      * lisp/progmodes/perl-mode.el (perl-mark-function):
      * lisp/progmodes/pascal.el (pascal-mark-defun):
      * lisp/progmodes/meta-mode.el (meta-mark-defun):
      * lisp/progmodes/icon.el (mark-icon-function):
      * lisp/progmodes/cc-cmds.el (c-mark-function):
      * lisp/obsolete/vip.el (ex-goto):
      * lisp/obsolete/vi.el (vi-put-before):
      * lisp/mouse.el (mouse-yank-primary):
      * lisp/menu-bar.el (menu-bar-select-yank):
      * lisp/mail/sendmail.el (mail-yank-original):
      * lisp/hexl.el (hexl-beginning-of-buffer, hexl-end-of-buffer):
      * lisp/emulation/viper-cmd.el (viper-mark-beginning-of-buffer)
      (viper-mark-end-of-buffer):
      * lisp/cedet/semantic/senator.el (senator-mark-defun):
      * lisp/allout.el (allout-mark-topic): Remove unnecessary argument
      `(point)' from calls to `push-mark'.  (Bug#25565)
      6a151cf8
  25. 12 Apr, 2017 1 commit
  26. 01 Jan, 2017 1 commit
  27. 11 Dec, 2016 1 commit
    • Glenn Morris's avatar
      Fixes related to select-enable-clipboard · 442e2f61
      Glenn Morris authored
      * lisp/menu-bar.el (clipboard-yank, clipboard-kill-ring-save)
      (clipboard-kill-region):
      * lisp/eshell/esh-io.el (eshell-virtual-targets)
      (eshell-clipboard-append):
      Replace option gui-select-enable-clipboard with
      select-enable-clipboard; renamed October 2014.  (Bug#25145)
      442e2f61
  28. 06 Nov, 2016 1 commit
    • Paul Eggert's avatar
      Modernize usage of 'macOS' in doc and comments · dc152c54
      Paul Eggert authored
      Apple changed the spelling of its operating system again, to "macOS",
      effective with macOS 10.12 Sierra (2016-09-20).  Change Emacs
      documentation and comments to match this.  Stick with older OS
      spellings ("OS X", "Mac OS X") when talking about older releases where
      the older names are more correct.
      dc152c54
  29. 08 Jul, 2016 1 commit
    • Stephen Berman's avatar
      Fix menu bar breakage · 381c6bbf
      Stephen Berman authored
      * lisp/menu-bar.el (menu-bar-showhide-scroll-bar-menu): Use backquoting
      to prevent void variable errors, and fix typo (bug#23918).
      381c6bbf
  30. 06 Jul, 2016 1 commit
    • Dmitry Antipov's avatar
      Prefer 'frame-parameter' where it is expected to be a bit faster · a7e302dc
      Dmitry Antipov authored
      * lisp/international/mule-diag.el (mule-diag):
      * lisp/menu-bar.el (menu-bar-showhide-scroll-bar-menu):
      * lisp/mouse.el (mouse-drag-line, font-menu-add-default):
      * lisp/scroll-bar.el (toggle-scroll-bar, toggle-horizontal-scroll-bar):
      * lisp/faces.el (x-resolve-font-name): Use 'frame-parameter'.
      a7e302dc
  31. 17 May, 2016 1 commit
  32. 01 May, 2016 1 commit
  33. 29 Apr, 2016 2 commits
  34. 13 Mar, 2016 1 commit
  35. 12 Mar, 2016 1 commit
    • Phillip Lord's avatar
      Simplify "Visit New File" to "New File" · d457fd9d
      Phillip Lord authored
      * doc/emacs/files.texi,lisp/menu-bar.el (menu-bar-file-menu),
        lisp/startup.el(normal-mouse-start-screen,
        normal-no-mouse-startup-screen): Change label "Visit New File" to "New
        File".
      d457fd9d
  36. 06 Feb, 2016 1 commit