1. 28 Sep, 2018 7 commits
  2. 27 Sep, 2018 3 commits
    • Noam Postavsky's avatar
      7f5086da
    • Eli Zaretskii's avatar
      Fix typos in documentation · d309994a
      Eli Zaretskii authored
      * doc/misc/vhdl-mode.texi (Custom Indentation Functions):
      * doc/misc/url.texi (Customization):
      * doc/misc/tramp.texi (Overview):
      * doc/misc/srecode.texi (Developing Template Functions):
      * doc/misc/sieve.texi (Sieve Mode):
      * doc/misc/reftex.texi (Options - Creating Citations):
      * doc/misc/org.texi (Cooperation, Conflicts):
      * doc/misc/gnus.texi (Misc Group Stuff):
      * doc/misc/eshell.texi (Bugs and ideas):
      * doc/misc/calc.texi (Summary):
      * doc/man/emacsclient.1:
      * doc/lispref/os.texi (Security Considerations):
      * doc/lispref/control.texi (pcase Macro):
      * CONTRIBUTE: Fix typos.  Reported by Mak Kolybabi
      <mak@kolybabi.com>  (Bug#32853)
      d309994a
    • Juri Linkov's avatar
  3. 26 Sep, 2018 2 commits
  4. 25 Sep, 2018 4 commits
    • Juri Linkov's avatar
    • Charles A. Roelli's avatar
      ; Spellcheck two more documentation strings · 25cdd65c
      Charles A. Roelli authored
      * lisp/files.el (hack-local-variables):
      * src/keymap.c (Ftext_char_description): Spellcheck documentation.
      25cdd65c
    • Charles A. Roelli's avatar
    • Paul Eggert's avatar
      Remove some assumptions about timestamp format · d0c77a18
      Paul Eggert authored
      These changes remove some assumptions of Lisp code on timestamp
      format.  Although we’re not going to change the default format any
      time soon, I went looking for code that was too intimate about
      details of timestamp format and removed assumptions where this was
      easy to do with current Emacs primitives.
      * lisp/ido.el (ido-wash-history):
      Fix test for zero timestamp.
      * lisp/time.el (display-time-event-handler):
      Use time-less-p rather than doing it by hand.
      (display-time-update): Simplify by using float-time
      instead of doing the equivalent by hand.
      * lisp/url/url-auth.el (url-digest-auth-make-cnonce):
      * test/lisp/calendar/parse-time-tests.el (parse-time-tests):
      * test/lisp/emacs-lisp/timer-tests.el (timer-test-multiple-of-time):
      * test/lisp/net/tramp-tests.el:
      (tramp-test19-directory-files-and-attributes)
      (tramp-test22-file-times, tramp-test23-visited-file-modtime):
      Don’t assume detailed format of returned Lisp timestamps.
      d0c77a18
  5. 24 Sep, 2018 5 commits
    • Juri Linkov's avatar
      Output alists with dotted pair notation in .dir-locals.el · 19ab7686
      Juri Linkov authored
      * lisp/files-x.el (add-dir-local-variables-to-string): New function.
      (modify-dir-local-variable): Use it.  (Bug#32817)
      19ab7686
    • Stefan Monnier's avatar
      * doc/emacs/kmacro.texi (Basic Keyboard Macro): Mention old bindings · dc7fdee0
      Stefan Monnier authored
      According to Apple gospel, function keys are partly going the way of the dodo
      so F3/F4 can, like in the good old days, be hard to reach for some users.
      dc7fdee0
    • Paul Eggert's avatar
      Fix ‘make clean’ with a file named ‘-.o’ · 36243179
      Paul Eggert authored
      Problem reported by T.V Raman in:
      https://lists.gnu.org/r/emacs-devel/2018-09/msg00866.html
      * Makefile.in (clean, extraclean):
      * doc/emacs/Makefile.in (mostlyclean):
      * doc/lispintro/Makefile.in (mostlyclean):
      * doc/lispref/Makefile.in (mostlyclean):
      * doc/misc/Makefile.in (mostlyclean, clean):
      * etc/refcards/Makefile (clean):
      * lib-src/Makefile.in (mostlyclean, extraclean):
      * lib/Makefile.in (clean):
      * lwlib/Makefile.in (clean mostlyclean):
      * oldXMenu/Makefile.in (clean mostlyclean):
      * src/Makefile.in (mostlyclean, extraclean):
      * test/Makefile.in (mostlyclean):
      Say ‘rm ./*.o’ instead of ‘rm *.o’ to avoid undesirable failure
      when a file name begins with ‘-’.
      36243179
    • Eli Zaretskii's avatar
      Improve docs of functions/variables related to 'display-buffer' · 17766a14
      Eli Zaretskii authored
      * lisp/window.el (display-buffer, pop-to-buffer-same-window)
      (display-buffer-same-window, display-buffer-in-side-window)
      (same-window-p, display-buffer-overriding-action)
      (display-buffer-base-action)
      (display-buffer--same-window-action)
      (display-buffer--other-frame-action)
      (with-current-buffer-window, with-displayed-buffer-window)
      (display-buffer-alist, display-buffer-assq-regexp)
      (display-buffer-other-frame): Clarify and improve the doc
      strings.  (Bug#32798)
      17766a14
    • Paul Eggert's avatar
      file-attributes cleanup · 662bee7d
      Paul Eggert authored
      Mostly, this replaces magic-number calls like (nth 4 A) with
      more-informative calls like (file-attribute-access-time A).
      It also fixes some documentation and minor timestamp coding
      issues that I noticed while looking into this.
      * doc/lispref/files.texi (File Attributes):
      * lisp/files.el (file-attribute-size)
      (file-attribute-inode-number, file-attribute-device-number):
      * src/dired.c (Fdirectory_files_and_attributes)
      (Ffile_attributes):
      Mention which attributes must be integers, or nonnegative integers,
      as opposed to merely being numbers.  Remove no-longer-correct
      talk about representing large integers as conses of integers.
      * doc/lispref/files.texi (Magic File Names):
      * doc/misc/gnus.texi (Low-level interface to the spam-stat dictionary):
      * lisp/autorevert.el (auto-revert-find-file-function)
      (auto-revert-tail-mode, auto-revert-handler):
      * lisp/auth-source.el (auth-source-netrc-parse):
      * lisp/cedet/ede/files.el (ede--inode-for-dir):
      * lisp/cedet/semantic/db-file.el (object-write):
      * lisp/cedet/semantic/db-mode.el (semanticdb-kill-hook):
      * lisp/cedet/semantic/db.el (semanticdb-needs-refresh-p)
      (semanticdb-synchronize):
      * lisp/cedet/srecode/table.el (srecode-mode-table-new):
      * lisp/desktop.el (desktop-save, desktop-read):
      * lisp/dired-aux.el (dired-file-set-difference)
      (dired-do-chxxx, dired-do-chmod, dired-copy-file-recursive)
      (dired-create-files):
      * lisp/dired.el (dired-directory-changed-p, dired-readin):
      * lisp/dos-w32.el (w32-direct-print-region-helper):
      * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads)
      (autoload-find-destination, update-directory-autoloads):
      * lisp/emacs-lisp/shadow.el (load-path-shadows-same-file-or-nonexistent):
      * lisp/epg.el (epg--start, epg-wait-for-completion):
      * lisp/eshell/em-ls.el (eshell-ls-filetype-p)
      (eshell-ls-applicable, eshell-ls-size-string)
      (eshell-ls-file, eshell-ls-dir, eshell-ls-files)
      (eshell-ls-entries):
      * lisp/eshell/em-pred.el (eshell-predicate-alist)
      (eshell-pred-file-type, eshell-pred-file-links)
      (eshell-pred-file-size):
      * lisp/eshell/em-unix.el (eshell-shuffle-files, eshell/cat)
      (eshell-du-sum-directory, eshell/du):
      * lisp/eshell/esh-util.el (eshell-read-passwd)
      (eshell-read-hosts):
      * lisp/files.el (remote-file-name-inhibit-cache)
      (find-file-noselect, insert-file-1, dir-locals-find-file)
      (dir-locals-read-from-dir, backup-buffer)
      (file-ownership-preserved-p, copy-directory)
      (read-file-modes):
      * lisp/find-lisp.el (find-lisp-format):
      * lisp/gnus/gnus-agent.el (gnus-agent-unfetch-articles)
      (gnus-agent-read-agentview, gnus-agent-expire-group-1)
      (gnus-agent-request-article, gnus-agent-regenerate-group)
      (gnus-agent-update-files-total-fetched-for)
      (gnus-agent-update-view-total-fetched-for):
      * lisp/gnus/gnus-cache.el (gnus-cache-read-active)
      (gnus-cache-update-file-total-fetched-for)
      (gnus-cache-update-overview-total-fetched-for):
      * lisp/gnus/gnus-cloud.el (gnus-cloud-file-new-p):
      * lisp/gnus/gnus-score.el (gnus-score-score-files):
      * lisp/gnus/gnus-start.el (gnus-save-newsrc-file)
      (gnus-master-read-slave-newsrc):
      * lisp/gnus/gnus-sum.el (gnus-summary-import-article):
      * lisp/gnus/gnus-util.el (gnus-file-newer-than)
      (gnus-cache-file-contents):
      * lisp/gnus/mail-source.el (mail-source-delete-old-incoming)
      (mail-source-callback, mail-source-movemail):
      * lisp/gnus/nneething.el (nneething-create-mapping)
      (nneething-make-head):
      * lisp/gnus/nnfolder.el (nnfolder-read-folder):
      * lisp/gnus/nnheader.el (nnheader-file-size)
      (nnheader-insert-nov-file):
      * lisp/gnus/nnmail.el (nnmail-activate):
      * lisp/gnus/nnmaildir.el (nnmaildir--group-maxnum)
      (nnmaildir--new-number, nnmaildir--update-nov)
      (nnmaildir--scan, nnmaildir-request-scan)
      (nnmaildir-request-update-info)
      (nnmaildir-request-expire-articles):
      * lisp/gnus/nnmh.el (nnmh-request-list-1)
      (nnmh-request-expire-articles, nnmh-update-gnus-unreads):
      * lisp/gnus/nnml.el (nnml-request-expire-articles):
      * lisp/gnus/spam-stat.el (spam-stat-save, spam-stat-load)
      (spam-stat-process-directory, spam-stat-test-directory):
      * lisp/ido.el (ido-directory-too-big-p)
      (ido-file-name-all-completions):
      * lisp/image-dired.el (image-dired-get-thumbnail-image)
      (image-dired-create-thumb-1):
      * lisp/info.el (info-insert-file-contents):
      * lisp/ls-lisp.el (ls-lisp-insert-directory)
      (ls-lisp-handle-switches, ls-lisp-classify-file)
      (ls-lisp-format):
      * lisp/mail/blessmail.el:
      * lisp/mail/feedmail.el (feedmail-default-date-generator)
      (feedmail-default-message-id-generator):
      * lisp/mail/mailabbrev.el (mail-abbrevs-sync-aliases)
      (mail-abbrevs-setup):
      * lisp/mail/mspools.el (mspools-size-folder):
      * lisp/mail/rmail.el (rmail-insert-inbox-text):
      * lisp/mail/sendmail.el (sendmail-sync-aliases):
      * lisp/mh-e/mh-alias.el (mh-alias-tstamp):
      * lisp/net/ange-ftp.el (ange-ftp-parse-netrc)
      (ange-ftp-write-region, ange-ftp-file-newer-than-file-p)
      (ange-ftp-cf1):
      * lisp/net/eudcb-mab.el (eudc-mab-query-internal):
      * lisp/net/eww.el (eww-read-bookmarks):
      * lisp/net/netrc.el (netrc-parse):
      * lisp/net/newst-backend.el (newsticker--image-get):
      * lisp/nxml/rng-loc.el (rng-get-parsed-schema-locating-file):
      * lisp/obsolete/fast-lock.el (fast-lock-save-cache):
      * lisp/obsolete/vc-arch.el (vc-arch-state)
      (vc-arch-diff3-rej-p):
      * lisp/org/ob-eval.el (org-babel--shell-command-on-region):
      * lisp/org/org-attach.el (org-attach-commit):
      * lisp/org/org-macro.el (org-macro-initialize-templates):
      * lisp/org/org.el (org-babel-load-file)
      (org-file-newer-than-p):
      * lisp/org/ox-html.el (org-html-format-spec):
      * lisp/org/ox-publish.el (org-publish-find-date)
      (org-publish-cache-ctime-of-src):
      * lisp/pcmpl-gnu.el (pcomplete/tar):
      * lisp/pcmpl-rpm.el (pcmpl-rpm-packages):
      * lisp/play/cookie1.el (cookie-snarf):
      * lisp/progmodes/cmacexp.el (c-macro-expansion):
      * lisp/ps-bdf.el (bdf-file-mod-time):
      * lisp/server.el (server-ensure-safe-dir):
      * lisp/simple.el (shell-command-on-region):
      * lisp/speedbar.el (speedbar-item-info-file-helper)
      (speedbar-check-obj-this-line):
      * lisp/thumbs.el (thumbs-cleanup-thumbsdir):
      * lisp/time.el (display-time-mail-check-directory)
      (display-time-file-nonempty-p):
      * lisp/url/url-cache.el (url-is-cached):
      * lisp/url/url-file.el (url-file-asynch-callback):
      * lisp/vc/diff-mode.el (diff-delete-if-empty):
      * lisp/vc/pcvs-info.el (cvs-fileinfo-from-entries):
      * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic):
      * lisp/vc/vc-cvs.el (vc-cvs-checkout-model)
      (vc-cvs-state-heuristic, vc-cvs-merge-news)
      (vc-cvs-retrieve-tag, vc-cvs-parse-status, vc-cvs-parse-entry):
      * lisp/vc/vc-hg.el (vc-hg--slurp-hgignore-1)
      (vc-hg--ignore-patterns-valid-p)
      (vc-hg--cached-dirstate-search, vc-hg-state-fast):
      * lisp/vc/vc-hooks.el (vc-after-save):
      * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer):
      * lisp/vc/vc-svn.el (vc-svn-merge-news, vc-svn-parse-status):
      * lisp/vc/vc.el (vc-checkout, vc-checkin, vc-revert-file):
      * lisp/xdg.el (xdg-mime-apps):
      Prefer (file-attribute-size A) to (nth 7 A), and similarly
      for other file attributes accessors.
      * doc/lispref/files.texi (File Attributes):
      * doc/lispref/intro.texi (Version Info):
      * doc/lispref/os.texi (Idle Timers):
      * lisp/erc/erc.el (erc-string-to-emacs-time):
      * lisp/files.el (file-attribute-access-time)
      (file-attribute-modification-time)
      (file-attribute-status-change-time):
      * lisp/net/tramp-compat.el:
      (tramp-compat-file-attribute-modification-time)
      (tramp-compat-file-attribute-size):
      * src/buffer.c (syms_of_buffer):
      * src/editfns.c (Fget_internal_run_time):
      * src/fileio.c (Fvisited_file_modtime)
      (Fset_visited_file_modtime):
      * src/keyboard.c (Fcurrent_idle_time):
      * src/process.c (Fprocess_attributes):
      Defer implementation details about timestamp format to the
      section that talks about timestamp format, to make it easier
      to change the documentation later if timestamp formats are
      extended.
      * lisp/gnus/gnus-util.el (gnus-file-newer-than):
      * lisp/speedbar.el (speedbar-check-obj-this-line):
      * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer):
      Prefer time-less-p to doing it by hand.
      * lisp/ls-lisp.el (ls-lisp-format): Inode numbers are no longer conses.
      * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic):
      Use eql, not eq, to compare integers that might be bignums.
      * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src):
      Prefer float-time to doing time arithmetic by hand.
      662bee7d
  6. 23 Sep, 2018 1 commit
  7. 22 Sep, 2018 9 commits
    • Stefan Monnier's avatar
      75386e30
    • Stefan Monnier's avatar
    • Paul Eggert's avatar
      Round bignums consistently with other integers · 0b36041d
      Paul Eggert authored
      * src/bignum.c (mpz_bufsize): New function.
      (bignum_bufsize): Use it.
      (mpz_get_d_rounded): New function.
      (bignum_to_double): Use it.
      * src/bignum.c (bignum_to_double):
      * src/data.c (bignum_arith_driver):
      When converting bignums to double, round instead of
      truncating, to be consistent with what happens with fixnums.
      * test/src/floatfns-tests.el (bignum-to-float): Test rounding.
      0b36041d
    • Stefan Monnier's avatar
      Complement to last commit · 596ccc08
      Stefan Monnier authored
      596ccc08
    • Stefan Monnier's avatar
      * lisp/multifile.el: New file, extracted from etags.el · 55ec674f
      Stefan Monnier authored
      The main motivation for this change was the introduction of
      project-query-replace.  dired's multi-file query&replace was implemented
      on top of etags.el even though it did not use TAGS in any way, so I moved
      this generic multifile code into its own package, with a nicer interface,
      and then used that in project.el.
      
      * lisp/progmodes/project.el (project-files): New generic function.
      (project-search, project-query-replace): New commands.
      
      * lisp/dired-aux.el (dired-do-search, dired-do-query-replace-regexp):
      Use multifile.el instead of etags.el.
      
      * lisp/progmodes/etags.el: Remove redundant :groups.
      (next-file-list): Remove var.
      (tags-loop-revert-buffers): Make it an obsolete alias.
      (next-file): Don't autoload (it can't do anything useful before some
      other etags.el function setup the multifile operation).
      (tags--all-files): New function, extracted from next-file.
      (tags-next-file): Rename from next-file.
      Rewrite using tags--all-files and multifile-next-file.
      (next-file): Keep it as an obsolete alias.
      (tags-loop-operate, tags-loop-scan): Mark as obsolete.
      (tags--compat-files, tags--compat-initialize): New function.
      (tags-loop-continue): Rewrite using multifile-continue.  Mark as obsolete.
      (tags--last-search-operate-function): New var.
      (tags-search, tags-query-replace): Rewrite using multifile.el.
      
      * lisp/emacs-lisp/generator.el (iter-end-of-sequence): Use 'define-error'.
      (iter-make): New macro.
      (iter-empty): New iterator.
      
      * lisp/menu-bar.el (menu-bar-search-menu, menu-bar-replace-menu):
      tags-loop-continue -> multifile-continue.
      55ec674f
    • Eli Zaretskii's avatar
      Improve documentation of directory-local variables · 8b8a4c0a
      Eli Zaretskii authored
      * lisp/files.el (hack-local-variables, normal-mode)
      (after-find-file, find-file-hook): Mention directory-local
      variables in the doc strings.  Suggested by Marcin Borkowski
      <mbork@mbork.pl>.
      
      * doc/emacs/custom.texi (File Variables, Directory Variables):
      Clarify that directory-local variables are overridden by
      file-local ones.
      8b8a4c0a
    • Eli Zaretskii's avatar
      Don't use obsolete variable 'save-place' in documentation · c9c9756d
      Eli Zaretskii authored
      * doc/lispref/customize.texi (Variable Definitions): Replace
      example of saveplace defcustom with a fictitious one, which
      will not bit-rot with time.  (Bug#32741)
      c9c9756d
    • Mark A. Hershberger's avatar
      Use save-place-mode instead of save-place · ca208e83
      Mark A. Hershberger authored
      * lisp/menu-bar.el (menu-bar-options-save, menu-bar-options-menu):
      * lisp/saveplace.el (save-place-to-alist, save-places-to-alist)
      (save-place-find-file-hook, save-place-dired-hook): Use
      save-place-mode instead of the obsolete save-place.
      ca208e83
    • Paul Eggert's avatar
      Fix (+ bignum float) bug · 3727bc7d
      Paul Eggert authored
      * src/data.c (bignum_arith_driver): Fix typo: missing ‘return’.
      * test/src/data-tests.el (data-tests-bignum): Test for the typo.
      3727bc7d
  8. 21 Sep, 2018 5 commits
    • Paul Eggert's avatar
      Fix ambiguity in nil DST flag · 0bec0644
      Paul Eggert authored
      Formerly nil meant both that DST was not in effect and that
      the DST flag was unknown, and different functions interpreted
      the flag differently.  Now the meaning is consistently nil for
      DST not in effect, and -1 for DST flag not known.
      * doc/lispref/os.texi (Time Conversion): The DST slot is
      now three-valued, not two-.
      * doc/misc/emacs-mime.texi (time-date): Adjust to new behavior.
      * etc/NEWS: Mention this.
      * lisp/calendar/parse-time.el (parse-time-string):
      * src/editfns.c (Fdecode_time):
      Return -1 for unknown DST flag.
      * test/lisp/calendar/parse-time-tests.el (parse-time-tests):
      Adjust tests to match new behavior, and add a new
      test for nil vs -1.
      0bec0644
    • Philipp Stephani's avatar
      Avoid an overflow error in emacs-module.c · 167274d4
      Philipp Stephani authored
      * src/emacs-module.c (Fmodule_load): Allow creating a bignum
      to avoid overflow error
      167274d4
    • Philipp Stephani's avatar
      Use new function overflow_error in a few places · ee3be3fd
      Philipp Stephani authored
      * src/emacs-module.c (module_make_global_ref, module_funcall)
      (module_make_string, Fmodule_load):
      * src/json.c (json_to_lisp): Use overflow_error.
      ee3be3fd
    • Philipp Stephani's avatar
      Support bignums when serializing JSON · 9f10e1a0
      Philipp Stephani authored
      * src/json.c (lisp_to_json): Support bignums.
      * test/src/json-tests.el (json-serialize/bignum): New test.
      9f10e1a0
    • Paul Eggert's avatar
      Bindat examples in source, not manual · 7f3877e8
      Paul Eggert authored
      * doc/lispref/processes.texi (Bindat Examples): Remove, fixing
      a FIXME in the manual.  The long example had bitrotted to some
      extent, compared to the more-up-to-date example in bindat.el
      commentary, which apparently what people were referring to
      anyway.  The short example was confusing and not that useful
      and will be obsolescent anyway if we change timestamp format.
      7f3877e8
  9. 20 Sep, 2018 4 commits
    • Tino Calancha's avatar
      Fix a previous commit · d6f3c2cf
      Tino Calancha authored
      Suggested by Stefan Monnier here:
      https://lists.gnu.org/archive/html/emacs-devel/2018-09/msg00783.html
      * lisp/replace.el (occur--parse-occur-buffer): Since point is at the
      beginning of the buffer, use `point'.
      
      (occur-revert-function): Prefer `pcase-let' and `point-min'.
      Check whether `region-start' or `region-end' are non-nil.
      d6f3c2cf
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 44c1ce3a
      Glenn Morris authored
      d28d54c7 (origin/emacs-26) More accurate docs for 'text-char-description'
      b3baf997 Document synchronous behavior of eshell/make (Bug#32513)
      98544ea3 Fix bs-show with wide characters (Bug#17822)
      85af51ba Improve Custom menu labels for 2 options
      72a2a366 Improve wording of last change in dired-x.texi
      d4fa83ba Fix GnuTLS test suite with GnuTLS versions 3.4.x
      b5bee6bf Fix build with gnutls versions 3.0 to 3.2 (Bug#32446)
      67eb80e0 ; * etc/enriched.txt (hanging-indents): Remove extra indent.
      c71cfb79 Fix the Bubbles game on TTY frames
      3bbf21b9 Add choice to reshow certificate information (Bug#31877)
      6f2c4716 * src/alloc.c (Fbool_vector, Flist, Fvector): Doc tweak.
      39eecb38 * src/alloc.c (vector): Fix grammatical error in doc string: ...
      44c1ce3a
    • Bob Newell's avatar
      New input methods hawaiian-postfix and hawaiian-prefix · 229c51af
      Bob Newell authored
      * lisp/leim/quail/latin-pre.el ("hawaiian-prefix"):
      * lisp/leim/quail/latin-post.el ("hawaiian-postfix"): New
      input methods.  (Bug#32714)
      * etc/NEWS: Mention the new input methods.
      229c51af
    • Eli Zaretskii's avatar
      More accurate docs for 'text-char-description' · d28d54c7
      Eli Zaretskii authored
      * src/keymap.c (Ftext_char_description):
      * doc/lispref/help.texi (Describing Characters): More accurate
      description of 'text-char-description'.  Remove incorrect
      examples from the ELisp manual.  (Bug#32743)
      d28d54c7