summaryrefslogtreecommitdiff
path: root/lisp/frameset.el
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* Spelling fixes.Paul Eggert2013-08-151-1/+1
|
* lisp/frameset.el: Allow orphaned minibufferless frames.Juanma Barranquero2013-08-141-32/+49
| | | | | | | | | | | | (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.
* lisp/frameset.el: Use gv-setter declaration.Juanma Barranquero2013-08-141-8/+8
| | | | | (frameset--prop-setter): New function. (frameset-prop): Add gv-setter declaration.
* * lisp/frameset.el (frameset--make): Rename constructor from make-frameset.Stefan Monnier2013-08-131-20/+18
| | | | | (frameset-p, frameset-valid-p): Don't autoload. (frameset-valid-p): Use normal accessors.
* lisp/frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil.Juanma Barranquero2013-08-111-1/+1
|
* Move frameset-to-register stuff from register.el to frameset.el.Juanma Barranquero2013-08-091-0/+38
| | | | | | | | | | | | | | 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'.
* lisp/frameset.el (frameset-save): Check validity of the resulting frameset.Juanma Barranquero2013-08-081-19/+27
| | | | (frameset-valid-p): Doc fix.
* lisp/frameset.el: Doc fixes.Juanma Barranquero2013-08-081-2/+11
|
* lisp/frameset.el: Revert to built-in frameset-p; document slot accessors.Juanma Barranquero2013-08-081-67/+105
| | | | | | | | | | | (frameset): Do not disable creation of the default frameset-p predicate. Doc fix. (frameset-valid-p): New function, copied from the old predicate-p. Add additional checks. (frameset-restore): Check with frameset-valid-p. (frameset-p, frameset-version, frameset-timestamp, frameset-app) (frameset-name, frameset-description, frameset-properties) (frameset-states): Add docstring.
* lisp/frameset.el (frameset-p, frameset-prop): Doc fixes.Juanma Barranquero2013-08-081-3/+2
|
* lisp/frameset.el (frameset-restore): Doc fix.Juanma Barranquero2013-08-081-9/+9
|
* lisp/frameset.el: Convert `frameset' to vector and add new slots.Juanma Barranquero2013-08-081-194/+473
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* lisp/frameset.el: Doc fixes.Juanma Barranquero2013-08-061-28/+48
| | | | | | | | | (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>.
* lisp/frameset.el: Various fixes.Juanma Barranquero2013-08-061-14/+20
| | | | | | | | | | | | | (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.
* lisp/frameset.el: New frame-id functions.Juanma Barranquero2013-08-051-18/+38
| | | | | | | | (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.
* * lisp/frameset.el: Miscellaneous cleanups.Juanma Barranquero2013-08-051-116/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* * lisp/frameset.el: Add new predicate values for frameset-restore args.Juanma Barranquero2013-08-051-117/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* lisp/frameset.el (frameset--reuse-frame): Use correct frame-id to find frame.Juanma Barranquero2013-08-041-14/+14
| | | | | (frameset--set-id, frameset--process-minibuffer-frames) (frameset-restore): Rename parameter `frameset-id' to `frame-id'.
* lisp/frameset.el: Fix typos and autoload cookies.Juanma Barranquero2013-08-041-5/+5
| | | | | | (frameset-p, frameset-save): Fix autoload cookies. (frameset-filter-minibuffer): Doc fix. (frameset-restore): Fix autoload cookie. Fix typo in docstring.
* lisp/frameset.el (frameset-prop): Preserve `setf' semantics in setter.Juanma Barranquero2013-08-031-5/+7
|
* lisp/frameset.el (frameset-prop): New function and setter.Juanma Barranquero2013-08-031-2/+18
| | | | (frameset-save): Do not modify frame list passed by the caller.
* lisp/frameset.el (frameset-filter-params): Fix order of arguments.Juanma Barranquero2013-08-021-1/+1
|
* lisp/desktop.el: Move code related to saving frames to frameset.el.Juanma Barranquero2013-08-021-0/+675
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.