1. 08 Apr, 2017 7 commits
    • Glenn Morris's avatar
      Remove references to OS/2 in code, doc, and comments · bca1fde8
      Glenn Morris authored
      * lisp/gnus/nnheader.el (nnheader-read-timeout)
      (nnheader-file-name-translation-alist): Remove OS/2 case, and simplify.
      * lisp/emulation/viper-util.el (viper-color-defined-p):
      * lisp/net/pop3.el (pop3-read-timeout):
      * lisp/net/imap.el (imap-read-timeout):
      * lisp/url/url-privacy.el (url-setup-privacy-info): Remove OS/2 case.
      * lisp/emulation/viper-ex.el (viper-glob-function):
      * lisp/vc/ediff-util.el (ediff-submit-report): Doc fix.
      * lisp/cus-edit.el (custom-display): Remove "pm" (OS/2).
      * doc/emacs/msdos-xtra.texi (MS-DOS):
      * doc/misc/gnus.texi (Various Various):
      * doc/misc/viper.texi (Rudimentary Changes): Remove mentions of OS/2.
      ; * lisp/url/url.el, lisp/url/url-vars.el:
      ; * lisp/progmodes/cperl-mode.el: Remove old comments.
      bca1fde8
    • Michael Albinus's avatar
      Tune Tramp syntax · b7d61609
      Michael Albinus authored
      * lisp/net/tramp-cmds.el (tramp-change-syntax):
      Use `tramp-syntax-values'.
      
      * lisp/net/tramp-compat.el (tramp-compat-tramp-syntax): New defsubst.
      
      * lisp/net/tramp.el (tramp-syntax): Rename possible values.
      (tramp-syntax-values): New defun.
      (tramp-prefix-format, tramp-method-regexp)
      (tramp-postfix-method-format, tramp-prefix-ipv6-format)
      (tramp-postfix-ipv6-format, tramp-postfix-host-format)
      (tramp-completion-file-name-regexp): Use `tramp-compat-tramp-syntax'
      and changed values.
      (tramp-completion-file-name-regexp-default): Rename from
      `tramp-completion-file-name-regexp-unified'.  Adapt docstring.
      (tramp-completion-file-name-regexp-simplified): Rename from
      `tramp-completion-file-name-regexp-old-style'.  Adapt docstring.
      (tramp-initial-completion-file-name-regexp):
      Use `tramp-completion-file-name-regexp-default'.
      (tramp-run-real-handler): Do not autoload any longer.
      b7d61609
    • Mark Oteiza's avatar
      Replace more nested ifs with cond · c5f319eb
      Mark Oteiza authored
      This is a continuation of d5260473 "Replace more nested ifs with cond".
      * lisp/play/dunnet.el (dun-firstword, dun-firstwordl, dun-cat): Use
      when and cond where appropriate.
      c5f319eb
    • Mark Oteiza's avatar
      Adjust the edebug spec of if-let* · fd4b83ca
      Mark Oteiza authored
      This was fixed in Bug#24748, but now looking more closely, using gate in
      the spec seems correct.  See (info "(elisp) Backtracking").
      * lisp/emacs-lisp/subr-x.el (if-let*): Use gate in edebug spec.
      fd4b83ca
    • Mark Oteiza's avatar
      Replace some uses of cl-member-if with apply · 1c69215c
      Mark Oteiza authored
      From the mhtml-mode series.  Some of the uses of cl-lib are not
      necessary.
      * lisp/align.el: Don't require cl-lib.
      (align-region): Use apply instead of cl-member-if.
      * lisp/emulation/viper.el: Don't require cl-lib.
      (viper-mode, this-major-mode-requires-vi-state): Use apply instead of
      cl-member-if.
      1c69215c
    • Philipp Stephani's avatar
      Validate SPEC of `dolist', cf. Bug#25477. · 98bfac68
      Philipp Stephani authored
      * lisp/subr.el (dolist): Test type and length of SPEC.
      * test/lisp/subr-tests.el (subr-tests--dolist--wrong-number-of-args):
      Add unit test.
      98bfac68
    • Paul Eggert's avatar
      Deprecate copy-record in favor of copy-sequence · a2b3fea9
      Paul Eggert authored
      Since copy-sequence seems to be needed anyway for records, have it
      work on records, and remove copy-record as being superfluous.
      * doc/lispref/records.texi (Records, Record Functions):
      * lisp/emacs-lisp/cl-macs.el (cl-defstruct):
      * lisp/emacs-lisp/eieio.el (make-instance, clone):
      * test/src/alloc-tests.el (record-3):
      Use copy-sequence, not copy-record, to copy records.
      * doc/lispref/sequences.texi (Sequence Functions)
      (Array Functions): Document that aref and copy-sequence
      work on records.
      * etc/NEWS: Omit copy-record.
      * src/alloc.c (Fcopy_record): Remove.
      * src/data.c (Faref): Document that arg can be a record.
      * src/fns.c (Fcopy_sequence): Copy records, too.
      a2b3fea9
  2. 07 Apr, 2017 8 commits
  3. 06 Apr, 2017 6 commits
    • Paul Eggert's avatar
      f3a0f3a1
    • Michael Albinus's avatar
      Add new Tramp syntax · 69061fd1
      Michael Albinus authored
      * lisp/net/tramp-cmds.el (tramp-change-syntax): New defun.
      
      * lisp/net/tramp.el (tramp-syntax): Change default to `def'.
      Add :set function.
      (tramp-prefix-port-format): Simplify.
      (tramp-file-name-regexp-separate): Remove.
      (tramp-initial-file-name-regexp)
      (tramp-completion-file-name-regexp-old-style)
      (tramp-initial-completion-file-name-regexp): New defconst.
      (tramp-prefix-format, tramp-prefix-regexp)
      (tramp-method-regexp, tramp-postfix-method-format)
      (tramp-postfix-method-regexp, tramp-prefix-ipv6-format)
      (tramp-prefix-ipv6-regexp, tramp-postfix-ipv6-format)
      (tramp-postfix-ipv6-regexp)
      (tramp-postfix-host-format, tramp-postfix-host-regexp)
      (tramp-remote-file-name-spec-regexp)
      (tramp-file-name-structure, tramp-file-name-regexp)
      (tramp-completion-file-name-regexp)
      (tramp-rfn-eshadow-update-overlay-regexp): Change them to be defuns.
      (tramp-tramp-file-p, tramp-find-method)
      (tramp-dissect-file-name, tramp-make-tramp-file-name)
      (tramp-completion-make-tramp-file-name)
      (tramp-rfn-eshadow-update-overlay)
      (tramp-register-autoload-file-name-handlers)
      (tramp-register-file-name-handlers)
      (tramp-unload-file-name-handlers)
      (tramp-completion-handle-file-name-all-completions)
      (tramp-completion-dissect-file-name, tramp-clear-passwd):
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler):
      * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered)
      (tramp-compute-multi-hops): Use them.
      69061fd1
    • Stefan Monnier's avatar
    • Tom Tromey's avatar
      require cl-lib to fix fallout from mhtml series · f23c82d1
      Tom Tromey authored
      * lisp/align.el, lisp/calc/calc-embed.el, lisp/cedet/semantic.el,
      lisp/emulation/viper.el: Require cl-lib.
      f23c82d1
    • Ken Raeburn's avatar
      In CANNOT_DUMP builds, allow editing of files named "dump". · 7a21bdce
      Ken Raeburn authored
      * lisp/loadup.el: Perform the "dump" or "bootstrap" actions like
      calling dump-emacs only if dump-emacs is defined; otherwise, don't
      treat those command-line argument specially.
      7a21bdce
    • Ken Raeburn's avatar
      Allow a CANNOT_DUMP build to use exec-path during bootstrap. · dd09e72e
      Ken Raeburn authored
      During a bootstrap, loading rmail.el invokes movemail to determine its
      flavor, but call-process doesn't work if exec-path is nil.
      
      * lisp/loadup.el: Only clear exec-path if dumping.
      dd09e72e
  4. 05 Apr, 2017 13 commits
  5. 04 Apr, 2017 6 commits
    • Glenn Morris's avatar
      Advertise https for homepage of gnu.org packages · f981c611
      Glenn Morris authored
      * lisp/emacs-lisp/package.el (describe-package-1):
      Use https, if supported, for the homepage of packages on gnu.org.
      f981c611
    • Glenn Morris's avatar
      Default to https for elpa.gnu.org if gnutls available · 048133d4
      Glenn Morris authored
      * lisp/emacs-lisp/package.el (package-archives):
      Default to https for elpa.gnu.org if gnutls is available.  Ref:
      http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00130.html
      048133d4
    • Philipp Stephani's avatar
      Make subprocess functions resolve the default directory · 604eb02f
      Philipp Stephani authored
      `call-process' doesn't respect file name handlers in
      `default-directory', so `file-name-non-special' has to resolve them
      for `process-file', `start-file-process', and
      `shell-command' (Bug#25949).
      
      * lisp/files.el (file-name-non-special): Also resolve default
      directory for 'process-file', 'start-file-process', and
      'shell-command'.
      * test/lisp/files-tests.el
      (files-tests--file-name-non-special--subprocess): Add unit test.
      604eb02f
    • Philipp Stephani's avatar
      Make ediff handle remote and quoted file names · f4b50dad
      Philipp Stephani authored
      Quoted file names need to be unquoted before passed to
      subprocesses (Bug#25950).
      
      * lisp/vc/ediff-diff.el (ediff-exec-process): Handle remote and quoted
      file names.
      * test/lisp/vc/ediff-diff-tests.el
      (ediff-diff-tests--ediff-exec-process--quoted-file): Add unit test.
      f4b50dad
    • Stefan Monnier's avatar
      Backward compatibility with pre-existing struct instances. · 2c68192c
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-lib.el (cl--old-struct-type-of): New function.
      (cl-old-struct-compat-mode): New minor mode.
      
      * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Pass `record' to
      cl-struct-define to signal use of record objects.
      
      * lisp/emacs-lisp/cl-preloaded.el (cl--struct-get-class,
      cl-struct-define): Enable legacy defstruct compatibility.
      
      * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-old-struct,
      old-struct): New tests.
      
      * doc/lispref/elisp.texi, doc/lispref/records.texi: Document
      `old-struct-compat'.
      2c68192c
    • Lars Brinkhoff's avatar
      Make the URL library use records. · b6738682
      Lars Brinkhoff authored
      * lisp/url/url.el, lisp/url/url-cache.el, lisp/url/url-dav.el,
      lisp/url/url-expand.el, lisp/url/url-file.el, lisp/url/url-imap.el,
      lisp/url/url-ldap.el: Use `url-p' instead of `vectorp'.
      
      * lisp/url/url-http.el (url-http): Check for type `url' instead of
      `vector'.
      b6738682