1. 23 Sep, 2019 2 commits
    • Stephen Gildea's avatar
      Expand time-stamp unit tests to cover all formatting options · a33cda16
      Stephen Gildea authored
      * time-stamp-tests.el: Expand unit tests to cover all formatting options.
      These tests validate time-stamp-pattern formatting that has existed
      since at least Emacs 22 (released in 2007).  The tests cover both
      documented behavior and behavior implemented to support future migrations.
      
      * time-stamp.el (time-stamp-string): Add a second argument (TIME) to
      open a testing seam.  Have the unit tests call this public function.
      
      * time-stamp.el (time-stamp-string, time-stamp-string-preprocess):
      Remove the second pass through time-string--format.  (Previously both
      functions called it.)  It was used only to handle "%", but this is now
      handled by having time-stamp-string-preprocess not double it.
      Not doubling the "%" in time-stamp-string-preprocess fixes the padding
      of "%2%", which was discovered by the new unit tests to be wrong.
      a33cda16
    • Lars Ingebrigtsen's avatar
      Clarify `debug' doc string · 4eac64fc
      Lars Ingebrigtsen authored
      * lisp/emacs-lisp/debug.el (debug): Mention that inhibit-redisplay
      will inhibit the function.
      4eac64fc
  2. 22 Sep, 2019 17 commits
  3. 21 Sep, 2019 19 commits
    • Stefan Kangas's avatar
      14e7c01f
    • Juri Linkov's avatar
      Support rectangular regions in capitalize-region and capitalize-dwim. · 2879c3ec
      Juri Linkov authored
      * lisp/simple.el (capitalize-dwim): Add arg region-noncontiguous-p
      in capitalize-region call.
      
      * src/casefiddle.c (Fcapitalize_region): Add arg region-noncontiguous-p.
      If non-nil, operate on multiple chunks.  (Bug#37477)
      (Fdowncase_region): Use builtin symbol Qregion_extract_function
      rather than calling intern.
      2879c3ec
    • Eric Abrahamsen's avatar
      Use eieio-object-p, not obsolete object-p · a3421635
      Eric Abrahamsen authored
      Continued fixes for a81223ae
      
      * lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-names,
        gnus-registry-article-marks-to-chars): object-p is obsolete.
      a3421635
    • Stefan Kangas's avatar
      Several doc fixes in package.el · b86bc62c
      Stefan Kangas authored
      * lisp/emacs-lisp/package.el (top-level)
      (package-check-signature, package--from-builtin)
      (package-desc-full-name, package-desc-suffix)
      (package-desc--keywords, package--bi-desc)
      (package-process-define-package, package-archive-base)
      (package-install-from-archive, package-install-from-buffer)
      (package-install-file, package-autoremove, describe-package-1)
      (package-install-button-action, package-delete-button-action)
      (package-keyword-button-action, package-make-button)
      (package--print-email-button, package-list-unversioned)
      (package--emacs-version-list, package-menu-toggle-hiding)
      (package-hidden-regexps, package-menu-hide-package)
      (package-menu-get-status, package-menu--find-upgrades)
      (package-menu--post-refresh): Doc fixes.  (Bug#37410)
      b86bc62c
    • Paul Eggert's avatar
      Revert too-picky file-access tests · d49d6ea9
      Paul Eggert authored
      Problem reported by Andreas Schwab (Bug#37475).
      * doc/lispref/files.texi (Writing to Files)
      (Testing Accessibility, Kinds of Files):
      Document that accessibility and file-type predicates return nil
      if there is trouble determining accessibility or type.
      * etc/NEWS: Adjust, and list the affected primitives.
      * src/callproc.c (init_callproc): Go back to Ffile_exists_p.
      * src/fileio.c (PICKY_EACCES, file_test_errno):
      Remove.  All uses removed.
      (Ffile_name_case_insensitive_p, Ffile_exists_p, Ffile_symlink_p)
      (Ffile_directory_p, Ffile_regular_p): Document that these
      functions return nil if there is trouble.
      (Ffile_name_case_insensitive_p, check_file_access)
      (Ffile_writable_p, Ffile_symlink_p, Ffile_directory_p)
      (Ffile_accessible_directory_p, Ffile_regular_p)
      * src/lread.c (Fload):
      Go back to treating trouble in determining the answer as if the
      file were missing.
      * src/fileio.c (Ffile_newer_than_file_p): Use file_attribute_errno
      not file_test_errno, since returning nil is not appropriate when
      there are two files to test; e.g., in the rare cases where both
      file timestamps have overflowed then neither t nor nil is correct.
      d49d6ea9
    • Eli Zaretskii's avatar
      56213b15
    • Noam Postavsky's avatar
      Remove lisp/erc/ file-local indent-tabs-mode settings · 2f354436
      Noam Postavsky authored
      * lisp/erc/erc-autoaway.el:
      * lisp/erc/erc-backend.el:
      * lisp/erc/erc-button.el:
      * lisp/erc/erc-compat.el:
      * lisp/erc/erc-dcc.el:
      * lisp/erc/erc-fill.el:
      * lisp/erc/erc-ibuffer.el:
      * lisp/erc/erc-identd.el:
      * lisp/erc/erc-imenu.el:
      * lisp/erc/erc-join.el:
      * lisp/erc/erc-list.el:
      * lisp/erc/erc-log.el:
      * lisp/erc/erc-match.el:
      * lisp/erc/erc-menu.el:
      * lisp/erc/erc-netsplit.el:
      * lisp/erc/erc-networks.el:
      * lisp/erc/erc-notify.el:
      * lisp/erc/erc-page.el:
      * lisp/erc/erc-pcomplete.el:
      * lisp/erc/erc-replace.el:
      * lisp/erc/erc-ring.el:
      * lisp/erc/erc-services.el:
      * lisp/erc/erc-sound.el:
      * lisp/erc/erc-speedbar.el:
      * lisp/erc/erc-stamp.el:
      * lisp/erc/erc-track.el:
      * lisp/erc/erc-truncate.el:
      * lisp/erc/erc-xdcc.el:
      * lisp/erc/erc.el: Remove indent-tabs-mode setting, so that we follow
      Emacs' global indent-tabs-mode=nil setting (and much of the
      indentation in these fails is already spaces anyway).  Also remove
      tab-width=8 settings, since those are redundant with the setting in
      the top-level .dir-locals.el.
      2f354436
    • Lars Ingebrigtsen's avatar
      Fix some commentary typos in exif.el · b5afd295
      Lars Ingebrigtsen authored
      * lisp/image/exif.el (exif--parse-exif-chunk)
      (exif--parse-directory): Commentary typo fixes.
      b5afd295
    • Lars Ingebrigtsen's avatar
      Add an Exif parsing library · 535b6587
      Lars Ingebrigtsen authored
      * lisp/image/exif.el: New file (bug#23070).
      
      * test/lisp/image/exif-tests.el: Add some basic tests.
      535b6587
    • Alan Mackenzie's avatar
      CC Mode: Fix wrong fontification of FOO in ASSERT (FOO && !BAR) · 56985dd8
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't recognize the
      construct in CASE 18, unless additionally at-decl-end is set.
      56985dd8
    • Lars Ingebrigtsen's avatar
      Fix two ` characters in NEWS · e9724b55
      Lars Ingebrigtsen authored
      e9724b55
    • Lars Ingebrigtsen's avatar
      Hide passwords in .authinfo and .netrc files · 893111f4
      Lars Ingebrigtsen authored
      * lisp/auth-source.el (authinfo-mode): New mode (bug#28785).
      (authinfo--hide-passwords, authinfo--toggle-display): New functions.
      
      * lisp/files.el (auto-mode-alist): Use authinfo-mode for .authinfo
      and .netrc files.
      893111f4
    • Lars Ingebrigtsen's avatar
      Allow reveal.el to toggle `display' properties · 2c7224f8
      Lars Ingebrigtsen authored
      * lisp/reveal.el (reveal-open-new-overlays): Allow also toggling
      `displa' overlay properties (bug#28785).
      2c7224f8
    • Eli Zaretskii's avatar
      ; * etc/TODO: Update. · 8147d939
      Eli Zaretskii authored
      8147d939
    • Lars Ingebrigtsen's avatar
      Mention image caching in the `image-size' doc string · c61bfe0a
      Lars Ingebrigtsen authored
      * src/image.c (Fimage_size): Mention that this function caches
      images, and what to do about that (bug#33275).
      c61bfe0a
    • Lars Ingebrigtsen's avatar
      Mention how to listen to all interfaces in make-network-process · 32117543
      Lars Ingebrigtsen authored
      * src/process.c (Fmake_network_process): Mention how to listen to
      all interfaces (bug#34617).
      32117543
    • Michael Albinus's avatar
    • Eli Zaretskii's avatar
      0dd4b87e
    • Eric Abrahamsen's avatar
      Fix to a81223ae · 87b7c069
      Eric Abrahamsen authored
      * lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-chars):
        (gnus-registry-article-marks-to-names): The registry is an object,
        not a hash table.
      87b7c069
  4. 20 Sep, 2019 2 commits
    • Lars Ingebrigtsen's avatar
      Allow the user to specify Content-type in Message mode · 7828001a
      Lars Ingebrigtsen authored
      * lisp/gnus/message.el (message-encode-message-body): Pass in the
      content type if the user has given one.
      
      * lisp/gnus/mml.el (mml-parse-1): Remove bogus peek at
      Content-type (there are no headers here)  (bug#36527).
      
      * lisp/gnus/mml.el (mml-generate-mime): Respect that.
      7828001a
    • Lars Ingebrigtsen's avatar
      Move describe-face to the new help-fns machinery · c56fabdf
      Lars Ingebrigtsen authored
      * lisp/help-fns.el (describe-face): Move to here from faces.el and
      split up (bug#36670).
      (help-fns--face-custom-version-info):
      (help-fns--face-attributes): Factored out into own functions.
      (help-fns-describe-face-functions): New variable.
      
      * lisp/emacs-lisp/subr-x.el (when-let): Add autoload cookie.
      c56fabdf