1. 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
  2. 01 Jan, 2018 1 commit
  3. 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
  4. 28 Oct, 2017 1 commit
  5. 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
  6. 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
  7. 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
  8. 05 Jun, 2017 1 commit
  9. 01 Jan, 2017 1 commit
  10. 23 Dec, 2016 1 commit
  11. 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
  12. 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
  13. 22 Jul, 2016 1 commit
  14. 30 May, 2016 1 commit
  15. 21 May, 2016 1 commit
  16. 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
  17. 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
  18. 01 Jan, 2016 1 commit
  19. 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
  20. 28 Sep, 2015 1 commit
  21. 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
  22. 26 May, 2015 1 commit
  23. 10 Apr, 2015 1 commit
  24. 05 Apr, 2015 1 commit
    • Alan Mackenzie's avatar
      Rationalize use of c[ad]+r, expunging cl-c[ad]\{3,4\}r. · 2056db3f
      Alan Mackenzie authored
      Also expunge eudc-c[ad]+r.
      
      * subr.el (internal--compiler-macro-cXXr): "New" function, copied
      from cl--compiler-macro-cXXr.
      (caar, cadr, cdar, cddr): Change from defsubsts to defuns with
      the above compiler-macro.
      
      * net/eudc.el (eudc-cadr, eudc-cdar, eudc-caar, eudc-cdaar): Remove.
      
      * emacs-lisp/cl.el (Top level dolist doing defaliases): Remove
      caaar, etc., from list of new alias functions.
      
      * emacs-lisp/cl-lib.el (cl-caaar, etc): Rename to caaar, etc.
      (gen-cXXr--rawname, gen-cXXr-all-cl-aliases): New function/macro
      which generate obsolete cl- aliases for caaar, etc.  Invoke them.
      
      * desktop.el:
      * edmacro.el:
      * emacs-lisp/cl-macs.el:
      * frameset.el:
      * ibuffer.el:
      * mail/footnote.el:
      * net/dbus.el:
      * net/eudc-export.el:
      * net/eudc.el:
      * net/eudcb-ph.el:
      * net/rcirc.el:
      * net/secrets.el:
      * play/5x5.el:
      * play/decipher.el:
      * play/hanoi.el:
      * progmodes/hideif.el:
      * ses.el: Replace cl-caaar, eudc-cadr, etc. with caaar and cadr, etc.
      2056db3f
  25. 05 Mar, 2015 2 commits
  26. 18 Feb, 2015 1 commit
  27. 09 Feb, 2015 1 commit
  28. 17 Jan, 2015 1 commit
  29. 01 Jan, 2015 2 commits
  30. 29 Dec, 2014 1 commit
    • Paul Eggert's avatar
      system-name's returned value can vary · f9acac75
      Paul Eggert authored
      Also, the system-name variable is now obsolete.
      Fixes Bug#19438.
      * doc/lispref/os.texi (System Environment):
      * etc/NEWS: Document this.
      * doc/misc/efaq.texi:
      (Displaying the current file name in the titlebar):
      * lisp/desktop.el (desktop-save-frameset):
      * lisp/dnd.el (dnd-get-local-file-uri):
      * lisp/gnus/message.el (message-make-fqdn):
      * lisp/gnus/nnvirtual.el (nnvirtual-retrieve-headers)
      (nnvirtual-update-xref-header):
      * lisp/nxml/rng-uri.el (rng-uri-file-name-1):
      * lisp/org/org-clock.el (org-clock-save):
      * src/filelock.c (current_lock_owner):
      * src/xrdb.c (get_environ_db):
      * src/xterm.c (same_x_server):
      * src/xterm.c (x_term_init):
      Prefer (system-name) to system-name, and avoid naming
      locals 'system-name'.
      * doc/misc/smtpmail.texi (Server workarounds): Fix grammar.
      * lisp/startup.el (system-name): Now an obsolete variable.
      * src/editfns.c (cached_system_name): New static var.
      (init_and_cache_system_name): New function.
      (init_editfns, Fsystem_name): Use it.
      (syms_of_editfns): Initialize it and Vsystem_name to the same value.
      * src/sysdep.c [HAVE_SOCKETS]: Don't include <sys/socket.h>, <netdb.h>.
      (h_errno) [TRY_AGAIN && !HAVE_H_ERRNO]: Remove decl.
      (init_system_name) [HAVE_SOCKETS]: Don't canonicalize the name.
      Don't create a new string if the current value is already correct.
      f9acac75
  31. 21 Nov, 2014 1 commit
  32. 10 Sep, 2014 1 commit
  33. 16 Jul, 2014 1 commit
  34. 03 Jul, 2014 1 commit
  35. 02 Jul, 2014 1 commit
  36. 24 Jun, 2014 1 commit
    • Juri Linkov's avatar
      * lisp/desktop.el (desktop-auto-save-enable) · a4d8b73e
      Juri Linkov authored
      (desktop-auto-save-disable): New functions.
      (desktop-save-mode, desktop-auto-save-timeout): Use them.
      (desktop-read): Disable the autosave before loading the desktop,
      and enable afterwards.
      
      Fixes: debbugs:17351
      a4d8b73e
  37. 06 Jun, 2014 1 commit
  38. 27 Apr, 2014 1 commit