1. 01 May, 2020 1 commit
  2. 29 Mar, 2020 1 commit
    • Juri Linkov's avatar
      Support state changing VC operations on directories in Dired (bug#34949) · 7a6f5a51
      Juri Linkov authored
      * lisp/dired-aux.el (dired-vc-next-action): New command.
      (dired-vc-deduce-fileset): Rename from vc-dired-deduce-fileset in vc.el.
      
      * lisp/dired.el (dired-mode-map): Remap vc-next-action to
      dired-vc-next-action.
      
      * lisp/vc/vc-dir.el (vc-dir-mark-files): New function.
      (vc-dir-refresh): Run hook vc-dir-refresh-hook.
      
      * lisp/vc/vc.el (vc-deduce-fileset): Rename arg 'observer' to
      'not-state-changing' and document it in docstring.
      (vc-dired-deduce-fileset): Rename to dired-vc-deduce-fileset in dired-aux.el.
      
      * lisp/cedet/ede.el (ede-turn-on-hook, ede-minor-mode):
      * lisp/desktop.el (desktop-minor-mode-table): Rename the long ago
      obsolete vc-dired-mode to vc-dir-mode.
      7a6f5a51
  3. 29 Jan, 2020 1 commit
    • Juri Linkov's avatar
      Tab-bar related fixes. · de411615
      Juri Linkov authored
      * lisp/cus-start.el (tab-bar-mode): Use dedicated group 'tab-bar'.
      
      * lisp/tab-bar.el (tab-bar-history-mode): Add :group 'tab-bar'.
      (tab-bar-get-buffer-tab): Add optional arg 'ignore-current-tab'.
      
      * lisp/desktop.el (desktop-buffers-not-to-save-function): Add docstring.
      de411615
  4. 01 Jan, 2020 1 commit
  5. 26 Dec, 2019 1 commit
    • Mattias Engdegård's avatar
      Use regexp type for regexps in defcustom declarations · af085ef4
      Mattias Engdegård authored
      * lisp/calendar/diary-lib.el (diary-face-attrs):
      * lisp/cedet/semantic/db-ebrowse.el (semanticdb-ebrowse-file-match):
      * lisp/cedet/srecode/document.el
      (srecode-document-autocomment-common-nouns-abbrevs)
      (srecode-document-autocomment-function-alist)
      (srecode-document-autocomment-return-first-alist)
      (srecode-document-autocomment-return-last-alist)
      (srecode-document-autocomment-param-alist)
      (srecode-document-autocomment-param-type-alist):
      * lisp/desktop.el (desktop-clear-preserve-buffers):
      * lisp/elide-head.el (elide-head-headers-to-hide):
      * lisp/erc/erc-backend.el (erc-encoding-coding-alist):
      * lisp/erc/erc-ezbounce.el (erc-ezb-regexp):
      * lisp/files.el (auto-save-file-name-transforms):
      * lisp/gnus/deuglify.el (gnus-outlook-deuglify-attrib-cut-regexp)
      (gnus-outlook-deuglify-attrib-verb-regexp)
      (gnus-outlook-deuglify-attrib-end-regexp):
      * lisp/gnus/gnus-fun.el (gnus-x-face-omit-files, gnus-face-omit-files):
      * lisp/gnus/spam.el (spam-spamassassin-positive-spam-flag-header):
      * lisp/htmlfontify.el (hfy-src-doc-link-unstyle):
      * lisp/info-look.el (info-lookup-file-name-alist):
      * lisp/international/rfc1843.el (rfc1843-newsgroups-regexp):
      * lisp/mail/feedmail.el (feedmail-queue-slug-suspect-regexp):
      * lisp/mail/rmail-spam-filter.el (rsf-white-list, rsf-definitions-alist):
      * lisp/man.el (Man-name-local-regexp):
      * lisp/net/ange-ftp.el (ange-ftp-dumb-unix-host-regexp):
      * lisp/net/newst-backend.el (newsticker-auto-mark-filter-list):
      * lisp/net/rcirc.el (rcirc-authinfo, rcirc-coding-system-alist):
      * lisp/net/tramp-adb.el (tramp-adb-prompt):
      * lisp/org/org-agenda.el (org-agenda-hide-tags-regexp)
      (org-agenda-category-icon-alist):
      * lisp/org/org-protocol.el (org-protocol-data-separator):
      * lisp/org/org-table.el (org-table-number-regexp):
      * lisp/org/ox-latex.el (org-latex-known-warnings):
      * lisp/progmodes/bug-reference.el (bug-reference-bug-regexp):
      * lisp/progmodes/hideif.el (hide-ifdef-header-regexp):
      * lisp/progmodes/idlw-help.el (idlwave-help-doclib-name)
      (idlwave-help-doclib-keyword):
      * lisp/progmodes/idlwave.el (idlwave-no-change-comment):
      * lisp/progmodes/python.el (python-shell-prompt-input-regexps)
      (python-shell-prompt-output-regexps, python-shell-prompt-regexp)
      (python-shell-prompt-block-regexp, python-shell-prompt-output-regexp)
      (python-shell-prompt-pdb-regexp, python-shell-compilation-regexp-alist)
      (python-pdbtrack-stacktrace-info-regexp):
      * lisp/progmodes/sql.el (sql-send-terminator, sql-ansi-statement-starters):
      * lisp/speedbar.el (speedbar-directory-unshown-regexp)
      (speedbar-file-unshown-regexp):
      * lisp/textmodes/flyspell.el (flyspell-mark-duplications-exceptions)
      (flyspell-tex-command-regexp):
      * lisp/textmodes/paragraphs.el (sentence-end-base):
      * lisp/textmodes/tildify.el (tildify-pattern, tildify-space-pattern):
      * lisp/vc/ediff-init.el (ediff-metachars):
      * lisp/vc/vc-git.el (vc-git-root-log-format):
      * lisp/vc/vc-hg.el (vc-hg-root-log-format):
      * lisp/whitespace.el (whitespace-indentation-regexp)
      (whitespace-space-after-tab-regexp):
      * lisp/woman.el (woman-manpath-man-regexp)
      (woman-imenu-generic-expression):
      Use 'regexp' instead of 'string' as type for values that are regexps
      in defcustom declarations.
      af085ef4
  6. 02 Dec, 2019 1 commit
  7. 26 Sep, 2019 1 commit
  8. 09 Jun, 2019 1 commit
    • Stefan Kangas's avatar
      Fix TODO to convert defvar with leading '*' to defcustom · b7e26952
      Stefan Kangas authored
      * etc/TODO: Remove done TODO to remove '*' from defvar.
      * doc/misc/gnus.texi: Remove leading '*' from defvar example.
      * lisp/kermit.el (kermit-esc-char): Convert to defcustom.
      * lisp/desktop.el (desktop-header):
      * lisp/obsolete/cc-compat.el (c-indent-level)
      (c-brace-imaginary-offset, c-brace-offset, c-argdecl-indent)
      (c-label-offset, c-continued-statement-offset)
      (c-continued-brace-offset): Remove leading '*' from docstring.
      * lisp/progmodes/dcl-mode.el: Remove leading '*' from docstring in
      comment.
      * test/manual/cedet/tests/test.el: Add comment asking if example of
      defvar with leading '*' should be removed.
      (Bug#35994)  (The previous commit is also for the same bug.)
      b7e26952
  9. 26 May, 2019 1 commit
  10. 04 Apr, 2019 1 commit
  11. 23 Feb, 2019 1 commit
    • Paul Eggert's avatar
      Avoid some double-rounding of Lisp timestamps · 476066e8
      Paul Eggert authored
      Also, simplify some time-related Lisp timestamp code
      while we’re in the neighborhood.
      * lisp/battery.el (battery-linux-proc-acpi)
      (battery-linux-sysfs, battery-upower, battery-bsd-apm):
      * lisp/calendar/timeclock.el (timeclock-seconds-to-string)
      (timeclock-log, timeclock-last-period)
      (timeclock-entry-length, timeclock-entry-list-span)
      (timeclock-find-discrep, timeclock-generate-report):
      * lisp/cedet/ede/detect.el (ede-detect-qtest):
      * lisp/completion.el (cmpl-hours-since-origin):
      * lisp/ecomplete.el (ecomplete-decay-1):
      * lisp/emacs-lisp/ert.el (ert--results-update-stats-display)
      (ert--results-update-stats-display-maybe):
      * lisp/emacs-lisp/timer-list.el (list-timers):
      * lisp/emacs-lisp/timer.el (timer-until)
      (timer-event-handler):
      * lisp/erc/erc-backend.el (erc-server-send-ping)
      (erc-server-send-queue, erc-handle-parsed-server-response)
      (erc-handle-unknown-server-response):
      * lisp/erc/erc-track.el (erc-buffer-visible):
      * lisp/erc/erc.el (erc-lurker-cleanup, erc-lurker-p)
      (erc-cmd-PING, erc-send-current-line):
      * lisp/eshell/em-pred.el (eshell-pred-file-time):
      * lisp/eshell/em-unix.el (eshell-show-elapsed-time):
      * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event:org-timestamp):
      * lisp/gnus/gnus-int.el (gnus-backend-trace):
      * lisp/gnus/gnus-sum.el (gnus-user-date):
      * lisp/gnus/mail-source.el (mail-source-delete-crash-box):
      * lisp/gnus/nnmaildir.el (nnmaildir--scan):
      * lisp/ibuf-ext.el (ibuffer-mark-old-buffers):
      * lisp/gnus/nnmaildir.el (nnmaildir--scan):
      * lisp/mouse.el (mouse--down-1-maybe-follows-link)
      (mouse--click-1-maybe-follows-link):
      * lisp/mpc.el (mpc--faster-toggle):
      * lisp/net/rcirc.el (rcirc-handler-ctcp-KEEPALIVE)
      (rcirc-sentinel):
      * lisp/net/tramp-cache.el (tramp-get-file-property):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-newer-than-file-p)
      (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
      * lisp/org/org-clock.el (org-clock-resolve):
      (org-resolve-clocks, org-clock-in, org-clock-out, org-clock-sum):
      * lisp/org/org-timer.el (org-timer-start)
      (org-timer-pause-or-continue, org-timer-seconds):
      * lisp/org/org.el (org-evaluate-time-range):
      * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src):
      * lisp/pixel-scroll.el (pixel-scroll-in-rush-p):
      * lisp/play/hanoi.el (hanoi-move-ring):
      * lisp/proced.el (proced-format-time):
      * lisp/progmodes/cpp.el (cpp-progress-message):
      * lisp/progmodes/flymake.el (flymake--handle-report):
      * lisp/progmodes/js.el (js--wait-for-matching-output):
      * lisp/subr.el (progress-reporter-do-update):
      * lisp/term/xterm.el (xterm--read-event-for-query):
      * lisp/time.el (display-time-update, emacs-uptime):
      * lisp/tooltip.el (tooltip-delay):
      * lisp/url/url-cookie.el (url-cookie-parse-file-netscape):
      * lisp/url/url-queue.el (url-queue-prune-old-entries):
      * lisp/url/url.el (url-retrieve-synchronously):
      * lisp/xt-mouse.el (xterm-mouse-event):
      Avoid double-rounding of time-related values.  Simplify.
      * lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
      When hoping for the best (unlikely), use a better decoded time.
      (icalendar--convert-sexp-to-ical): Avoid unnecessary encode-time.
      * lisp/calendar/timeclock.el (timeclock-when-to-leave):
      * lisp/cedet/ede/detect.el (ede-detect-qtest):
      * lisp/desktop.el (desktop-create-buffer):
      * lisp/emacs-lisp/benchmark.el (benchmark-elapse):
      * lisp/gnus/gnus-art.el (article-lapsed-string):
      * lisp/gnus/gnus-group.el (gnus-group-timestamp-delta):
      * lisp/gnus/nnmail.el (nnmail-expired-article-p):
      * lisp/gnus/nnmaildir.el (nnmaildir-request-expire-articles):
      * lisp/nxml/rng-maint.el (rng-time-function):
      * lisp/org/org-clock.el (org-clock-get-clocked-time)
      (org-clock-resolve, org-resolve-clocks, org-resolve-clocks-if-idle):
      * lisp/org/org-habit.el (org-habit-insert-consistency-graphs):
      * lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info)
      (vhdl-fix-case-region-1):
      Use time-since instead of open-coding most of it.
      * lisp/erc/erc-dcc.el (erc-dcc-get-sentinel):
      * lisp/erc/erc.el (erc-string-to-emacs-time, erc-time-gt):
      Now obsolete.  All uses changed.
      (erc-time-diff): Accept all Lisp time values.
      All uses changed.
      * lisp/gnus/gnus-demon.el (gnus-demon-idle-since):
      * lisp/gnus/gnus-score.el (gnus-score-headers):
      * lisp/gnus/nneething.el (nneething-make-head):
      * lisp/gnus/nnheader.el (nnheader-message-maybe):
      * lisp/gnus/nnimap.el (nnimap-keepalive):
      * lisp/image.el (image-animate-timeout):
      * lisp/mail/feedmail.el (feedmail-rfc822-date):
      * lisp/net/imap.el (imap-wait-for-tag):
      * lisp/net/newst-backend.el (newsticker--image-get):
      * lisp/net/rcirc.el (rcirc-handler-317, rcirc-handler-333):
      * lisp/obsolete/xesam.el (xesam-refresh-entry):
      * lisp/org/org-agenda.el (org-agenda-show-clocking-issues)
      (org-agenda-check-clock-gap, org-agenda-to-appt):
      * lisp/org/org-capture.el (org-capture-set-target-location):
      * lisp/org/org-clock.el (org-clock-resolve-clock)
      (org-clocktable-steps):
      * lisp/org/org-colview.el (org-columns-edit-value)
      (org-columns, org-agenda-columns):
      * lisp/org/org-duration.el (org-duration-from-minutes):
      * lisp/org/org-element.el (org-element-cache-sync-duration)
      (org-element-cache-sync-break)
      (org-element--cache-interrupt-p, org-element--cache-sync):
      * lisp/org/org-habit.el (org-habit-get-faces)
      * lisp/org/org-indent.el (org-indent-add-properties):
      * lisp/org/org-table.el (org-table-sum):
      * lisp/org/org-timer.el (org-timer-show-remaining-time)
      (org-timer-set-timer):
      * lisp/org/org.el (org-babel-load-file, org-today)
      (org-auto-repeat-maybe, org-2ft, org-time-stamp)
      (org-read-date-analyze, org-time-stamp-to-now)
      (org-small-year-to-year, org-goto-calendar):
      * lisp/org/ox.el (org-export-insert-default-template):
      * lisp/ses.el (ses--time-check):
      * lisp/type-break.el (type-break-time-warning)
      (type-break-statistics, type-break-demo-boring):
      * lisp/url/url-cache.el (url-cache-expired)
      (url-cache-prune-cache):
      * lisp/vc/vc-git.el (vc-git-stash-snapshot):
      * lisp/erc/erc-match.el (erc-log-matches-come-back):
      Simplify.
      476066e8
  12. 01 Jan, 2019 1 commit
  13. 24 Sep, 2018 1 commit
    • 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
  14. 02 Jul, 2018 1 commit
    • John Shahid's avatar
      Optionally add argument description in minor mode DOC (bug#10754) · ee3e4323
      John Shahid authored
      Add a paragraph to minor mode's docstring documenting the mode's ARG
      usage if the supplied docstring doesn't already contain the word "ARG".
      
      * easy-mmode.el (easy-mmode--arg-docstring): New const.
      (easy-mmode--arg-docstring): New function.
      (define-minor-mode): Use them.
      
      Remove argument documentation from all minor modes.
      ee3e4323
  15. 19 Apr, 2018 1 commit
    • Juri Linkov's avatar
      Use text properties to save search parameters. (Bug#22479) · 99de04e6
      Juri Linkov authored
      * lisp/isearch.el (isearch-update-ring): Call isearch-string-propertize.
      Delete duplicates with possibly different text properties.
      (isearch-string-propertize)
      (isearch-update-from-string-properties): New functions.
      (with-isearch-suspended, isearch-ring-adjust1):
      Call isearch-update-from-string-properties.
      (isearch-edit-string): Let-bind minibuffer-allow-text-properties to t.
      (isearch-query-replace): Use propertized isearch-string.
      (isearch--lax-regexp-function-p): Simplify.
      
      * lisp/replace.el (query-replace-descr): Rewrite to keep text properties
      non-destructively in the replacement string.
      (query-replace--split-string): Don't remove text properties
      by substring-no-properties.
      (query-replace-read-args): Try to get isearch-regexp-function
      from text-properties.
      (perform-replace): Display parameters in the replacement message.
      
      * lisp/desktop.el (desktop--v2s): Check if text properties are unreadable.
      (Bug#30786)
      99de04e6
  16. 14 Mar, 2018 1 commit
    • Stefan Monnier's avatar
      * lisp/desktop.el: Make use some "new" functionality · 5bebacc4
      Stefan Monnier authored
      (desktop-files-not-to-save, desktop-clear):
      Use \` and \' when we don't intend to match newlines.
      (desktop-minor-mode-table): Remove auto-fill-function entry.
      (desktop-buffer-info): Use :minor-mode-function instead.
      (desktop--v2s): Use a closure rather than a backquoted lambda.
      (desktop-save): Set 'lexical-binding' in the saved file.
      Use 'utf-8-emacs' encoding rather than the old 'emacs-mule'.
      (desktop-read): Use 'default-value' to get the global part of a hook.
      5bebacc4
  17. 11 Mar, 2018 1 commit
    • Glenn Morris's avatar
      Remove many items obsolete since Emacs 22.1 · f1c48b0e
      Glenn Morris authored
      Emacs 22.1 was five major releases and over decade ago.
      In bug reporting statistics, it's been absent for around 5 years.
      Ref: https://debbugs.gnu.org/stats/emacs.html
      This list can be reviewed before to the next release, but for
      now hopefully this motivates any needed external updates.
      * lisp/arc-mode.el (archive-mouse-extract):
      * lisp/bookmark.el (bookmark-exit-hooks):
      * lisp/comint.el (comint-use-prompt-regexp-instead-of-fields):
      * lisp/cus-edit.el (custom-face-save-command):
      * lisp/descr-text.el (describe-char-after):
      * lisp/desktop.el (desktop-enable, desktop-basefilename)
      (desktop-buffer-modes-to-save, desktop-buffer-misc-functions)
      (desktop-buffer-handlers, desktop-load-default):
      * lisp/dired-x.el (dired-omit-files-p):
      * lisp/frame.el (new-frame, set-default-font, delete-frame-hook)
      (blink-cursor):
      * lisp/generic-x.el (generic-define-mswindows-modes)
      (generic-define-unix-modes):
      * lisp/help.el (describe-project, view-todo):
      * lisp/hilit-chg.el (highlight-changes-colours):
      * lisp/ibuffer.el (ibuffer-elide-long-columns, ibuffer-hooks)
      (ibuffer-mode-hooks):
      * lisp/imenu.el (imenu-always-use-completion-buffer-p):
      * lisp/isearch.el (isearch-lazy-highlight-cleanup)
      (isearch-lazy-highlight-initial-delay)
      (isearch-lazy-highlight-interval)
      (isearch-lazy-highlight-max-at-a-time)
      (isearch-lazy-highlight-cleanup):
      * lisp/mwheel.el (mouse-wheel-down-button)
      (mouse-wheel-up-button, mouse-wheel-click-button):
      * lisp/novice.el (disabled-command-hook):
      * lisp/recentf.el (recentf-menu-append-commands-p):
      * lisp/savehist.el (savehist-load):
      * lisp/speedbar.el (speedbar-ignored-path-expressions)
      (speedbar-ignored-path-regexp, speedbar-add-ignored-path-regexp)
      (speedbar-line-path, speedbar-buffers-line-path, speedbar-path-line):
      * lisp/subr.el (assoc-ignore-case, assoc-ignore-representation)
      (x-lost-selection-hooks, x-sent-selection-hooks)
      (process-kill-without-query):
      * lisp/calendar/icalendar.el (icalendar-convert-diary-to-ical)
      (icalendar-extract-ical-from-buffer):
      * lisp/emacs-lisp/autoload.el (update-autoloads-from-directories):
      * lisp/emacs-lisp/derived.el (derived-mode-class):
      * lisp/emacs-lisp/generic.el (generic-font-lock-defaults):
      * lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
      * lisp/gnus/spam.el (spam-list-of-processors):
      * lisp/international/latin1-disp.el (latin1-char-displayable-p):
      * lisp/mail/rmail.el (rmail-pop-password, rmail-pop-password-required):
      * lisp/net/goto-addr.el (goto-address-at-mouse):
      * lisp/net/net-utils.el (ipconfig-program, ipconfig-program-options):
      * lisp/obsolete/iswitchb.el (iswitchb-use-fonts):
      * lisp/play/dunnet.el (dungeon-mode-map):
      * lisp/progmodes/compile.el (compilation-finish-function)
      * lisp/progmodes/cperl-mode.el (cperl-vc-header-alist)
      * lisp/progmodes/gud.el (tooltip-gud-modes, tooltip-gud-display)
      (tooltip-gud-toggle-dereference):
      * lisp/progmodes/pascal.el (pascal-outline):
      * lisp/progmodes/perl-mode.el (electric-perl-terminator):
      * lisp/textmodes/nroff-mode.el (count-text-lines)
      (forward-text-line, backward-text-line, electric-nroff-newline)
      (electric-nroff-mode):
      * lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index)
      (vc-previous-comment, vc-next-comment)
      (vc-comment-search-reverse, vc-comment-search-forward)
      (vc-comment-to-change-log):
      * lisp/vc/pcvs-info.el (cvs-display-full-path)
      (cvs-fileinfo->full-path):
      * lisp/vc/vc.el (vc-diff-switches-list):
      Remove items, obsolete since Emacs 22.1.
      * lisp/ibuffer.el (ibuffer-cached-elide-long-columns):
      Remove internal variable.
      (ibuffer-compile-make-eliding-form, ibuffer-check-formats):
      (ibuffer-mode): Remove support for ibuffer-elide-long-columns.
      * lisp/cedet/semantic/sb.el (semantic-sb-token-jump):
      Remove support for speedbar-line-path.
      * lisp/emacs-lisp/unsafep.el (assoc-ignore-case):
      Stop marking as side-effect-free.
      * lisp/gnus/spam.el (spam-group-processor-p):
      Remove support for spam-list-of-processors.
      * lisp/progmodes/compile.el (define-compilation-mode)
      (compilation-handle-exit):
      Remove support for compilation-finish-function.
      * lisp/progmodes/cperl-mode.el (cperl-mode):
      Remove support for cperl-vc-header-alist.
      ; * lisp/files.el: Comments.
      ; * etc/NEWS: List removed items.
      f1c48b0e
  18. 17 Feb, 2018 1 commit
    • Robert Pluim's avatar
      Document 'desktop-files-not-to-save' · f21f8e61
      Robert Pluim authored
      * doc/emacs/misc.texi (Saving Emacs Sessions): Add description
      of 'desktop-files-not-to-save'.
      
      * lisp/desktop.el (desktop-files-not-to-save): Explain that
      the default value excludes buffers visiting remote files.
      f21f8e61
  19. 01 Jan, 2018 1 commit
  20. 11 Nov, 2017 1 commit
    • Eli Zaretskii's avatar
      Fix desktop auto-save timer when linum-mode is used · 72f813fb
      Eli Zaretskii authored
      * lisp/desktop.el (desktop-read): Use toplevel value of
      window-configuration-change-hook when deciding whether desktop
      auto-saving is enabled.  Suggested by Peter Neidhardt
      <pe.neidhardt@googlemail.com>.  (Bug#28945)
      72f813fb
  21. 28 Oct, 2017 1 commit
  22. 22 Oct, 2017 1 commit
    • Paul Eggert's avatar
      Avoid unnecessary rounding errors in timestamps · 3aee7be6
      Paul Eggert authored
      Avoid the rounding errors of float-time when it’s easy.  E.g.,
      replace (< (float-time a) (float-time b)) with (time-less-p a b).
      * lisp/desktop.el (desktop-save):
      * lisp/ecomplete.el (ecomplete-add-item):
      * lisp/epg.el (epg-wait-for-completion):
      * lisp/files.el (dir-locals-find-file, dir-locals-read-from-dir):
      * 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-format-time):
      * lisp/net/ange-ftp.el (ange-ftp-file-newer-than-file-p)
      (ange-ftp-verify-visited-file-modtime):
      * lisp/net/rcirc.el (rcirc-ctcp-sender-PING):
      * lisp/textmodes/remember.el (remember-store-in-mailbox):
      * lisp/url/url-cookie.el (url-cookie-expired-p):
      Bypass float-time to avoid rounding errors.
      
      * lisp/files.el (dir-locals-find-file):
      3aee7be6
  23. 21 Oct, 2017 1 commit
    • Paul Eggert's avatar
      Prefer nil to (current-time) when either works · c75f505d
      Paul Eggert authored
      * doc/misc/gnus.texi (Category Syntax):
      * lisp/allout-widgets.el (allout-widgets-post-command-business):
      * lisp/cedet/ede/detect.el (ede-detect-qtest):
      * lisp/cedet/pulse.el (pulse-momentary-highlight-overlay)
      (pulse-tick):
      * lisp/cedet/semantic.el (bovinate):
      * lisp/cedet/semantic/analyze.el:
      (semantic-analyze-current-symbol-default, semantic-adebug-analyze):
      * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-current-tag):
      * lisp/cedet/semantic/lex.el (semantic-lex-test):
      * lisp/cedet/semantic/symref/filter.el:
      (semantic-symref-test-count-hits-in-tag):
      * lisp/cedet/srecode/dictionary.el (srecode-adebug-dictionary):
      * lisp/cedet/srecode/map.el (srecode-adebug-maps):
      * lisp/desktop.el (desktop-create-buffer):
      * lisp/emacs-lisp/benchmark.el (benchmark-elapse):
      * lisp/emacs-lisp/elp.el (elp--make-wrapper):
      * lisp/epa.el (epa--show-key):
      * lisp/erc/erc.el (erc-lurker-cleanup, erc-lurker-p):
      * lisp/gnus/gnus-agent.el (gnus-agent-fetch-articles)
      (gnus-agent-expire-group-1, gnus-agent-store-article):
      * lisp/gnus/gnus-art.el (article-lapsed-string):
      * lisp/gnus/gnus-cloud.el (gnus-cloud-update-newsrc-data)
      (gnus-cloud-collect-full-newsrc):
      * lisp/gnus/gnus-group.el (gnus-group-timestamp-delta):
      * lisp/gnus/gnus-html.el (gnus-html-cache-expired):
      * lisp/gnus/gnus-score.el (gnus-score-load-file)
      (gnus-decay-scores):
      * lisp/gnus/nndiary.el (nndiary-expired-article-p):
      * lisp/gnus/nnmail.el (nnmail-expired-article-p):
      * lisp/gnus/nnmaildir.el (nnmaildir--scan):
      * lisp/gnus/score-mode.el (gnus-score-edit-insert-date):
      * lisp/image/gravatar.el (gravatar-cache-expired):
      * lisp/net/newst-backend.el (newsticker--image-get)
      (newsticker--cache-mark-expired):
      * lisp/nxml/rng-maint.el (rng-time-function):
      * lisp/org/org-agenda.el (org-agenda-to-appt):
      * lisp/org/org-clock.el (org-clock-resolve-clock)
      (org-clock-resolve, org-resolve-clocks-if-idle):
      * lisp/org/org-colview.el (org-columns-edit-value, org-columns)
      (org-columns-compute-all, org-agenda-columns):
      * lisp/org/org-element.el (org-element--cache-interrupt-p)
      (org-element--cache-sync):
      * lisp/org/org-habit.el (org-habit-get-faces)
      (org-habit-insert-consistency-graphs):
      * lisp/org/org-indent.el (org-indent-add-properties):
      * lisp/org/org-timer.el (org-timer-start)
      (org-timer-pause-or-continue, org-timer-seconds)
      (org-timer-show-remaining-time, org-timer-set-timer):
      * lisp/org/org.el (org-babel-load-file, org-current-time)
      (org-today, org-auto-repeat-maybe, org-read-date-analyze)
      (org-small-year-to-year, org-goto-calendar):
      * lisp/org/ox.el (org-export-insert-default-template):
      * lisp/time.el (emacs-uptime):
      * lisp/type-break.el (type-break-mode, type-break)
      (type-break-time-warning-schedule, type-break-check):
      * lisp/url/url-cache.el (url-cache-expired):
      * lisp/url/url.el (url-retrieve-synchronously):
      * test/lisp/char-fold-tests.el (char-fold--speed-test):
      * test/manual/cedet/semantic-ia-utest.el:
      (semantic-symref-test-count-hits-in-tag):
      * test/manual/cedet/semantic-tests.el (semantic-idle-pnf-test)
      (semantic-lex-test-full-depth):
      Use nil instead of (current-time) where either will do, as nil is
      a bit more efficient and should have less timing error.
      c75f505d
  24. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  25. 08 Aug, 2017 1 commit
    • Mark Oteiza's avatar
      Replace some uses of eval · 63b5a4a6
      Mark Oteiza authored
      There are a number of places where eval is used unnecessarily to get
      or set the value of a symbol.
      * lisp/calendar/calendar.el (diary-date-forms): Use default-value in
      custom setter.
      * lisp/desktop.el (desktop-clear): Use set-default instead.
      * lisp/international/ogonek.el (ogonek-read-encoding): Use
      symbol-value.
      63b5a4a6
  26. 05 Jun, 2017 1 commit
  27. 01 Jan, 2017 1 commit
  28. 23 Dec, 2016 1 commit
  29. 17 Dec, 2016 1 commit
    • Eli Zaretskii's avatar
      Repair desktop restoration on text terminals · 3d94931c
      Eli Zaretskii authored
      * lisp/desktop.el (desktop-restoring-frameset-p): Test for the GUI
      frame here, instead of in desktop-restoring-frameset.  That's
      because desktop-read wants to know whether frameset will actually
      be restored, and has fallback procedures up its sleeve when it
      won't be; these fallbacks need to be invoked when the frameset is
      not going to be restored.  (Bug#24298)
      3d94931c
  30. 16 Oct, 2016 1 commit
    • Sam Steingold's avatar
      Save and restore buffer-display-time · cd726ef6
      Sam Steingold authored
      * desktop.el (desktop-locals-to-save): Add `buffer-display-time'
      (desktop-read): Set `desktop-file-modtime' before loading the desktop file
      (desktop-create-buffer): Adjust `buffer-display-time' for the downtime
      cd726ef6
  31. 22 Jul, 2016 1 commit
  32. 30 May, 2016 1 commit
  33. 21 May, 2016 1 commit
  34. 30 Jan, 2016 1 commit
    • Glenn Morris's avatar
      Improve the custom type of some user options. · 0fac75fe
      Glenn Morris authored
      * lisp/desktop.el (desktop-minor-mode-table):
      * lisp/man.el (Man-frame-parameters):
      * lisp/midnight.el (midnight-delay):
      * lisp/speedbar.el (speedbar-select-frame-method):
      * lisp/tooltip.el (tooltip-frame-parameters):
      * lisp/tree-widget.el (tree-widget-space-width):
      * lisp/type-break.el (type-break-keystroke-threshold):
      * lisp/woman.el (woman-imenu-generic-expression):
      * lisp/cedet/ede.el (ede-debug-program-function):
      * lisp/cedet/ede/project-am.el (project-am-debug-target-function):
      * lisp/emulation/viper-keym.el (viper-toggle-key):
      * lisp/erc/erc-networks.el (erc-server-alist):
      * lisp/gnus/message.el (message-deletable-headers, message-signature):
      * lisp/mail/mailalias.el (mail-directory-stream):
      * lisp/play/tetris.el (tetris-x-colors):
      * lisp/progmodes/gud.el (gud-tooltip-modes): Improve custom type.
      0fac75fe
  35. 18 Jan, 2016 1 commit
    • Alan Mackenzie's avatar
      Desktop: protect users against inadvertant upgrading of desktop file. · 20defc55
      Alan Mackenzie authored
      An upgraded (version 208) desktop file cannot be read in Emacs < 25.
      
      * etc/NEWS: Add an entry about upgrading a desktop file.
      
      * lisp/desktop.el (desktop-file-version): Amend doc string.
      (desktop-native-file-version, desktop-io-file-version): new variables.
      (desktop-clear): Set desktop-io-file-version to nil.
      (desktop-buffer-info): make the presence of the last item on the list
      conditional on (>= desktop-io-file-version 208).
      (desktop-save): Add extra parameter VERSION to take user's C-u or C-u C-u.
      Amend the doc string.  Add code to determine the output file version.
      (desktop-create-buffer): Set desktop-io-file-version to the input file's
      version.
      20defc55
  36. 01 Jan, 2016 1 commit
  37. 17 Nov, 2015 1 commit
    • Paul Eggert's avatar
      Fix docstring quoting problems with ‘ '’ · ac16149b
      Paul Eggert authored
      Problem reported by Artur Malabarba in:
      http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01513.html
      Most of these fixes are to documentation; many involve fixing
      longstanding quoting glitches that are independent of the
      recent substitute-command-keys changes.  The changes to code are:
      * lisp/cedet/mode-local.el (mode-local-augment-function-help)
      (describe-mode-local-overload):
      Substitute docstrings before displaying them.
      * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
      Quote the generated docstring for later substitution.
      ac16149b
  38. 28 Sep, 2015 1 commit
  39. 21 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Avoid hard-coding "M-x command" in docstrings · c1cacb09
      Paul Eggert authored
      * lisp/calendar/todo-mode.el (todo-mode):
      * lisp/desktop.el (desktop-save-mode):
      * lisp/edmacro.el (edit-kbd-macro):
      * lisp/emacs-lisp/package.el (package-menu-execute):
      * lisp/emulation/viper-cmd.el (viper-ask-level):
      * lisp/emulation/viper-init.el (viper-expert-level):
      * lisp/filesets.el (filesets-add-buffer):
      * lisp/follow.el (follow-mode):
      * lisp/gnus/auth-source.el (auth-sources):
      * lisp/international/ogonek.el (ogonek-informacja)
      (ogonek-information):
      * lisp/net/tramp.el (tramp-process-actions):
      * lisp/org/org-gnus.el (org-gnus-no-new-news):
      * lisp/org/org.el (org-ellipsis):
      * lisp/progmodes/python.el (python-shell-get-process-or-error):
      * lisp/progmodes/vhdl-mode.el (vhdl-mode):
      * lisp/server.el (server-start):
      * lisp/type-break.el (type-break-noninteractive-query):
      * lisp/userlock.el (ask-user-about-supersession-help):
      * lisp/whitespace.el (whitespace-report-region):
      Prefer (substitute-command-keys "`\\[foo-command]'")
      to "`M-x foo-command'" in docstrings and the like.
      c1cacb09
  40. 26 May, 2015 1 commit