1. 28 Jul, 2013 1 commit
  2. 27 Jul, 2013 1 commit
  3. 26 Jul, 2013 2 commits
  4. 25 Jul, 2013 3 commits
  5. 24 Jul, 2013 1 commit
  6. 23 Jul, 2013 3 commits
  7. 22 Jul, 2013 1 commit
    • Juanma Barranquero's avatar
      lisp/desktop.el: Require 'cl-lib. · a1c80d9d
      Juanma Barranquero authored
      (desktop-before-saving-frames-functions): New hook.
      (desktop--process-minibuffer-frames): Set desktop-mini parameter only
      for frames being saved.  Rename from desktop--save-minibuffer-frames.
      (desktop-save-frames): Run hook desktop-before-saving-frames-functions.
      Do not save frames with non-nil `desktop-dont-save' parameter.  Filter
      out deleted frames.
      (desktop--find-frame): Use cl-find-if.
      (desktop--select-frame): Use cl-(first|second|third) to access values
      of desktop-mini.
      (desktop--make-frame): Use cl-delete-if.
      (desktop--sort-states): Fix sorting of minibuffer-owning frames.
      (desktop-restore-frames): Use cl-(first|second|third) to access values
      of desktop-mini.  Look for visible frame at the end, not while
      restoring frames.
      a1c80d9d
  8. 21 Jul, 2013 3 commits
    • Juanma Barranquero's avatar
      lisp/desktop.el: Make some frame-restoring functions public. · 56bc453c
      Juanma Barranquero authored
      (desktop-saved-frame-states): Rename from desktop--saved-states;
      all users changed.
      (desktop-save-frames): Rename from desktop--save-frames.
      Do not save state to desktop file.
      (desktop-save): Save desktop-saved-frame-states to desktop file
      and reset to nil.
      (desktop-restoring-frames-p): New function.
      (desktop-restore-frames): Use it.  Rename from desktop--restore-frames.
      (desktop-read): Use desktop-restoring-frames-p.  Do not try to fix
      buffer-lists when restoring frames.  Suggested by Martin Rudalics.
      56bc453c
    • Paul Eggert's avatar
      Spelling fixes. · 02c66599
      Paul Eggert authored
      02c66599
    • Juanma Barranquero's avatar
      lisp/desktop.el: Correctly restore iconified frames. · 728dc3cc
      Juanma Barranquero authored
      (desktop--filter-iconified-position): New function.
      (desktop-filter-parameters-alist): Add entries for `top' and `left'.
      728dc3cc
  9. 15 Jul, 2013 1 commit
    • Juanma Barranquero's avatar
      lisp/desktop.el (desktop-restore-frames): Change default to t. · b958c0ad
      Juanma Barranquero authored
      (desktop-restore-in-current-display): Now offer more options.
      (desktop-restoring-reuses-frames): New customization option.
      (desktop--saved-states): Doc fix.
      (desktop-filter-parameters-alist): New variable, renamed and expanded from
      desktop--excluded-frame-parameters.
      (desktop--target-display): New variable.
      (desktop-switch-to-gui-p, desktop-switch-to-tty-p, desktop--filter-tty*)
      (desktop--filter-*-color, desktop--filter-minibuffer)
      (desktop--filter-restore-desktop-parm, desktop--filter-save-desktop-parm)
      (desktop-restore-in-original-display-p): New functions.
      (desktop--filter-frame-parms): Use new desktop-filter-parameters-alist.
      (desktop--save-minibuffer-frames): New function, inspired by a similar
      function from Martin Rudalics.
      (desktop--save-frames): Call it; play nice with desktop-globals-to-save.
      (desktop--restore-in-this-display-p): Remove.
      (desktop--find-frame): Rename from desktop--find-frame-in-display and add
      predicate argument.
      (desktop--make-full-frame): Remove, integrated into desktop--make-frame.
      (desktop--reuse-list): New variable.
      (desktop--select-frame, desktop--make-frame, desktop--sort-states):
      New functions.
      (desktop--restore-frames): Add support for "minibuffer-special" frames.
      b958c0ad
  10. 12 Jul, 2013 1 commit
    • Juanma Barranquero's avatar
      lisp/desktop.el: Minor fixes. · acfcc8c5
      Juanma Barranquero authored
      (desktop--v2s): Remove unused local variable.
      (desktop-save-buffer): Make defvar-local; adjust docstring.
      (desktop-auto-save-timeout, desktop-owner): Use ignore-errors.
      (desktop-clear, desktop-save-buffer-p): Use string-match-p.
      acfcc8c5
  11. 01 Jul, 2013 1 commit
    • Juanma Barranquero's avatar
      lisp/desktop.el: More fixes to frame restoration. · 2addf922
      Juanma Barranquero authored
      (desktop-restore-frames): Rename from desktop-save-windows.
      (desktop-restore-in-current-display): New customization option.
      (desktop--excluded-frame-parameters): Add `font'.
      (desktop--save-frames): Rename from desktop--save-windows.
      (desktop--restore-in-this-display-p): New function.
      (desktop--make-full-frame): Remove unwanted width/height from
      full(width|height) frames.
      (desktop--restore-frames): Rename from desktop--restore-windows.
      Obey desktop-restore-current-display.  Do not delete old frames or
      select a new frame unless we were able to restore at least one frame.
      2addf922
  12. 30 Jun, 2013 1 commit
    • Juanma Barranquero's avatar
      Some fixes and improvements for desktop frame restoration. · a47cbd64
      Juanma Barranquero authored
      It is still experimental and disabled by default.
      
      * lisp/desktop.el (desktop--save-windows): Put the selected frame at
        the head of the list.
        (desktop--make-full-frame): New function.
        (desktop--restore-windows): Try to re-select the frame that was
        selected upon saving.  Do not abort if some frames fail to restore,
        just show an error message and contnue.  Set up maximized frames so
        they have default non-maximized dimensions.
      a47cbd64
  13. 27 Jun, 2013 1 commit
    • Juanma Barranquero's avatar
      New experimental feature to save&restore window and frame setup. · 39c0e36f
      Juanma Barranquero authored
      * etc/NEWS: Document new Desktop option `desktop-save-windows'.
      
      * lisp/desktop.el (desktop-save-windows): New defcustom.
        (desktop--saved-states): New var.
        (desktop--excluded-frame-parameters): New defconst.
        (desktop--filter-frame-parms, desktop--find-frame-in-display)
        (desktop--restore-windows, desktop--save-windows): New functions.
        (desktop-save): Call `desktop--save-windows'.
        (desktop-read): Call `desktop--restore-windows'.
      39c0e36f
  14. 02 May, 2013 1 commit
  15. 27 Apr, 2013 1 commit
  16. 26 Mar, 2013 1 commit
  17. 01 Jan, 2013 1 commit
  18. 29 Nov, 2012 1 commit
    • Glenn Morris's avatar
      Add desktop support for restoring vc-dir buffers (bug#10606) · 4ad900d9
      Glenn Morris authored
      * lisp/vc/vc-dir.el (vc-dir-mode): Autoload it (for desktop restore).
      Set buffer-local value of desktop-save-buffer.
      (vc-dir-desktop-buffer-misc-data, vc-dir-restore-desktop-buffer):
      New functions.
      (desktop-buffer-mode-handlers): Add vc-dir-mode entry.
      
      * lisp/desktop.el (desktop-save-buffer-p): Treat vc-dir like dired.
      4ad900d9
  19. 25 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Use declare forms, where possible, to mark obsolete functions. · 59f7af81
      Chong Yidong authored
      * lisp/allout.el (allout-passphrase-hint-string): Likewise.
      (allout-init): Use a declare form to mark obsolete.
      
      * lisp/calendar/calendar.el (calendar-version):
      * lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
      (icalendar-convert-diary-to-ical):
      * lisp/cus-edit.el (custom-mode):
      * lisp/ansi-color.el (ansi-color-unfontify-region):
      * lisp/international/latin1-disp.el (latin1-char-displayable-p):
      * lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
      * lisp/progmodes/which-func.el (which-func-update-1): Use
      define-obsolete-function-alias.
      
      * lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
      this function obsolete.
      
      * lisp/calendar/cal-x.el (calendar-two-frame-setup)
      (calendar-only-one-frame-setup, calendar-one-frame-setup):
      * lisp/calendar/calendar.el (american-calendar, european-calendar)
      (calendar-for-loop):
      * lisp/comint.el (comint-dynamic-simple-complete)
      (comint-dynamic-complete-as-filename, comint-unquote-filename):
      * lisp/desktop.el (desktop-load-default):
      * lisp/dired-x.el (dired-omit-here-always)
      (dired-hack-local-variables, dired-default-directory):
      * lisp/emacs-lisp/derived.el (derived-mode-class):
      * lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
      * lisp/emacs-lock.el (toggle-emacs-lock):
      * lisp/epa.el (epa-display-verify-result):
      * lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
      (epg-passphrase-callback-function):
      * lisp/eshell/esh-util.el (eshell-for):
      * lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
      (eshell-add-to-window-buffer-names):
      * lisp/files.el (locate-file-completion):
      * lisp/imenu.el (imenu-example--create-c-index)
      (imenu-example--create-lisp-index)
      (imenu-example--lisp-extract-index-name)
      (imenu-example--name-and-position):
      * lisp/international/mule-cmds.el (princ-list):
      * lisp/international/mule-diag.el (decode-codepage-char):
      * lisp/international/mule-util.el (detect-coding-with-priority):
      * lisp/iswitchb.el (iswitchb-read-buffer):
      * lisp/mail/mailalias.el (mail-complete):
      * lisp/mail/sendmail.el (mail-sent-via):
      * lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
      (mouse-major-mode-menu):
      * lisp/password-cache.el (password-read-and-add):
      * lisp/pcomplete.el (pcomplete-parse-comint-arguments):
      * lisp/progmodes/sh-script.el (sh-maybe-here-document):
      * lisp/replace.el (query-replace-regexp-eval):
      * lisp/savehist.el (savehist-load):
      * lisp/simple.el (choose-completion-delete-max-match):
      * lisp/term.el (term-dynamic-simple-complete):
      * lisp/vc/ediff-init.el (ediff-check-version):
      * lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
      * lisp/vc/vc.el (vc-diff-switches-list):
      * lisp/view.el (view-return-to-alist-update): Likewise.
      
      * lisp/iswitchb.el (iswitchb-read-buffer): Move code of
      iswitchb-define-mode-map here, and delete that obsolete function.
      
      * lisp/subr.el (eval-next-after-load, makehash, insert-string)
      (assoc-ignore-representation, assoc-ignore-case): Use declare to
      mark obsolete.
      (mode-line-inverse-video): Variable deleted.
      
      * lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
      this applies to functions.
      
      * lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.
      
      * lisp/international/mule-util.el (string-to-sequence): Remove.
      
      * lisp/net/newst-backend.el (newsticker-cache-filename):
      * lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
      incorrect obsolescence declaration.
      
      * lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
      font-lock-reference-face.
      
      * lisp/url/url-parse.el (url-recreate-url-attributes):
      * lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
      obsolete.
      
      * src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.
      59f7af81
  20. 17 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Update docstrings and comments to use "init file" terminology. · 865fe16f
      Chong Yidong authored
      * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
      * comint.el (comint-prompt-read-only):
      * custom.el (defcustom):
      * hi-lock.el (hi-lock-mode):
      * ibuffer.el (ibuffer-formats):
      * ielm.el (ielm-prompt-read-only):
      * novice.el (disable-command):
      * saveplace.el (toggle-save-place):
      * speedbar.el (speedbar-supported-extension-expressions):
      * startup.el (auto-save-list-file-prefix, init-file-user)
      (after-init-hook, inhibit-startup-echo-area-message):
      * strokes.el (strokes-help):
      * time-stamp.el (time-stamp):
      * calendar/calendar.el (calendar, diary-file):
      * calendar/diary-lib.el (diary-mail-entries, diary)
      (diary-list-entries-hook):
      * calendar/holidays.el (holidays, calendar-holidays):
      * calendar/lunar.el (lunar-phases):
      * calendar/solar.el (sunrise-sunset):
      * emulation/edt.el (edt-load-keys):
      * emulation/viper.el (viper-mode):
      * eshell/em-alias.el (eshell-command-aliases-list):
      * eshell/esh-util.el (eshell-convert-numeric-arguments):
      * international/ogonek.el (ogonek-information):
      * net/tramp-cmds.el (tramp-bug):
      * net/quickurl.el (quickurl-reread-hook-postfix):
      * play/decipher.el (decipher-font-lock-keywords):
      * progmodes/cc-styles.el (c-set-style):
      * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
      * progmodes/inf-lisp.el (inferior-lisp-prompt):
      * progmodes/octave-mod.el (octave-mode):
      * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
      * progmodes/verilog-mode.el (verilog-read-defines):
      * textmodes/two-column.el (2C-mode): Likewise.
      865fe16f
  21. 26 Jul, 2012 1 commit
    • Stefan Monnier's avatar
      Autoload more carefully from Lisp. Follow aliases for function properties. · 7abaf5cc
      Stefan Monnier authored
      * lisp/subr.el (autoloadp): New function.
      (symbol-file): Use it.
      (function-get): New function.
      * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Use function-get and
      autoload-do-load.
      * lisp/emacs-lisp/lisp-mode.el (lisp-font-lock-syntactic-face-function)
      (lisp-indent-function):
      * lisp/emacs-lisp/gv.el (gv-get):
      * lisp/emacs-lisp/edebug.el (get-edebug-spec, edebug-basic-spec):
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-form):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
      * lisp/emacs-lisp/autoload.el (make-autoload, autoload-print-form):
      Use function-get.
      * lisp/emacs-lisp/cl.el: Don't propagate function properties any more.
      
      * src/eval.c (Fautoload_do_load): Rename from do_autoload, export to Lisp,
      add argument, tune behavior, and adjust all callers.
      
      * lisp/speedbar.el (speedbar-add-localized-speedbar-support):
      * lisp/emacs-lisp/disass.el (disassemble-internal):
      * lisp/desktop.el (desktop-load-file):
      * lisp/help-fns.el (help-function-arglist, find-lisp-object-file-name)
      (describe-function-1):
      * lisp/emacs-lisp/find-func.el (find-function-noselect):
      * lisp/emacs-lisp/elp.el (elp-instrument-function):
      * lisp/emacs-lisp/advice.el (ad-has-proper-definition):
      * lisp/apropos.el (apropos-safe-documentation, apropos-macrop):
      * lisp/emacs-lisp/debug.el (debug-on-entry):
      * lisp/emacs-lisp/cl-macs.el (cl-compiler-macroexpand):
      * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand):
      * lisp/calc/calc.el (name): Use autoloadp & autoload-do-load.
      7abaf5cc
  22. 21 Jun, 2012 2 commits
  23. 28 May, 2012 1 commit
    • Martin Rudalics's avatar
      Ugly fix for bug#11556. · 5221ccb9
      Martin Rudalics authored
      * desktop.el (desktop-read): Clear previous and next buffers for all
      windows and bury *Messages* buffer (bug#11556).
      5221ccb9
  24. 13 May, 2012 1 commit
    • Stefan Monnier's avatar
      Move define-obsolete-variable-alias before the var's definition. · e5bd0a28
      Stefan Monnier authored
      * lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index):
      * lisp/tooltip.el (tooltip-hook):
      * lisp/textmodes/reftex-toc.el (reftex-toc-map):
      * lisp/textmodes/reftex-sel.el (reftex-select-label-map)
      (reftex-select-bib-map):
      * lisp/textmodes/reftex-index.el (reftex-index-map)
      (reftex-index-phrases-map):
      * lisp/speedbar.el (speedbar-syntax-table, speedbar-key-map):
      * lisp/progmodes/meta-mode.el (meta-mode-map):
      * lisp/novice.el (disabled-command-hook):
      * lisp/loadhist.el (unload-hook-features-list):
      * lisp/frame.el (blink-cursor):
      * lisp/files.el (find-file-not-found-hooks, write-file-hooks)
      (write-contents-hooks):
      * lisp/emulation/tpu-edt.el (GOLD-map):
      * lisp/emacs-lock.el (emacs-lock-from-exiting):
      * lisp/emacs-lisp/generic.el (generic-font-lock-defaults):
      * lisp/emacs-lisp/chart.el (chart-map):
      * lisp/dos-fns.el (register-name-alist):
      * lisp/dired-x.el (dired-omit-files-p):
      * lisp/desktop.el (desktop-enable):
      * lisp/cus-edit.el (custom-mode-hook):
      * lisp/buff-menu.el (buffer-menu-mode-hook):
      * lisp/bookmark.el (bookmark-read-annotation-text-func)
      (bookmark-exit-hooks):
      * lisp/allout.el (allout-mode-deactivate-hook)
      (allout-exposure-change-hook, allout-structure-added-hook)
      (allout-structure-deleted-hook, allout-structure-shifted-hook):
      * lisp/dirtrack.el (dirtrack-toggle, dirtrackp, dirtrack-debug-toggle)
      (dirtrack-debug): Move call to define-obsolete-variable-alias so it
      comes before the corresponding variable's definition.
      e5bd0a28
  25. 10 Feb, 2012 1 commit
  26. 11 Jan, 2012 1 commit
  27. 05 Jan, 2012 1 commit
  28. 23 Dec, 2011 1 commit
  29. 17 Nov, 2011 1 commit
  30. 14 Nov, 2011 1 commit
  31. 19 Oct, 2011 1 commit
    • Chong Yidong's avatar
      Fix minor mode docstrings for the new meaning of a nil ARG. · 06e21633
      Chong Yidong authored
      * abbrev.el (abbrev-mode):
      * allout.el (allout-mode):
      * autoinsert.el (auto-insert-mode):
      * autoarg.el (autoarg-mode, autoarg-kp-mode):
      * autorevert.el (auto-revert-mode, auto-revert-tail-mode)
      (global-auto-revert-mode):
      * battery.el (display-battery-mode):
      * composite.el (global-auto-composition-mode)
      (auto-composition-mode):
      * delsel.el (delete-selection-mode):
      * desktop.el (desktop-save-mode):
      * dired-x.el (dired-omit-mode):
      * dirtrack.el (dirtrack-mode):
      * doc-view.el (doc-view-minor-mode):
      * double.el (double-mode):
      * electric.el (electric-indent-mode, electric-pair-mode):
      * emacs-lock.el (emacs-lock-mode):
      * epa-hook.el (auto-encryption-mode):
      * follow.el (follow-mode):
      * font-core.el (font-lock-mode):
      * frame.el (auto-raise-mode, auto-lower-mode, blink-cursor-mode):
      * help.el (temp-buffer-resize-mode):
      * hilit-chg.el (highlight-changes-mode)
      (highlight-changes-visible-mode):
      * hi-lock.el (hi-lock-mode):
      * hl-line.el (hl-line-mode, global-hl-line-mode):
      * icomplete.el (icomplete-mode):
      * ido.el (ido-everywhere):
      * image-file.el (auto-image-file-mode):
      * image-mode.el (image-minor-mode):
      * iswitchb.el (iswitchb-mode):
      * jka-cmpr-hook.el (auto-compression-mode):
      * linum.el (linum-mode):
      * longlines.el (longlines-mode):
      * master.el (master-mode):
      * mb-depth.el (minibuffer-depth-indicate-mode):
      * menu-bar.el (menu-bar-mode):
      * minibuf-eldef.el (minibuffer-electric-default-mode):
      * mouse-sel.el (mouse-sel-mode):
      * msb.el (msb-mode):
      * mwheel.el (mouse-wheel-mode):
      * outline.el (outline-minor-mode):
      * paren.el (show-paren-mode):
      * recentf.el (recentf-mode):
      * reveal.el (reveal-mode, global-reveal-mode):
      * rfn-eshadow.el (file-name-shadow-mode):
      * ruler-mode.el (ruler-mode):
      * savehist.el (savehist-mode):
      * scroll-all.el (scroll-all-mode):
      * scroll-bar.el (scroll-bar-mode):
      * server.el (server-mode):
      * shell.el (shell-dirtrack-mode):
      * simple.el (auto-fill-mode, transient-mark-mode)
      (visual-line-mode, overwrite-mode, binary-overwrite-mode)
      (line-number-mode, column-number-mode, size-indication-mode)
      (auto-save-mode, normal-erase-is-backspace-mode, visible-mode):
      * strokes.el (strokes-mode):
      * time.el (display-time-mode):
      * t-mouse.el (gpm-mouse-mode):
      * tool-bar.el (tool-bar-mode):
      * tooltip.el (tooltip-mode):
      * type-break.el (type-break-mode-line-message-mode)
      (type-break-query-mode):
      * view.el (view-mode):
      * whitespace.el (whitespace-mode, whitespace-newline-mode)
      (global-whitespace-mode, global-whitespace-newline-mode):
      * xt-mouse.el (xterm-mouse-mode): Doc fix.
      
      * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix
      autogenerated docstring.
      06e21633
  32. 19 Apr, 2011 1 commit