1. 05 Apr, 2015 1 commit
    • Alan Mackenzie's avatar
      Rationalize use of c[ad]+r, expunging cl-c[ad]\{3,4\}r. · 2056db3f
      Alan Mackenzie authored
      Also expunge eudc-c[ad]+r.
      
      * subr.el (internal--compiler-macro-cXXr): "New" function, copied
      from cl--compiler-macro-cXXr.
      (caar, cadr, cdar, cddr): Change from defsubsts to defuns with
      the above compiler-macro.
      
      * net/eudc.el (eudc-cadr, eudc-cdar, eudc-caar, eudc-cdaar): Remove.
      
      * emacs-lisp/cl.el (Top level dolist doing defaliases): Remove
      caaar, etc., from list of new alias functions.
      
      * emacs-lisp/cl-lib.el (cl-caaar, etc): Rename to caaar, etc.
      (gen-cXXr--rawname, gen-cXXr-all-cl-aliases): New function/macro
      which generate obsolete cl- aliases for caaar, etc.  Invoke them.
      
      * desktop.el:
      * edmacro.el:
      * emacs-lisp/cl-macs.el:
      * frameset.el:
      * ibuffer.el:
      * mail/footnote.el:
      * net/dbus.el:
      * net/eudc-export.el:
      * net/eudc.el:
      * net/eudcb-ph.el:
      * net/rcirc.el:
      * net/secrets.el:
      * play/5x5.el:
      * play/decipher.el:
      * play/hanoi.el:
      * progmodes/hideif.el:
      * ses.el: Replace cl-caaar, eudc-cadr, etc. with caaar and cadr, etc.
      2056db3f
  2. 27 Feb, 2015 1 commit
    • Mark Laws's avatar
      Support daemon mode on MS-Windows (bug#19688) · 805fe507
      Mark Laws authored
       src/emacs.c <w32_daemon_event> [WINDOWSNT]: New global var.
       (main) [WINDOWSNT]: Initialize it to NULL.  Create the event to
       signal clients we are ready for connections.
       (Fdaemon_initialized): Use DAEMON_RUNNING.
       [WINDOWSNT]: MS-Windows specific code to signal clients we are
       ready for connections.
       src/lisp.h (DAEMON_RUNNING): New macro, encapsulates Posix and
       MS-Windows conditions for running in daemon mode.
       src/minibuf.c (read_minibuf): Use DAEMON_RUNNING.
       src/keyboard.c (kbd_buffer_get_event): Use DAEMON_RUNNING.
       src/dispnew.c (init_display) [WINDOWSNT]: Initialize frames/terminal
       even in daemon mode.
      
       nt/inc/ms-w32.h (W32_DAEMON_EVENT): New macro.
      
       lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Don't reject empty
       arguments for --alternate-editor.
       (print_help_and_exit) [WINDOWSNT]: Don't refrain from advertising
       empty arguments for --alternate-editor.
       (start_daemon_and_retry_set_socket) [WINDOWSNT]: MS-Windows
       specific code to start Emacs in daemon mode and wait for it to be
       ready for client connections.
      
       lisp/server.el (server-process-filter): Force GUI frames on
       MS-Windows in daemon mode, even if a TTY frame was requested.
       lisp/frameset.el (frameset-keep-original-display-p): Don't assume
       windows-nt cannot be in daemon mode.
       lisp/frame.el (window-system-for-display): Don't assume windows-nt
       cannot be in daemon mode.
      805fe507
  3. 01 Jan, 2015 2 commits
  4. 01 Oct, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/subr.el (alist-get): New accessor. · a57fa964
      Stefan Monnier authored
      * lisp/emacs-lisp/gv.el (alist-get): Provide expander.
      * lisp/winner.el (winner-remember):
      * lisp/tempo.el (tempo-use-tag-list):
      * lisp/progmodes/gud.el (minor-mode-map-alist):
      * lisp/international/mule-cmds.el (define-char-code-property):
      * lisp/frameset.el (frameset-filter-params):
      * lisp/files.el (dir-locals-set-class-variables):
      * lisp/register.el (get-register, set-register):
      * lisp/calc/calc-yank.el (calc-set-register): Use it.
      * lisp/ps-print.el (ps-get, ps-put, ps-del): Mark as obsolete.
      * lisp/tooltip.el (tooltip-set-param): Mark as obsolete.
      (tooltip-show): Use alist-get instead.
      * lisp/ses.el (ses--alist-get): Remove.  Use alist-get instead.
      * admin/unidata/unidata-gen.el (unidata-gen-table-word-list): Use alist-get
      and cl-incf.
      a57fa964
  5. 27 Mar, 2014 1 commit
  6. 24 Mar, 2014 1 commit
  7. 23 Mar, 2014 1 commit
  8. 21 Mar, 2014 1 commit
  9. 12 Mar, 2014 2 commits
  10. 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
  11. 08 Mar, 2014 1 commit
  12. 05 Mar, 2014 1 commit
  13. 19 Feb, 2014 2 commits
  14. 18 Feb, 2014 1 commit
  15. 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
  16. 15 Feb, 2014 1 commit
  17. 11 Feb, 2014 1 commit
  18. 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
  19. 01 Jan, 2014 1 commit
  20. 16 Aug, 2013 1 commit
  21. 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
  22. 13 Aug, 2013 1 commit
  23. 11 Aug, 2013 1 commit
  24. 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
  25. 08 Aug, 2013 5 commits
  26. 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
  27. 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
  28. 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