1. 12 May, 2017 5 commits
    • 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.
    • 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.
    • 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.
    • 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
      * etc/NEWS: Mention the extension of DNS lookup commands.
    • 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.
  2. 11 May, 2017 1 commit
  3. 10 May, 2017 8 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
      (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
      * doc/emacs/display.texi (Optional Mode Line): Document
      * etc/NEWS: Mention 'column-number-indicator-zero-based' and the
      %C construct.
    • 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)
    • 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)
    • 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.
    • 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.
    • 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.
    • 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
    • Dmitry Gutov's avatar
      Simplify url-encode-url and add a test · 17e540aa
      Dmitry Gutov authored
      * lisp/url/url-util.el (url-encode-url): Simplify.
      url-generic-parse-url copes with multibyte strings just fine
      * test/lisp/url/url-parse-tests.el
      (url-generic-parse-url/multibyte-host-and-path): New test.
  4. 09 May, 2017 5 commits
    • Glenn Morris's avatar
      More informative error when required feature missing · 58326f0f
      Glenn Morris authored
      * src/fns.c (Frequire): Include file name in missing feature error.
      * doc/lispref/loading.texi (Named Features): Don't quote actual error.
    • Glenn Morris's avatar
      Put re-loaded file back at start of load-history (bug#26837) · db30296b
      Glenn Morris authored
      * src/lread.c (readevalloop): Fix the "whole buffer" check to
      operate in the correct buffer.
      (Feval_buffer): Move point back to the start after checking
      for lexical binding.
      * test/src/lread-tests.el (lread-test-bug26837): New test.
      * test/data/somelib.el, test/data/somelib2.el: New test data files.
    • Glenn Morris's avatar
      Don't duplicate autoload code in package.el · d6d5020c
      Glenn Morris authored
      * lisp/emacs-lisp/autoload.el (autoload-rubric): Add a package option.
      * lisp/emacs-lisp/package.el (autoload-rubric): Declare.
      (package-autoload-ensure-default-file): Use autoload-rubric.
    • Michael Albinus's avatar
    • Noam Postavsky's avatar
      Revert "Output number of characters added to file (Bug#354)" · daaec72a
      Noam Postavsky authored
      The extra message text turned out to be quite annoying in practice,
      and is generally more trouble than it's worth.  Also revert several
      related changes.
      Partially revert "Handle `write-region' messages in Tramp properly"
      Revert "New var write-region-verbose, default nil"
      Revert "* src/fileio.c (write_region): Don't say "1 characters".  (Bug#26796)"
      Revert "Minor tuneup of write-region change"
      Revert "Adjust write-region so file name is at the beginning again"
      Revert "Fix handling of non-integer START param to write-region"
      Revert "Output number of characters added to file (Bug#354)"
      * doc/emacs/files.texi (Misc File Ops):
      * etc/NEWS:
      * lisp/epa-file.el (epa-file-write-region):
      * lisp/gnus/mm-util.el (mm-append-to-file):
      * lisp/jka-compr.el (jka-compr-write-region):
      * lisp/net/ange-ftp.el (ange-ftp-write-region):
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * lisp/net/tramp-...
  5. 08 May, 2017 4 commits
    • Ken Brown's avatar
      Skip a test from filenotify-tests.el on Cygwin · 5e2cf8c8
      Ken Brown authored
      * test/lisp/filenotify-tests.el (file-notify-test02-rm-watch):
      Skip the last part of the test on Cygwin; it fails due to timing
      (file-notify--test-read-event):  Remove `sit-for' that was added
      for Cygwin.
    • Paul Eggert's avatar
      Merge from gnulib · 7ff7624a
      Paul Eggert authored
      This incorporates:
      2017-05-08 intprops: don’t depend on ‘verify’
      2017-05-07 utimens: on native Windows, improve resolution if fd < 0
      2017-05-07 utimens: Improve error code on native Windows
      * lib/intprops.h, lib/utimens.c: Copy from gnulib.
    • Wilson Snyder's avatar
      Fix various verilog-mode.el issues. · e93f39d2
      Wilson Snyder authored
      * lisp/progmodes/verilog-mode.el (verilog-read-decls): Fix SystemVerilog
      2012 import breaking AUTOINST.  Reported by Johannes Schaefer.
      (verilog-auto-wire-type, verilog-insert-definition): Fix AUTOWIRE using
      logic in top-level non-SystemVerilog module, bug1142.  Reported by Marcin K.
      (verilog-define-abbrev-table) (verilog-mode-abbrev-table): Don't expand
      abbrev inside comment/strings, bug1102. Reported by Slava Yuzhaninov.
      (verilog-auto): Fix AUTORESET widths pulling from AUTOREGINPUT,
      msg2143. Reported by Galen Seitz.
      (verilog-modify-compile-command): Fix expansion of __FLAGS__ when
      compile-command is globally set, bug1119.  Reported by Galen Seitz.
    • Michael Albinus's avatar
      Handle `write-region' messages in Tramp properly · 73e3ed48
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-write-region-message): New defsubst.
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Use it.
      * lisp/net/tramp.el (tramp-password-prompt-regexp)
      * lisp/net/tramp-cmds.el (tramp-reporter-dump-variable)
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
      Use `bound-and-true-p'.
      * lisp/net/tramp-compat.el (tramp-compat-delete-file):
      Don't check for `boundp' anymore.
      * test/lisp/net/tramp-tests.el (ert-x): Require it.
      (tramp--test-messages): New defvar.
      (tramp-test10-write-region): Extend test.
  6. 07 May, 2017 11 commits
    • YAMAMOTO Mitsuharu's avatar
      Fix glyph string generation for multi-font compositions (Bug#26742) · 52f7440b
      YAMAMOTO Mitsuharu authored
      * src/xdisp.c (glyph_string_containing_background_width): New function.
      (draw_glyphs): Use it to get correct background width.
      (compute_overhangs_and_x): Don't change x in the middle of composite
    • Philipp Stephani's avatar
      Fix all unescaped character literals · 3c4c8ca0
      Philipp Stephani authored
    • Alan Mackenzie's avatar
      CC Mode internal cache: Handle a cache pos being inside a two-char construct. · bcbd8f7e
      Alan Mackenzie authored
      Cache c-state-semi-nonlit-pos-cache was failing when a cache position was,
      e.g., between the two characters of an opening comment "/*", and additionally
      there were an odd number of quote marks (apostrophes) in the comment.  This
      happened in .../src/xdisp.c in the Emacs master branch around 2017-05-02 at
      buffer position 615001.
      * lisp/progmodes/cc-defs.el (c-emacs-features): Repurpose symbol
      pps-extended-state to mean that there are at least 11 elements in the parser
      * lisp/progmodes/cc-engine.el (c-cache-to-parse-ps-state)
      (c-parse-ps-state-to-cache): Rewrite these to use enhanced cache element list
      types which indicate potentially being inside two-char constructs.
      (c-parse-ps-state-below): Rewrite to use the new versions of the above two
    • Glenn Morris's avatar
    • Paul Eggert's avatar
      ; Spelling fixes · 723b16a8
      Paul Eggert authored
    • Glenn Morris's avatar
      Silence an mh-compat compiler warning · 09d750fc
      Glenn Morris authored
      * lisp/mh-e/mh-compat.el (mh-url-unreserved-chars): Always define.
    • Glenn Morris's avatar
      Evaluate mh-require when compiling · 1f8036a5
      Glenn Morris authored
      * lisp/mh-e/mh-alias.el, lisp/mh-e/mh-folder.el:
      * lisp/mh-e/mh-gnus.el, lisp/mh-e/mh-search.el:
      Evaluate mh-require when compiling, as require is automatically.
      * lisp/mh-e/mh-gnus.el: No longer disable byte-compilation.
    • Glenn Morris's avatar
      Remove obsolete method of changing byte-compile-dest-file · 233cfb0e
      Glenn Morris authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-dest-file):
      Define unconditionally.
    • Paul Eggert's avatar
      New var write-region-verbose, default nil · c311b8b1
      Paul Eggert authored
      By popular demand, write-region char counts are now off by default
      * src/fileio.c (write-region-verbose): New Lisp var.
      (write_region): Output char count only if the var is non-nil.
      * doc/emacs/files.texi (Misc File Ops), etc/NEWS: Document this.
    • Glenn Morris's avatar
      Write autoloads file atomically · 7f3d6390
      Glenn Morris authored
      * lisp/emacs-lisp/autoload.el (autoload--save-buffer):
      New function, to save buffer atomically.
      (autoload-save-buffers, update-directory-autoloads):
      Use autoload--save-buffer.
      * lisp/Makefile.in ($(lisp)/loaddefs.el):
      No longer write to a temp file by hand.
    • Glenn Morris's avatar
      Write autoloads file once only · 03d94198
      Glenn Morris authored
      * lisp/emacs-lisp/autoload.el (autoload-find-generated-file):
      Simplify.  Don't bother about ensuring the output file exists.
      (autoload-generated-file): Add doc.
      (autoload-ensure-writable): Update doc.
      (autoload-ensure-file-writeable): Handle non-existing file.
      (autoload-ensure-default-file): Remove function.
  7. 06 May, 2017 6 commits