1. 16 May, 2017 8 commits
  2. 15 May, 2017 3 commits
  3. 14 May, 2017 8 commits
    • Gemini Lasswell's avatar
      Make edebug-step-in work on generic methods (Bug#22294) · e6f64df9
      Gemini Lasswell authored
      * lisp/emacs-lisp/edebug.el (edebug-match-cl-generic-method-args):
      New function to implement the edebug-form-spec property of
      the symbol cl-generic-method-args.
      (edebug-instrument-function): If the function is a generic
      function, find and instrument all of its methods. Return a list
      instead of a single symbol.
      (edebug-instrument-callee): Now returns a list. Update docstring.
      (edebug-step-in): Handle the list returned by edebug-instrument-callee.
      * lisp/emacs-lisp/cl-generic.el (cl-defmethod): Use name and
      cl-generic-method-args in its Edebug spec.
      * lisp/emacs-lisp/eieio-compat.el (defmethod): Use name and
      cl-generic-method-args in its Edebug spec.
      * lisp/subr.el (method-files): New function.
      * test/lisp/subr-tests.el (subr-tests--method-files--finds-methods)
      (subr-tests--method-files--nonexistent-methods): New tests.
      e6f64df9
    • Paul Eggert's avatar
      Merge from gnulib · 10037e4b
      Paul Eggert authored
      This incorporates:
      2017-05-14 same-inode: Adapt for windows-stat-inodes
      2017-05-14 windows-stat-inodes: New module
      2017-05-14 stat-time: Adapt for windows-stat-timespec
      * lib/gnulib.mk.in: Regenerate.
      * lib/stat-time.h, lib/sys_types.in.h, m4/sys_types_h.m4:
      Copy from gnulib.
      10037e4b
    • Eli Zaretskii's avatar
      Remove gettimeofday from w32 sources · 792ffa02
      Eli Zaretskii authored
      * lib-src/ntlib.c (gettimeofday):
      * nt/inc/sys/time.h (gettimeofday, struct timezone): Remove unused
      function 'gettimeofday' and all of its supporting code.
      792ffa02
    • Eli Zaretskii's avatar
      Fix the MS-Windows build · 3af6909f
      Eli Zaretskii authored
      * nt/inc/sys/time.h (gettimeofday):
      * src/w32.c (gettimeofday): Adjust signature to match Gnulib.
      3af6909f
    • Paul Eggert's avatar
      Merge from gnulib · 4132bd74
      Paul Eggert authored
      This incorporates:
      2017-05-13 largefile: Simplify
      2017-05-13 largefile: Improve and document
      2017-05-13 truncate: New module
      2017-05-13 windows-stat-timespec: New module
      2017-05-13 windows-stat-override: New module
      2017-05-11 getopt-posix: port to mingw
      2017-05-11 gettimeofday: Increase precision on mingw
      2017-05-10 time: Fix missing initialization of HAVE_TIMEZONE_T
      2017-05-10 Implement a way to opt out from MSVC support
      2017-05-09 tzset: Expand comment about TZ problem on native Windows
      * build-aux/config.guess, lib/dup2.c, lib/fcntl.c, lib/fsync.c:
      * lib/getdtablesize.c, lib/getopt.c, lib/gettimeofday.c:
      * lib/mktime.c, lib/stat-time.h, lib/sys_stat.in.h, lib/unistd.in.h:
      * lib/utimens.c, m4/gettimeofday.m4, m4/largefile.m4:
      * m4/sys_stat_h.m4, m4/sys_time_h.m4, m4/time_h.m4, m4/time_rz.m4:
      * m4/unistd_h.m4: Copy from gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      4132bd74
    • Marcin Borkowski's avatar
      Merge branch 'fix/bug-21072' · 9a5e864d
      Marcin Borkowski authored
      9a5e864d
    • Ted Zlatanov's avatar
      91ccb266
    • Mark Oteiza's avatar
      ; Revert "Adjust the edebug spec of if-let*" · 4e088755
      Mark Oteiza authored
      This reverts commit fd4b83ca.
      4e088755
  4. 13 May, 2017 3 commits
    • Tak Kunihiro's avatar
      New minor mode 'pixel-scroll-mode' · 78fe5abc
      Tak Kunihiro authored
      * lisp/pixel-scroll.el: New file.
      
      * etc/NEWS: Mention pixel-scroll-mode.
      78fe5abc
    • Philipp's avatar
      Make `old-style-backquotes' variable internal · a1d46159
      Philipp authored
      * src/lread.c (load_warn_old_style_backquotes, Fload, read1)
      (syms_of_lread): Rename `old-style-backquotes' to
      `lread--old-style-backquotes', and clarify that it's for internal
      use only.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Rename
      variable.
      * test/src/lread-tests.el (lread-tests--old-style-backquotes): Add
      unit test.
      * emacs-lisp/bytecomp-tests.el
      (bytecomp-tests--old-style-backquotes): Add unit test.
      a1d46159
    • Philipp Stephani's avatar
      Improve unescaped character literal warnings · 16004397
      Philipp Stephani authored
      * src/lread.c (load_warn_unescaped_character_literals)
      (syms_of_lread):
      lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Improve
      formatting of unescaped character literal warnings.
      
      * test/src/lread-tests.el (lread-tests--unescaped-char-literals):
      test/lisp/emacs-lisp/bytecomp-tests.el
      (bytecomp-tests--unescaped-char-literals): Adapt unit tests.
      16004397
  5. 12 May, 2017 10 commits
    • Alan Mackenzie's avatar
      Fontify C++ for loop variable as variable, even when followed by parentheses · 0e09d00f
      Alan Mackenzie authored
      In the following: "for (auto *Friend : Class->friends()) {", "Friend" was
      getting fontified as a function, due to insufficient checking of the tokens
      between it and "()".
      
      * lisp/progmodes/cc-langs.el (c-:-op-cont-tokens, c-:-op-cont-regexp): New
      lang-consts/vars.
      
      * lisp/progmodes/cc-engine.el (c-forward-declarator): After finding a putative
      declarator's identifier, check for a ":" token inside a for's parentheses, and
      abort the search for "(" if this is found.
      0e09d00f
    • Michael Albinus's avatar
      Make Tramp backward compatible · afd8c762
      Michael Albinus authored
      * lisp/net/tramp-cmds.el (tramp-change-syntax):
      Set tramp-autoload cookie.
      
      * lisp/net/tramp-compat.el: Run `tramp-change-syntax' at
      startup, if necessary.
      
      * lisp/net/tramp.el (tramp-syntax): Use `tramp-compat-user-error'.
      (tramp-register-autoload-file-name-handlers): Do not mark
      `operations' for `tramp-file-name-handler'.
      (tramp-register-file-name-handlers): Remove also
      `tramp-autoload-file-name-handler' for backward compatibility.
      (tramp-register-foreign-file-name-handler): Use `delete-dups'.
      
      * test/lisp/net/tramp-tests.el (tramp-change-syntax): Declare.
      afd8c762
    • Noam Postavsky's avatar
      Modify `beginning-of-defun-comments' · aa779b0f
      Noam Postavsky authored
      * lisp/emacs-lisp/lisp.el (beginning-of-defun-comments): Try not to stop
      in the middle of a multiline comment.
      aa779b0f
    • Noam Postavsky's avatar
      Fix elisp-tests-with-temp-buffer compilation · cb8fcbc3
      Noam Postavsky authored
      * test/lisp/emacs-lisp/lisp-tests.el (elisp-tests-with-temp-buffer):
      Don't refer to the =!NAME= as "markers" since they produce variables
      with just plain positions, not marker objects.  Explicitly specify
      that CONTENTS is evaluated at compile time.  Don't re-evaluate
      CONTENTS at runtime.  Fix debug specification.  Suppress warnings due
      to BODY not using =!NAME= variables.
      (elisp-test-point-position-regex): Rename from
      `elisp-test-point-marker-regex'.
      (mark-defun-test-buffer): Wrap in `eval-and-compile'.
      cb8fcbc3
    • Noam Postavsky's avatar
    • Marcin Borkowski's avatar
      Fix Bug#21072 and rework `mark-defun' · 22fc9170
      Marcin Borkowski authored
      * test/lisp/progmodes/elisp-mode-tests.el (mark-defun-test-buffer):
        New variable
      (mark-defun-no-arg-region-inactive)
      (mark-defun-no-arg-region-active)
      (mark-defun-arg-region-active)
      (mark-defun-pos-arg-region-inactive)
      (mark-defun-neg-arg-region-inactive, mark-defun-bob): Add tests for
      the new `mark-defun'.
      
      * lisp/emacs-lisp/lisp.el (beginning-of-defun--in-emptyish-line-p):
        New function.
      (beginning-of-defun-comments): New function.
      (mark-defun): Fix bug#21072, also rewrite large parts of `mark-defun'
      to accept a numerical prefix argument.
      22fc9170
    • Alfred M. Szmidt's avatar
      * lisp/mail/rmail.el (rmail-ignored-headers): Add 3 headers to ignore. · e5c71dca
      Alfred M. Szmidt authored
      Copyright-paperwork-exempt: yes.
      e5c71dca
    • Eli Zaretskii's avatar
      Improve doc strings in net-utils.el · 27cef30c
      Eli Zaretskii authored
      * lisp/net/net-utils.el (ifconfig, iwconfig, netstat, arp)
      (route, traceroute, nslookup, ftp, smbclient)
      (smbclient-list-shares, finger, whois)
      (network-connection-to-service, network-service-connection)
      (network-connection-reconnect): Improve doc strings.
      27cef30c
    • Andrew Robbins's avatar
      Extend DNS lookup commands to allow specifying the name server · a1b69815
      Andrew Robbins authored
      * lisp/net/net-utils.el (ffap-string-at-point): Removed due to
      'net-utils-machine-at-point' obviating this autoloaded
      function (Bug#25426).
      (dig-program-options): New customization variable.
      (nslookup-host, dns-lookup-host, run-dig): Can now specify
      optional name server argument interactively (by prefix arg) and
      non-interactively.
      
      * etc/NEWS: Mention the extension of DNS lookup commands.
      a1b69815
    • Glenn Morris's avatar
      Don't hard-code loaddefs files in lisp/Makefile · d9592104
      Glenn Morris authored
      * lisp/Makefile.in (loaddefs): New variable.
      (AUTOGENEL): Use $loaddefs, and include directory.
      (bootstrap-clean): Update for AUTOGENEL change.
      d9592104
  6. 11 May, 2017 1 commit
  7. 10 May, 2017 7 commits
    • Perry E. Metzger's avatar
      Implement 1-based column numbering in mode line · 7df07779
      Perry E. Metzger authored
      * src/xdisp.c (decode_mode_spec): Implement the %C construct.
      
      * lisp/bindings.el (column-number-indicator-zero-based): New
      defcustom.
      (mode-line-position): Use %C when
      column-number-indicator-zero-based is nil.
      
      * src/xdisp.c (syms_of_xdisp) <frame-title-format>:
      * src/buffer.c (syms_of_buffer) <mode-line-format>:
      * doc/lispref/modes.texi (%-Constructs):
      * doc/lispref/frames.texi (Frame Titles): Document the %C
      construct.
      
      * doc/emacs/display.texi (Optional Mode Line): Document
      'column-number-indicator-zero-based'.
      
      * etc/NEWS: Mention 'column-number-indicator-zero-based' and the
      %C construct.
      7df07779
    • Eli Zaretskii's avatar
      Ensure cursor's foreground color is in sync with 'default' face · e124e07f
      Eli Zaretskii authored
      * src/w32term.c (x_set_cursor_gc): Don't reuse cursor GC if its
      foreground color is different from the background of the glyph
      string's face.  (Bug#26851)
      e124e07f
    • Eli Zaretskii's avatar
      Fix vertical cursor motion when columns are of unequal size · de53dfce
      Eli Zaretskii authored
      * lisp/simple.el (line-move-finish): In line-move-visual mode, use
      vertical-motion to move to the goal column, as the goal column
      should in that case be interpreted in units of frame's canonical
      character width.  (Bug#26852)
      de53dfce
    • Glenn Morris's avatar
      Fix finding test .el files · 48e6e9a9
      Glenn Morris authored
      * test/Makefile.in (ELFILES): Exclude the data/ directory.
      * test/src/lread-tests.el (lread-test-bug26837): Revert previous.
      48e6e9a9
    • Tino Calancha's avatar
      Tweak a recent test · 4f391b9d
      Tino Calancha authored
      This test fails in my local machine because the data files
      are compiled, and the test doesn't expect that.
      * test/src/lread-tests.el (lread-test-bug26837): Match a suffix
      ending with '.elc' when the data files are compiled.
      4f391b9d
    • Glenn Morris's avatar
      Put license information in each generated uni-*.el · 8452db04
      Glenn Morris authored
      * admin/unidata/unidata-gen.el (unidata-gen-file):
      Get Copyright line from copyright.html.
      Put information in file header, not separate README.
      (unidata-gen-charprop): Mention the source location.
      * lisp/international/README: Remove file.
      8452db04
    • Noam Postavsky's avatar
      Fix lisp-indent-region and indent-sexp (Bug#26619) · e7b6751c
      Noam Postavsky authored
      The new lisp-indent-region introduced in 2017-04-22 "Add new
      `lisp-indent-region' that doesn't reparse the code." is broken because
      it doesn't save the calculated indent amounts for already seen sexp
      depths.  Fix this by unifying the indent-sexp and lisp-indent-region
      code.  Furthermore, only preserve position 2 of the running parse
      when the depth doesn't change.
      * lisp/emacs-lisp/lisp-mode.el (lisp-ppss): Use an OLDSTATE that
      corresponds with the start point when calling parse-partial-sexp.
      (lisp-indent-state): New struct.
      (lisp-indent-calc-next): New function, extracted from indent-sexp.
      (indent-sexp, lisp-indent-region): Use it.
      (lisp-indent-line): Take indentation, instead of parse state.
      * test/lisp/emacs-lisp/lisp-mode-tests.el
      (lisp-mode-tests--correctly-indented-sexp): New constant.
      (lisp-indent-region, lisp-indent-region-defun-with-docstring):
      (lisp-indent-region-open-paren, lisp-indent-region-in-sexp): New
      tests.
      e7b6751c