1. 12 Dec, 2018 1 commit
    • Michael Albinus's avatar
      Fix Bug#33568 · 8c28ac80
      Michael Albinus authored
      * test/lisp/net/secrets-tests.el (secrets-test02-collections)
      (secrets-test03-items): Do not expect "login" collection to
      exist.  (Bug#33568)
      8c28ac80
  2. 11 Dec, 2018 5 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/map.el: Make the functions generic · 1691a510
      Stefan Monnier authored
      Make them document their delegation relationship, to clarify when
      a method is needed.
      (map--dispatch): Give more info in the error message.
      (map-elt): Make it generic and deprecate the 'testfn' arg.
      (map-put): Make it obsolete.
      (map-length): Make it work on hash-tables.
      (map-apply): Define it in terms of map-do.
      (map-do, map-into): Use cl-generic dispatch instead of map--dispatch.
      (map-empty-p): Define it in terms of map-length.
      (map-contains-key): Deprecate 'testfn'.  Make it return a boolean, so
      it can return non-nil even if 'key' is nil.  Improve implementation to
      avoid constructing an intermediate list of all keys.
      (map-merge-with): Use 'eql' rather than `eq'.
      (map-put!): Rename from map--put and make it generic, to replace map-put.
      (map--apply-alist, map--apply-hash-table, map--apply-array):
      Turn them into methods of map-apply.
      (map--do-alist, map--do-array): Turn them into methods of map-do.
      (map--into-hash-table): Turn it into a method of map-into.
      1691a510
    • Martin Rudalics's avatar
      Fix typo in 'dired-restore-positions' · 1e34d757
      Martin Rudalics authored
      * lisp/dired.el (dired-restore-positions): Fix typo in last
      change fixing Bug#33458.
      1e34d757
    • Glenn Morris's avatar
      Add test/Makefile machinery to exclude test .el files · 7f95e1ae
      Glenn Morris authored
      * test/Makefile.in (EXCLUDE_TESTS): New variable.
      (ELFILES): Filter out any specified exclude files.
      7f95e1ae
    • Nobuyoshi Nakada's avatar
      Support Ruby block arguments ending with , or * · 3729a3f8
      Nobuyoshi Nakada authored
      * lisp/progmodes/ruby-mode.el (ruby-smie--forward-token):
      Recognize punctuation before "closing-|" as a separate token.
      (ruby-smie--backward-token): Same (bug#33487).
      
      * test/lisp/progmodes/ruby-mode-tests.el
      (ruby-forward-sexp-jumps-do-end-block-with-no-args)
      (ruby-backward-sexp-jumps-do-end-block-with-no-args)
      (ruby-forward-sexp-jumps-do-end-block-with-empty-args)
      (ruby-backward-sexp-jumps-do-end-block-with-empty-args)
      (ruby-forward-sexp-jumps-do-end-block-with-args)
      (ruby-backward-sexp-jumps-do-end-block-with-args)
      (ruby-forward-sexp-jumps-do-end-block-with-any-args)
      (ruby-forward-sexp-jumps-do-end-block-with-expanded-one-arg)
      (ruby-forward-sexp-jumps-do-end-block-with-one-and-any-args)
      (ruby-backward-sexp-jumps-do-end-block-with-one-and-any-args):
      New tests.
      3729a3f8
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-pre-command-hook): Support `isearch-move' · 0054961a
      Juri Linkov authored
      command properties with values `enabled' and `disabled'
      also for the value `shift' of isearch-yank-on-move.  (Bug#15839)
      0054961a
  3. 10 Dec, 2018 16 commits
  4. 09 Dec, 2018 15 commits
    • Glenn Morris's avatar
      * test/lisp/eshell/eshell-tests.el (with-temp-eshell): · 87bc518a
      Glenn Morris authored
      Avoid permanently changing HISTFILE.
      87bc518a
    • Juri Linkov's avatar
      Fix occur for non-nil list-matching-lines-jump-to-current-line (bug#33476) · f8179cd3
      Juri Linkov authored
      * lisp/replace.el (occur-engine): Move orig-line let-binding higher.
      Don't use start-line in forward-line.
      f8179cd3
    • Raimon Grau's avatar
      Guard occur against an undefined orig-line · ee1ebe82
      Raimon Grau authored
      ; Not to be merged to master
      * lisp/replace.el (occur-engine): Avoid inserting the current line if
      orig-line is nil.  This happens, for example, when reverting an occur
      buffer with `list-matching-lines-jump-to-current-line' set to t.
      (Bug#33476)
      ee1ebe82
    • Michael Albinus's avatar
      * test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules): · 38f2b582
      Michael Albinus authored
      Use proper error symbol.
      38f2b582
    • Eli Zaretskii's avatar
      Indexing followup to recent changes · 908af9df
      Eli Zaretskii authored
      * doc/lispref/text.texi (Special Properties): Index
      'cursor-sensor-inhibit'.  (Bug#33664)
      908af9df
    • Stefan Monnier's avatar
      Improve documentation of cursor-sensor.el (bug#33664) · 505ac9a0
      Stefan Monnier authored
      * doc/lispref/text.texi (Special Properties): Mention cursor-sensor-inhibit.
      * lisp/emacs-lisp/cursor-sensor.el (Commentary): Add cursor-sensor-mode.
      (cursor-sensor-inhibit): Add docstring.
      505ac9a0
    • Stefan Monnier's avatar
      * doc/lispref/commands.texi (Adjusting Point): Bug#33662 · d817d2cf
      Stefan Monnier authored
      Tweak text to clarify intangibility.
      d817d2cf
    • Alan Mackenzie's avatar
      Don't create *Compile-Log* due to byte-compile. Amend message to it. · d1c77129
      Alan Mackenzie authored
      This fixes bug #33602 and is a partial reversion of a commit from
      2018-11-28T13:15:50.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile-log-file): Don't create buffer
      *Compile-Log* because it doesn't already exist.  Amend message "Compiling no
      file" to be clearer (?and less irritating).
      d1c77129
    • Michael Albinus's avatar
      Tramp multi-hop methods must be inline · 18442da6
      Michael Albinus authored
      * doc/misc/tramp.texi (Ad-hoc multi-hops): Involved methods must
      be inline methods.
      18442da6
    • Paul Eggert's avatar
      Add make_vector and make_nil_vector · d79bb756
      Paul Eggert authored
      This makes the callers a bit easier to read, and doubtless
      improves efficiency very slightly.  It also simplifies
      possible future changes to allow bignum indexes to buffers.
      * src/alloc.c (allocate_vectorlike):
      Prefer ptrdiff_t to size_t when either will do.
      (make_vector): New function.
      (Fmake_vector): Use it.
      * src/buffer.c (syms_of_buffer):
      * src/bytecode.c (syms_of_bytecode):
      * src/category.c (Fmake_category_table, init_category_once):
      * src/ccl.c (syms_of_ccl):
      * src/character.c (syms_of_character):
      * src/charset.c (Fdefine_charset_internal)
      (Ffind_charset_region, Ffind_charset_string):
      * src/chartab.c (copy_char_table):
      * src/coding.c (Fdefine_coding_system_internal, syms_of_coding):
      * src/composite.c (get_composition_id, Fcomposition_get_gstring):
      * src/composite.h (LGLYPH_NEW):
      * src/fns.c (concat, Flocale_info, make_hash_table):
      * src/font.c (font_otf_ValueRecord, font_otf_anchor)
      (build_style_table, syms_of_font):
      * src/fontset.c (RFONT_DEF_NEW, fontset_find_font)
      (dump_fontset, syms_of_fontset):
      * src/image.c (xpm_make_color_table_v):
      * src/keyboard.c (modify_event_symbol, menu_bar_items)
      (parse_menu_item, parse_tool_bar_item, init_tool_bar_items)
      (syms_of_keyboard):
      * src/keymap.c (Fdefine_key, describe_map, describe_vector):
      * src/lread.c (read_vector):
      * src/macfont.m (macfont_shape):
      * src/menu.c (init_menu_items):
      * src/nsfns.m (ns_make_monitor_attribute_list):
      * src/process.c (conv_sockaddr_to_lisp, network_interface_info):
      * src/profiler.c (make_log):
      * src/window.c (Fcurrent_window_configuration):
      * src/xdisp.c (with_echo_area_buffer_unwind_data)
      (format_mode_line_unwind_data):
      * src/xfaces.c (Finternal_make_lisp_face)
      (Fface_attributes_as_vector):
      * src/xfns.c (x_make_monitor_attribute_list)
      (Fx_display_monitor_attributes_list):
      * src/xfont.c (syms_of_xfont):
      * src/xselect.c (x_handle_dnd_message):
      * src/xwidget.c (save_script_callback):
      Prefer make_nil_vector (N) to Fmake_vector (make_fixnum (N), Qnil).
      * src/callint.c (Fcall_interactively):
      * src/charset.c (load_charset_map):
      * src/chartab.c (Fmake_char_table, uniprop_encode_value_numeric):
      * src/composite.c (get_composition_id)
      * src/dispnew.c (Fframe_or_buffer_changed_p)
      (syms_of_display):
      * src/fns.c (make_hash_table, maybe_resize_hash_table):
      * src/font.c (font_style_to_value):
      * src/fontset.c (FONTSET_ADD, fontset_add):
      * src/json.c (json_to_lisp):
      * src/keymap.c (syms_of_keymap):
      * src/lread.c (init_obarray):
      * src/profiler.c (make_log, Fprofiler_cpu_log):
      * src/term.c (term_get_fkeys_1):
      Prefer make_vector (N, V) to Fmake_vector (make_fixnum (N), V).
      * src/font.c (build_style_table):
      * src/macfont.m (macfont_shape):
      * src/process.c (conv_sockaddr_to_lisp, network_interface_info):
      Prefer make_uninit_vector if the vector will be initialized soon.
      * src/lisp.h (make_nil_vector): New function.
      d79bb756
    • Eli Zaretskii's avatar
      Fix resolving symlinks in Eshell history file names · c2fdd50c
      Eli Zaretskii authored
      * lisp/eshell/em-dirs.el (eshell-write-last-dir-ring):
      * lisp/eshell/em-hist.el (eshell-write-history): Don't call
      file-truename with argument of nil.  (Bug#33477)
      
      * test/lisp/eshell/eshell-tests.el (with-temp-eshell): Remove
      HISTFILE from the environment, to make sure the Eshell history
      file is nil.
      c2fdd50c
    • Paul Eggert's avatar
      7515a1d4
    • Paul Eggert's avatar
      Port VECTOR_ELTS_MAX to older GCC etc. · fa4dd8dd
      Paul Eggert authored
      Problem reported by Eli Zaretskii in:
      https://lists.gnu.org/r/emacs-devel/2018-12/msg00182.html
      * src/alloc.c (VECTOR_ELTS_MAX): Now a macro.
      Needed for portability to older GCC and non-GCC.
      fa4dd8dd
    • Paul Eggert's avatar
      Streamline and fix vector-size checks · 7bcea8f8
      Paul Eggert authored
      * src/alloc.c (VECTOR_ELTS_MAX): New constant.
      (allocate_vectorlike): LEN now must be positive.  Assume LEN
      is in range.  All callers changed.
      (allocate_vector): Arg is now ptrdiff_t, not EMACS_INT.
      All callers changed.  Return zero vector here, not in
      allocate_vectorlike.
      * src/lisp.h (make_uninit_vector): Simplify.
      * src/xwidget.c (webkit_js_to_lisp):
      Check for overflow in ptrdiff_t calculations.
      7bcea8f8
    • Paul Eggert's avatar
      Suppress WebKitGTK+ 2.21.1 diagnostics · a9732737
      Paul Eggert authored
      * src/xwidget.c: Suppress deprecation warnings (Bug#33679).
      a9732737
  5. 08 Dec, 2018 3 commits