~ubuntu-branches/ubuntu/gutsy/ess/gutsy

« back to all changes in this revision

Viewing changes to lisp/essnt204.el

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2005-03-22 13:48:07 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050322134807-9mpmbb799jugf248
Tags: 5.2.6-1
* New upstream release
* chmod -R u+w on orig source

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
;;;; ATTN:  THESE FUNCTIONS HAVE BEEN INCORPORATED INTO ess-emcs.el
2
 
;;;; PLEASE GET THEM FROM THERE ALONG WITH THE REST OF THE
3
 
;;;; EMACS/XEMACS VARIANT ISSUES
4
 
 
5
 
;;;; essnt204.el -- NTemacs functions introduced in NTemacs 20.4
6
 
;;;; that are needed for essa-sas.el to automatically select the correct
7
 
;;;; `ess-sas-submit-method'.  Also, necessary for essl-bug.el.
8
 
 
9
 
;; Modified: $Date: 2001/06/13 20:00:50 $
10
 
;; Version: $Revision: 5.4 $
11
 
;; RCS: $Id: essnt204.el,v 5.4 2001/06/13 20:00:50 ess Exp $
12
 
 
13
 
;; These definitions are for Emacs versions < 20.4 or XEmacs
14
 
;; These are taken verbatim from the file emacs-20.6/lisp/w32-fns.el
15
 
;;
16
 
;; Note: 20.3 and 19.x NTemacs users are strongly encouraged to
17
 
;; upgrade to version 20.4 or higher.
18
 
;;
19
 
;; NTemacs 20.2 is not supported by ESS.
20
 
 
21
 
;; NTemacs 19.x needs these
22
 
(if (not (boundp 'w32-system-shells))
23
 
      (defvar w32-system-shells '("cmd" "cmd.exe" "command" "command.com"
24
 
                                  "4nt" "4nt.exe" "4dos" "4dos.exe"
25
 
                                  "ndos" "ndos.exe")
26
 
        "List of strings recognized as Windows NT/9X system shells.")
27
 
)
28
 
 
29
 
(if (not (fboundp 'w32-system-shell-p))
30
 
      (defun w32-system-shell-p (shell-name)
31
 
        (and shell-name
32
 
             (member (downcase (file-name-nondirectory shell-name))
33
 
                     w32-system-shells)))
34
 
)
35
 
 
36
 
(if (not (fboundp 'w32-shell-name))
37
 
      (defun w32-shell-name ()
38
 
        "Return the name of the shell being used."
39
 
        (or (and (boundp 'explicit-shell-file-name) explicit-shell-file-name)
40
 
            (getenv "ESHELL")
41
 
            (getenv "SHELL")
42
 
            (and (w32-using-nt) "cmd.exe")
43
 
            "command.com"))
44
 
)
45
 
 
46
 
;; NTemacs 20.3 needs this
47
 
(defun w32-shell-dos-semantics ()
48
 
  "Return t if the interactive shell being used expects msdos shell semantics."
49
 
  (or (w32-system-shell-p (w32-shell-name))
50
 
      (and (member (downcase (file-name-nondirectory (w32-shell-name)))
51
 
                   '("cmdproxy" "cmdproxy.exe"))
52
 
           (w32-system-shell-p (getenv "COMSPEC")))))
53
 
 
54
 
 
55
 
;;; essnt204.el ends here