1. 12 Mar, 2014 2 commits
  2. 11 Mar, 2014 2 commits
    • Juanma Barranquero's avatar
      lisp/frameset.el: Let-bind frameset--target-display. · baf8d0ac
      Juanma Barranquero authored
      * frameset.el (frameset--target-display): Remove definition; declare.
      (frameset-save, frameset-restore): Let-bind frameset--target-display.
      baf8d0ac
    • Juanma Barranquero's avatar
      lisp/frameset.el: Separate frame reusing from cleaning up. · 4538c058
      Juanma Barranquero authored
      * lisp/desktop.el (desktop-restore-forces-onscreen)
        (desktop-restore-reuses-frames): Use non-keyword values.
        (desktop-restore-frameset): Use CLEANUP-FRAMES arg of frameset-restore.
      
      * lisp/frameset.el: Separate options for reusing frames and cleaning up.
        (frameset--reuse-list): Remove definition; declare.
        (frameset--action-map): Declare.
        (frameset--find-frame-if): Doc fix.
        (frameset--restore-frame): Cache frame action.
        (frameset-restore): New keyword arg CLEANUP-FRAMES, allows to select
        how to clean up the frame list after restoring.  Remove cleaning
        options from REUSE-FRAMES.  Change all keyword values to symbols.
        (frameset--jump-to-register): Simplify by using CLEANUP-FRAMES.
      4538c058
  3. 08 Mar, 2014 1 commit
  4. 05 Mar, 2014 1 commit
  5. 19 Feb, 2014 2 commits
  6. 18 Feb, 2014 1 commit
  7. 17 Feb, 2014 1 commit
    • Juanma Barranquero's avatar
      lisp/frameset.el: Fix bug#16748. · c6463340
      Juanma Barranquero authored
      * lisp/frameset.el (frameset-cfg-id): New function.
      (frameset--reuse-frame, frameset-restore): Use it.
      (frameset--jump-to-register): Try harder to reuse frames.
      c6463340
  8. 15 Feb, 2014 1 commit
  9. 11 Feb, 2014 1 commit
  10. 03 Feb, 2014 2 commits
    • Glenn Morris's avatar
      Tidy up some -to-register function argument specs · 7bcbca40
      Glenn Morris authored
      * lisp/register.el (window-configuration-to-register)
      (frame-configuration-to-register): Unadvertise unused argument.
      
      * lisp/frameset.el (frameset-to-register): Remove unused argument.
      7bcbca40
    • Glenn Morris's avatar
      Be more consistent in using register-read-with-preview to read registers · 6a6b8e40
      Glenn Morris authored
      * frameset.el (frameset-to-register):
      * kmacro.el (kmacro-to-register):
      * register.el (increment-register):
      * calc/calc-yank.el (calc-copy-to-register, calc-insert-register)
      (calc-append-to-register, calc-prepend-to-register):
      * play/gametree.el (gametree-layout-to-register)
      (gametree-apply-register-layout):
      * textmodes/picture.el (picture-clear-rectangle-to-register)
      (picture-yank-rectangle-from-register):
      * vc/emerge.el (emerge-combine-versions-register):
      Use register-read-with-preview to read registers.
      
      * cedet/semantic/senator.el (senator-copy-tag-to-register):
      Use register-read-with-preview, if available.
      
      * calculator.el, emulation/viper-cmd.el: Comments.
      6a6b8e40
  11. 01 Jan, 2014 1 commit
  12. 16 Aug, 2013 1 commit
  13. 14 Aug, 2013 2 commits
    • Juanma Barranquero's avatar
      lisp/frameset.el: Allow orphaned minibufferless frames. · 14d1e463
      Juanma Barranquero authored
      (frameset-filter-minibuffer): Deal with the case that the minibuffer
      parameter was already set in FILTERED.  Doc fix.
      (frameset--record-minibuffer-relationships): Allow saving a
      minibufferless frame without its corresponding minibuffer frame.
      (frameset--reuse-frame): Accept a match from an orphaned minibufferless
      frame, if the frame id matches.
      (frameset--minibufferless-last-p): Sort non-orphaned minibufferless
      frames before orphaned ones.
      (frameset-restore): Warn about orphaned windows, instead of error out.
      14d1e463
    • Juanma Barranquero's avatar
      lisp/frameset.el: Use gv-setter declaration. · 62f33bae
      Juanma Barranquero authored
      (frameset--prop-setter): New function.
      (frameset-prop): Add gv-setter declaration.
      62f33bae
  14. 13 Aug, 2013 1 commit
  15. 11 Aug, 2013 1 commit
  16. 09 Aug, 2013 1 commit
    • Juanma Barranquero's avatar
      Move frameset-to-register stuff from register.el to frameset.el. · 77187e6f
      Juanma Barranquero authored
      lisp/register.el (frameset-frame-id, frameset-frame-with-id, frameset-p)
      (frameset-restore, frameset-save, frameset-session-filter-alist):
      Remove declarations.
      (register-alist): Doc fix.
      (frameset-to-register): Move to frameset.el.
      (jump-to-register, describe-register-1): Remove frameset-specific code.
      
      lisp/frameset.el (frameset-p): Add autoload cookie.
      (frameset--jump-to-register): New function, based on code moved from
      register.el.
      (frameset-to-register): Move from register.el.  Adapt to `registerv'.
      77187e6f
  17. 08 Aug, 2013 5 commits
  18. 07 Aug, 2013 1 commit
    • Juanma Barranquero's avatar
      lisp/frameset.el: Convert `frameset' to vector and add new slots. · a912c016
      Juanma Barranquero authored
      (frameset): Use type vector, not list (incompatible change).
      Do not declare a new constructor, use the default one.
      Upgrade suggested properties `app', `name' and `desc' to slots `app',
      `name' and `description', respectively, and add read-only slot `timestamp'.
      Doc fixes.
      (frameset-copy, frameset-persistent-filter-alist)
      (frameset-filter-alist, frameset-switch-to-gui-p)
      (frameset-switch-to-tty-p, frameset-filter-tty-to-GUI)
      (frameset-filter-sanitize-color, frameset-filter-minibuffer)
      (frameset-filter-iconified, frameset-keep-original-display-p):
      Doc fixes.
      (frameset-filter-shelve-param, frameset-filter-unshelve-param):
      Rename from frameset-filter-(save|restore)-param.  All callers changed.
      Doc fix.
      (frameset-p): Adapt to change to vector and be more thorough.
      Change arg name to OBJECT.  Doc fix.
      (frameset-prop): Rename arg PROP to PROPERTY.  Doc fix.
      (frameset-session-filter-alist): Rename from frameset-live-filter-alist.
      All callers changed.
      (frameset-frame-with-id): Rename from frameset-locate-frame-id.
      All callers changed.
      (frameset--record-minibuffer-relationships): Rename from
      frameset--process-minibuffer-frames.  All callers changed.
      (frameset-save): Add new keyword arguments APP, NAME and DESCRIPTION.
      Use new default constructor (again).  Doc fix.
      (frameset--find-frame-if): Rename from `frameset--find-frame.
      All callers changed.
      (frameset--reuse-frame): Rename arg FRAME-CFG to PARAMETERS.
      (frameset--initial-params): Rename arg FRAME-CFG to PARAMETERS.
      Doc fix.
      (frameset--restore-frame): Rename args FRAME-CFG and WINDOW-CFG to
      PARAMETERS and WINDOW-STATE, respectively.
      (frameset-restore): Add new keyword argument PREDICATE.
      Reset frameset--target-display to nil.  Doc fix.
      
      lisp/desktop.el (desktop-save-frameset): Use new frameset-save args.
      Use lexical-binding.
      a912c016
  19. 06 Aug, 2013 2 commits
    • Juanma Barranquero's avatar
      lisp/frameset.el: Doc fixes. · 024b38fc
      Juanma Barranquero authored
      (frameset, frameset-filter-alist, frameset-filter-params, frameset-save)
      (frameset--reuse-frame, frameset--minibufferless-last-p, frameset-restore):
      Doc fixes.
      (frameset-compute-pos): Rename from frameset--compute-pos, and add docstring.
      (frameset-move-onscreen): Use frameset-compute-pos.
      Most changes suggested by Drew Adams <drew.adams@oracle.com>.
      024b38fc
    • Juanma Barranquero's avatar
      lisp/frameset.el: Various fixes. · 307764cc
      Juanma Barranquero authored
      (frameset-p): Don't check non-nullness of the `properties'
      slot , which can indeed be nil.
      (frameset-live-filter-alist, frameset-persistent-filter-alist):
      Move entry for `left' from persistent to live filter alist.
      (frameset-filter-alist, frameset--minibufferless-last-p, frameset-save):
      Doc fixes.
      (frameset-filter-params): When restoring a frame, copy items added to
      `filtered', to avoid unwittingly modifying the original parameters.
      (frameset-move-onscreen): Rename from frameset--move-onscreen.  Doc fix.
      (frameset--restore-frame): Fix reference to frameset-move-onscreen.
      307764cc
  20. 05 Aug, 2013 2 commits
    • Juanma Barranquero's avatar
      lisp/frameset.el: New frame-id functions. · 38276e01
      Juanma Barranquero authored
      (frameset--set-id): Doc fix.
      (frameset-frame-id, frameset-frame-id-equal-p)
      (frameset-locate-frame-id): New functions.
      (frameset--process-minibuffer-frames, frameset--reuse-frame)
      (frameset-restore): Use them.
      38276e01
    • Juanma Barranquero's avatar
      * lisp/frameset.el: Miscellaneous cleanups. · 063233c3
      Juanma Barranquero authored
        (frameset): Add docstring.  Move :version property to its
        own `version' slot.
        (frameset-copy): Rename from copy-frameset.
        (frameset-p): Check more thoroughly.
        (frameset-prop): Do not check for :version, which is no longer a prop.
        (frameset-live-filter-alist, frameset-persistent-filter-alist):
        Use new :never value instead of t.
        (frameset-filter-alist): Expand and clarify docstring.
        (frameset-filter-tty-to-GUI, frameset-filter-sanitize-color)
        (frameset-filter-minibuffer, frameset-filter-save-param)
        (frameset-filter-restore-param, frameset-filter-iconified):
        Add pointer to docstring of frameset-filter-alist.
        (frameset-filter-params): Rename filter values to be more meaningful:
        :never instead of t, and reverse the meanings of :save and :restore.
        (frameset--process-minibuffer-frames): Clarify error message.
        (frameset-save): Avoid unnecessary and confusing call to framep.
        Use new BOA constructor for framesets.
        (frameset--reuse-list): Doc fix.
        (frameset--restore-frame): Rename from frameset--get-frame.  Doc fix.
        (frameset--minibufferless-last-p): Rename from frameset--sort-states.
        (frameset-minibufferless-first-p): Doc fix.
        Rename from frameset-sort-frames-for-deletion.
        (frameset-restore): Doc fixes.  Use new function names.
        Most changes suggested by Drew Adams <drew.adams@oracle.com>.
      
      * lisp/desktop.el (desktop-clear): Use new name of sort predicate.
      063233c3
  21. 04 Aug, 2013 3 commits
    • Juanma Barranquero's avatar
      * lisp/frameset.el: Add new predicate values for frameset-restore args. · d5671a82
      Juanma Barranquero authored
        (frameset-live-filter-alist, frameset-persistent-filter-alist):
        New variables.
        (frameset-filter-alist): Use them.  Add autoload cookie.
        (frameset-filter-tty-to-GUI): Move from desktop.el and rename.
        (frameset--set-id, frameset--reuse-frame): Rename `frame-id' to
        `frameset--id' (it's supposed to be internal to frameset.el).
        (frameset--process-minibuffer-frames): Ditto.  Doc fix.
        (frameset--initial-params): New function.
        (frameset--get-frame): Use it.  Doc fix.
        (frameset--move-onscreen): Accept new PRED value for FORCE-ONSCREEN.
        Accept :all, not 'all.
        (frameset-restore): Add new predicate values for FORCE-ONSCREEN and
        FORCE-DISPLAY.  Use :keywords for constant arguments to avoid collision
        with fbound symbols.  Fix frame id matching, and remove matching ids if
        the frame being restored is deleted.  Obey :delete.
      
      * lisp/desktop.el (desktop-restore-forces-onscreen)
        (desktop-restore-reuses-frames): Document :keyword constant values.
        (desktop-filter-parameters-alist): Remove, now identical to
        frameset-filter-alist.
        (desktop--filter-tty*): Remove, moved to frameset.el.
        (desktop-save-frameset, desktop-restore-frameset):
        Do not pass :filters argument.
      d5671a82
    • Juanma Barranquero's avatar
      lisp/frameset.el (frameset--reuse-frame): Use correct frame-id to find frame. · a04d36a0
      Juanma Barranquero authored
      (frameset--set-id, frameset--process-minibuffer-frames)
      (frameset-restore): Rename parameter `frameset-id' to `frame-id'.
      a04d36a0
    • Juanma Barranquero's avatar
      lisp/frameset.el: Fix typos and autoload cookies. · 51d30f2c
      Juanma Barranquero authored
      (frameset-p, frameset-save): Fix autoload cookies.
      (frameset-filter-minibuffer): Doc fix.
      (frameset-restore): Fix autoload cookie.  Fix typo in docstring.
      51d30f2c
  22. 03 Aug, 2013 2 commits
  23. 02 Aug, 2013 2 commits
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
      lisp/desktop.el: Move code related to saving frames to frameset.el. · 9421876d
      Juanma Barranquero authored
      Require frameset.
      (desktop-restore-frames): Doc fix.
      (desktop-restore-reuses-frames): Rename from
      desktop-restoring-reuses-frames.
      (desktop-saved-frameset): Rename from desktop-saved-frame-states.
      (desktop-clear): Clear frames too.
      (desktop-filter-parameters-alist): Set from frameset-filter-alist.
      (desktop--filter-tty*, desktop-save, desktop-read):
      Use frameset functions.
      (desktop-before-saving-frames-functions, desktop--filter-*-color)
      (desktop--filter-minibuffer, desktop--filter-restore-desktop-parm)
      (desktop--filter-save-desktop-parm, desktop--filter-iconified-position)
      (desktop-restore-in-original-display-p, desktop--filter-frame-parms)
      (desktop--process-minibuffer-frames, desktop-save-frames)
      (desktop--reuse-list, desktop--compute-pos, desktop--move-onscreen)
      (desktop--find-frame, desktop--select-frame, desktop--make-frame)
      (desktop--sort-states, desktop-restoring-frames-p)
      (desktop-restore-frames): Remove.  Most code moved to frameset.el.
      (desktop-restoring-frameset-p, desktop-restore-frameset)
      (desktop--check-dont-save, desktop-save-frameset): New functions.
      (desktop--app-id): New constant.
      (desktop-first-buffer, desktop-buffer-ok-count)
      (desktop-buffer-fail-count): Move before first use.
      lisp/frameset.el: New file.
      9421876d