1. 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
  2. 08 Aug, 2013 5 commits
  3. 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
  4. 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
  5. 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
  6. 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
  7. 03 Aug, 2013 2 commits
  8. 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