Function: frameset-filter-unshelve-param

frameset-filter-unshelve-param is a byte-compiled function defined in frameset.el.gz.

Signature

(frameset-filter-unshelve-param CURRENT FILTERED PARAMETERS SAVING)

Documentation

When switching to a GUI frame, restore PREFIX:P parameter as P.

CURRENT must be of the form (PREFIX:P . value).

For the meaning of CURRENT, FILTERED, PARAMETERS and SAVING, see frameset-filter-alist.

Source Code

;; Defined in /usr/src/emacs/lisp/frameset.el.gz
(defun frameset-filter-unshelve-param (current filtered parameters saving)
  "When switching to a GUI frame, restore PREFIX:P parameter as P.
CURRENT must be of the form (PREFIX:P . value).

For the meaning of CURRENT, FILTERED, PARAMETERS and SAVING,
see `frameset-filter-alist'."
  (or saving
      (not (frameset-switch-to-gui-p parameters))
      (let* ((prefix:p (symbol-name (car current)))
	     (p (intern (substring prefix:p
				   (1+ (string-search ":" prefix:p)))))
	     (val (cdr current))
	     (found (assq p filtered)))
	(if (not found)
	    (cons p val)
	  (setcdr found val)
	  nil))))