1. 21 Feb, 2019 3 commits
    • Stefan Monnier's avatar
      * lisp/vc/diff-mode.el: Reduce redundancy in diff-syntax-fontify code · 3432f554
      Stefan Monnier authored
      (diff--iterate-hunks): New function extracted from diff--font-lock-refined.
      (diff--font-lock-refined, diff--font-lock-syntax): Use it.
      (diff--overlay-auto-delete): Rename from diff--font-lock-refine--refresh.
      (diff--font-lock-syntax--refresh): Delete.
      (diff-syntax-fontify-hunk): Don't completely silence errors.
      (diff-syntax-fontify-props): Remove `no-init` arg, testing if `file` is
      nil instead.  Adjust all callers.
      (diff-syntax-fontify-props): Remove redundant code since we don't
      modify the buffer.
      3432f554
    • Mattias Engdegård's avatar
      Replace 8-bit-specific case-manipulation · fc78519b
      Mattias Engdegård authored
      * lisp/completion.el (cmpl-coerce-string-case):
      Rewrite case-changing code written for ASCII or latin-1 but not valid
      in generally today.
      fc78519b
    • Michael R. Mauger's avatar
      Correct implementation of `sql-set-product-feature' (Bug#30494). · c124d532
      Michael R. Mauger authored
      * lisp.progmodes/sql.el (sql-add-product): Correct argument spec.
      (sql-set-product-feature): Handle all cases as intended.
      (sql-get-product-feature): Fetch varaiable value by `eval'.
      * test/lisp/progmodes/sql-tests.el (sql-test-feature-value-[a-d]):
      New test variables.
      (sql-test-product-feature-harness): New test macro.
      (sql-test-add-product, sql-test-add-existing-product)
      (sql-test-set-feature, sql-test-set-indirect-feature)
      (sql-test-set-existing-feature)
      (sql-test-set-existing-indirect-feature)
      (sql-test-set-missing-product, sql-test-get-feature)
      (sql-test-get-indirect-feature, sql-test-get-missing-product)
      (sql-test-get-missing-feature)
      (sql-test-get-missing-indirect-feature): New ERT tests
      c124d532
  2. 20 Feb, 2019 6 commits
  3. 19 Feb, 2019 9 commits
    • Glenn Morris's avatar
    • Charles A. Roelli's avatar
      Simplify easy-mmode-define-navigation · 9f7212ad
      Charles A. Roelli authored
      * lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      Simplify a one-argument call to "or" and use buffer-narrowed-p instead
      of checking that condition by hand.
      9f7212ad
    • Michael Albinus's avatar
      Implement access-file in Tramp · 0a6c4479
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist)
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
      Add `access-file'.
      
      * lisp/net/tramp-archive.el (tramp-archive-handle-access-file):
      * lisp/net/tramp.el (tramp-handle-access-file): New defun.
      (tramp-condition-case-unless-debug): Add declaration.
      (tramp-handle-insert-directory):
      * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
      * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
      Check, whether directory is accessible.
      
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test17-insert-directory)
      (tramp-archive-test18-file-attributes):
      * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory)
      (tramp-test18-file-attributes): Test error cases.
      0a6c4479
    • João Távora's avatar
      cycle-sort-function prevails in completion-all-sorted-completions · e8b6cc9a
      João Távora authored
      * lisp/minibuffer.el (completion-all-sorted-completions): If
      completion table has cycle-sort-function, that prevails over other
      sorting strategies.
      e8b6cc9a
    • Michael R. Mauger's avatar
      * lisp/progmodes/sql.el: Added password wallet using · 1a6bcc91
      Michael R. Mauger authored
      `auth-source' package.
      (sql-auth-source-search-wallet): New function.
      (sql-password-wallet): New variable.
      (sql-password-search-wallet-function): New variable.
      (sql-get-login): Handle password wallet search.
      (sql-product-interactive): Handle password function.
      * test/lisp/progmodes/sql-test.el: Test wallet changes.
      (sql-test-login-params): New test variable.
      (with-sql-test-connect-harness): New macro to wrap test
      configuration around calls to `sql-connect'.
      (sql-test-connect, sql-test-connect-password-func)
      (sql-test-connect-wallet-server-database)
      (sql-test-connect-wallet-database)
      (sql-test-connect-wallet-server): New ERT tests.
      * etc/NEWS: Updated SQL Mode descriptions.
      1a6bcc91
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      a755dc13
    • Michael R. Mauger's avatar
      * lisp/progmodes/sql.el defensive programming · ed1e805a
      Michael R. Mauger authored
      (sql-statement-regexp): if 'ansi' dialect is not defined, use "select"
      (sql-interactive-mode): establish process sentinel iff there is a
      process. Default values for :prompt-regexp and :prompt-length.
      (sql-product-interactive): only check process status iff there is a
      process.
      ed1e805a
    • Stefan Monnier's avatar
      * lisp/elec-pair.el: Do modify+undo more carefully · e66d5a1c
      Stefan Monnier authored
      (electric-pair-inhibit-if-helps-balance): Use the undo system
      instead of undoing by hand.
      e66d5a1c
  4. 18 Feb, 2019 8 commits
  5. 17 Feb, 2019 2 commits
    • Juri Linkov's avatar
      * lisp/tar-mode.el (tar--try-jka-compr): Remove. (Bug#34251) · 4f24b4a6
      Juri Linkov authored
      (tar-extract): Call archive-try-jka-compr instead of tar--try-jka-compr.
      
      * lisp/arc-mode.el (archive-try-jka-compr): Call set-buffer-multibyte
      after erase-buffer.
      4f24b4a6
    • Alan Mackenzie's avatar
      Fontify C function identifiers in parentheses correctly (e.g. in lisp.h) · adeea448
      Alan Mackenzie authored
      Fix handling of CC Mode's syntactic WS cache.  Make noise-macro option
      variables buffer local.
      
      * lisp/progmodes/cc-engine.el (c-put-is-sws, c-put-in-sws, c-remove-is-sws)
      (c-remove-in-sws c-remove-is-and-in-sws): Add edebug specs.
      (c-invalidate-sws-region-before): Add a `beg' parameter.  Handle noise
      macros like other literals.
      (c-invalidate-sws-region-after-del): Move the adjustment of (cdr
      c-sws-lit-limits) due to buffer change to c-invalidate-sws-region-after.
      (c-invalidate-sws-region-after-ins): Move (goto-char end) to the correct
      place.
      (c-invalidate-sws-region-after): Adjust (cdr c-sws-lit-limits) due to buffer
      change.  Handle noise macros.
      (c-backward-sws): Set simple-ws-beg appropriately when the start point is in
      the middle of a noise macro.
      (c-forward-decl-or-cast-1): Recognize a function identifier being declared in
      parentheses.
      
      * lisp/promodes/cc-mode.el (c-before-change): Supply a `beg' argument to
      c-invalidate-sws-region-before.
      
      * lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re)
      (c-noise-macro-name-re, c-noise-macro-names, c-noise-macro-with-parens-names):
      Make these buffer local variables.
      adeea448
  6. 16 Feb, 2019 8 commits
    • Paul Eggert's avatar
      Update citations of Internet RFCs · b5e66f46
      Paul Eggert authored
      For example, RFC 822 has been obsoleted by RFC 2822, which in
      turn has been obsoleted by RFC 5322.
      * doc/emacs/ack.texi, doc/lispref/os.texi:
      * doc/misc/emacs-mime.texi, doc/misc/gnus-coding.texi:
      * doc/misc/gnus.texi, doc/misc/sc.texi:
      * lisp/calendar/parse-time.el, lisp/gnus/gnus-cite.el:
      * lisp/gnus/gnus-util.el, lisp/gnus/message.el:
      * lisp/gnus/mm-bodies.el, lisp/gnus/nnrss.el:
      * lisp/mail/feedmail.el, lisp/mail/ietf-drums.el:
      * lisp/mail/mail-extr.el, lisp/mail/mail-utils.el:
      * lisp/mail/mailclient.el, lisp/mail/mailheader.el:
      * lisp/mail/rfc2047.el, lisp/mail/rfc822.el, lisp/mail/rmail.el:
      * lisp/mail/sendmail.el, lisp/mail/smtpmail.el:
      * lisp/mail/supercite.el, lisp/mh-e/mh-e.el:
      * lisp/mh-e/mh-utils.el, lisp/net/imap.el:
      * lisp/net/newst-backend.el, lisp/org/org-id.el:
      * lisp/ps-samp.el, lisp/simple.el, lisp/url/url-util.el:
      Update RFC citations.
      b5e66f46
    • Eli Zaretskii's avatar
    • Stefan Monnier's avatar
      * lisp/startup.el: Rename load-user-init-file · 6b7b85b6
      Stefan Monnier authored
      Remove redundant :groups.
      (startup--load-user-init-file): Rename from load-user-init-file.
      6b7b85b6
    • Mattias Engdegård's avatar
      Prevent over-eager rx character range condensation · 478bbf7c
      Mattias Engdegård authored
      `rx' incorrectly considers character ranges between ASCII and raw bytes to
      cover all codes in-between, which includes all non-ASCII Unicode chars.
      This causes (any "\000-\377" ?Å) to be simplified to (any "\000-\377"),
      which is not at all the same thing: [\000-\377] really means
      [\000-\177\200-\377] (Bug#34492).
      
      * lisp/emacs-lisp/rx.el (rx-any-condense-range): Split ranges going
      from ASCII to raw bytes.
      * test/lisp/emacs-lisp/rx-tests.el (rx-char-any-raw-byte): Add test case.
      * etc/NEWS: Mention the overall change (Bug#33205).
      478bbf7c
    • Eli Zaretskii's avatar
      Fix handling of manpage references divided by hyphenation · 57ece2a0
      Eli Zaretskii authored
      * lisp/man.el (Man-reference-regexp): Accept a newline as part
      of a manpage name only if it's preceded by a hyphen.  (Bug#34286)
      (Man-translate-references): Adapt to change in
      'Man-reference-regexp'.
      (Man-default-man-entry): Support references divided between
      two lines by an ASCII hyphen.  This is a left-over from fixing
      bug#6289.
      57ece2a0
    • Paul Eggert's avatar
      Port tramp-adb to various 'touch' platforms · aff0c585
      Paul Eggert authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times):
      Try nanoseconds first, then plain seconds, then touch -t.
      aff0c585
    • Eli Zaretskii's avatar
      Fix 'early-init-file' value when file is missing · 3d9a56f0
      Eli Zaretskii authored
      * lisp/startup.el (command-line): Pass 'early-init.el', with
      an explicit .el extension, to load-user-init-file.
      Reported by Radon Rosborough <radon.neon@gmail.com> in
      http://lists.gnu.org/archive/html/emacs-devel/2019-01/msg00314.html.
      3d9a56f0
    • Stefan Monnier's avatar
  7. 15 Feb, 2019 4 commits