Changeset 3841
- Timestamp:
- 2005年09月03日 04時16分05秒 (3 years ago)
- Files:
-
- trunk/lisp/ChangeLog.Meadow (modified) (2 diffs)
- trunk/lisp/international/mw32misc.el (modified) (4 diffs)
- trunk/nt/ChangeLog.Meadow (modified) (1 diff)
- trunk/nt/dot.emacs.ja (modified) (1 diff)
- trunk/src/ChangeLog.Meadow (modified) (1 diff)
- trunk/src/callproc.c (modified) (3 diffs)
- trunk/src/process.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/ChangeLog.Meadow
r3839 r3841 1 2005-09-03 Kyotaro HORIGUCHI <horiguti@meadowy.org> 2 3 * international/mw32misc.el (mw32-process-wrapper-alist): Alter 4 comment after the change of format. 5 (set-process-connection-type-pty): New function. 6 (find-process-wrapper-function): Handle new data structure. 7 (general-process-argument-editing-function): Ditto. 8 1 9 2005-09-02 Masayuki FUJII <boochang@m4.kcn.ne.jp> 2 10 … … 6 14 7 15 * international/mw32script.el (mw32script-resolve-script): Make 8 work buffer singlebyte to ensure return strings are singlebyte.16 work buffer unibyte to ensure return strings are unibyte. 9 17 10 18 2005-08-28 MIYOSHI Masanori <miyoshi@meadowy.org> trunk/lisp/international/mw32misc.el
r3805 r3841 884 884 885 885 (defvar mw32-process-wrapper-alist nil 886 "Define association between progra pm to invoke and process wrapper.887 The form t is ((PATTERN-OR-FUN . VAL) ...).886 "Define association between program to invoke and process wrapper. 887 The format is ((PATTERN-OR-FUN . VAL) ...). 888 888 PATTERN-OR-FUN is a regular expression matching a program name, 889 889 or a function checking a program name. … … 891 891 program name of the process and check if the process should be 892 892 invoked by a wrapper program. 893 VAL is a program name, or a cons of program names. 894 If VAL is a program name, it is always invoked as a wrapper program. 895 If VAL is a cons of program names, the car part is used when 896 process is connected on pipe, and the cdr part is used when pty. 897 Nil means no wrapper program. 893 894 VAL is a wrapper description WRAPPER, or a cons of WRAPPER's. 895 If VAL is a WRAPPER, it is always used as a wrapper description. 896 If VAL is a cons of WRAPPER's, the car part is used when process 897 is connected on pipe, and the cdr part is used when pty. 898 899 If WRAPPER is a program name PROG, it is invoked as a wrapper 900 program. 901 If WRAPPER is a cons of PROG and lisp function LISPFUN, LISPFUN 902 is called in the sequence of setting up the process. LISPFUN may 903 refer to the two variables `mw32-process-expects-pty' and 904 `mw32-process-under-setup'. 905 906 Each WRAPPER may be nil. 898 907 899 908 See also the function `find-process-wrapper-function'.") … … 918 927 (setq elem nil))) 919 928 (setq ret 920 (if (consp elem) 929 (if (and (consp elem) 930 (or (consp (car elem)) 931 (consp (cdr elem)) 932 (not (functionp (cdr elem))))) 933 ;;; pair of WRAPPER's 921 934 (if mw32-process-expects-pty (cdr elem) (car elem)) 935 ;;; a WRAPPER 922 936 elem)) 923 (if (stringp ret) 924 (executable-find ret) 925 nil)))) 937 (cond 938 ((stringp ret) 939 (executable-find ret)) 940 ((and (consp ret) 941 (stringp (car ret)) 942 (functionp (cdr ret))) 943 (cons (executable-find (car ret)) (cdr ret))) 944 (t nil))))) 945 946 (defun set-process-connection-type-pty () 947 "Set pty_flag of under-setup process to t." 948 (mw32-set-pty-flag 'pty mw32-process-under-setup)) 926 949 927 950 (defun general-process-argument-editing-function … … 929 952 (let* ((wrapper (find-process-wrapper-function (car argument))) 930 953 (argtmp argument)) 931 (if wrapper 932 (setq argument (cons wrapper argument))) 954 (cond 955 ((stringp wrapper) 956 (setq argument (cons wrapper argument))) 957 ((consp wrapper) 958 (setq argument (cons (car wrapper) argument)) 959 (funcall (cdr wrapper)) 960 (setq wrapper (car wrapper)))) 961 933 962 (setq argument (cond ((eq quoting 'msvc) 934 963 (msvc-process-argument-quoting argument)) trunk/nt/ChangeLog.Meadow
r3839 r3841 1 2005-09-03 Kyotaro HORIGUCHI <horiguti@meadowy.org> 2 3 * dot.emacs.jp: Alter sample setting of fakecygpty. 4 1 5 2005-09-02 Masayuki FUJII <boochang@m4.kcn.ne.jp> 2 6 trunk/nt/dot.emacs.ja
r3766 r3841 223 223 ;; (setq mw32-process-wrapper-alist 224 224 ;; '(("/\\(bash\\|tcsh\\|svn\\|ssh\\|gpg[esvk]?\\)\\.exe" . 225 ;; (nil . "fakecygpty.exe"))))225 ;; (nil . ("fakecygpty.exe" . set-process-connection-type-pty))))) 226 226 227 227 ;;; trunk/src/ChangeLog.Meadow
r3839 r3841 1 2005-09-03 Kyotaro HORIGUCHI <horiguti@meadowy.org> 2 3 * process.c (Fmw32_set_pty_flag): New Lisp function. 4 (create_process): Correct data type of 5 Vmw32_process_expects_pty. Set process under setup to 6 Vmw32_process_under_setup. 7 8 * callproc.c (Vmw32_process_under_setup): New Lisp variable. 9 (Fcall_process): Set nil to Vmw32_process_under_setup. 10 1 11 2005-09-02 Masayuki FUJII <boochang@m4.kcn.ne.jp> 2 12 trunk/src/callproc.c
r3809 r3841 116 116 #ifdef MEADOW 117 117 int Vmw32_process_expects_pty; 118 Lisp_Object Vmw32_process_under_setup; 118 119 #endif 119 120 … … 641 642 #ifdef MEADOW 642 643 Vmw32_process_expects_pty = 0; 644 Vmw32_process_under_setup = Qnil; 643 645 #endif 644 646 pid = child_setup (filefd, fd1, fd_error, (char **) new_argv, … … 1731 1733 #ifdef MEADOW 1732 1734 DEFVAR_BOOL ("mw32-process-expects-pty", &Vmw32_process_expects_pty, 1733 doc: /* Indicate wheather invoking processexpects pty.1735 doc: /* Indicate wheather the process currently under startup sequence expects pty. 1734 1736 This variable has meaning only within process argument edithing functions. 1735 See also `find-process-wrapper-function' and `general-process-argument-editing-function'. */); 1737 See also `find-process-wrapper-function' and 1738 `general-process-argument-editing-function'. */); 1736 1739 Vmw32_process_expects_pty = 1; 1740 1741 DEFVAR_LISP ("mw32-process-under-setup", &Vmw32_process_under_setup, 1742 doc: /* The process currently under startup sequence. 1743 This variable has meaning only within process argument edithing functions. 1744 See also `mw32-process-expects-pty'. */); 1745 Vmw32_process_under_setup = Qnil; 1737 1746 #endif 1738 1747 trunk/src/process.c
r3809 r3841 1707 1707 } 1708 1708 1709 #ifdef MEADOW 1710 DEFUN ("mw32-set-pty-flag", Fmw32_set_pty_flag, Smw32_set_pty_flag, 1711 1, 2, 0, 1712 doc: /* Set pty_flag of PROCESS for pty faking. 1713 Set pty_flag if ISPTY is no-nil, and clear if nil. 1714 PROCESS may be a process, a buffer, the name of a process or buffer, or 1715 nil, indicating the current buffer's process. */) 1716 (ispty, process) 1717 Lisp_Object ispty, process; 1718 { 1719 Lisp_Object proc; 1720 1721 if (DATAGRAM_CONN_P (process)) 1722 return process; 1723 1724 proc = get_process (process); 1725 1726 if (NILP (ispty)) 1727 XPROCESS (proc)->pty_flag = 0; 1728 else 1729 XPROCESS (proc)->pty_flag = 1; 1730 1731 return process; 1732 } 1733 #endif 1709 1734 /* This function is the unwind_protect form for Fstart_process. If 1710 1735 PROC doesn't have its pid set, then we know someone has signaled … … 2092 2117 #ifdef MEADOW 2093 2118 { 2094 extern Lisp_Object Vmw32_process_expects_pty; 2119 extern int Vmw32_process_expects_pty; 2120 extern Lisp_Object Vmw32_process_under_setup; 2121 Vmw32_process_under_setup = process; 2122 2095 2123 if (Vprocess_connection_type != Qnil) 2096 2124 Vmw32_process_expects_pty = 1; … … 6891 6919 defsubr (&Sprocess_list); 6892 6920 defsubr (&Sstart_process); 6921 #ifdef MEADOW 6922 defsubr (&Smw32_set_pty_flag); 6923 #endif 6893 6924 #ifdef HAVE_SOCKETS 6894 6925 defsubr (&Sset_network_process_option);
