aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-18 20:01:25 +0000
committerRichard M. Stallman1997-08-18 20:01:25 +0000
commitab1c7f352775e81baaa9137e87dca9afef6257f0 (patch)
treeefcb9d9c164822cc9ac94097fb0585fa6479f0e0
parentdd9d15d6379485dcd33117c60134ed1c49980dcb (diff)
downloademacs-ab1c7f352775e81baaa9137e87dca9afef6257f0.tar.gz
emacs-ab1c7f352775e81baaa9137e87dca9afef6257f0.zip
Customized.
-rw-r--r--lisp/server.el42
-rw-r--r--lisp/sort.el10
2 files changed, 36 insertions, 16 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 49fd8172c40..d46156d15e7 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -1,6 +1,6 @@
1;;; server.el --- Lisp code for GNU Emacs running as server process. 1;;; server.el --- Lisp code for GNU Emacs running as server process.
2 2
3;; Copyright (C) 1986, 1987, 1992, 1994, 1995 Free Software Foundation, Inc. 3;; Copyright (C) 1986, 87, 92, 94, 95, 96, 1997 Free Software Foundation, Inc.
4 4
5;; Author: William Sommerfeld <wesommer@athena.mit.edu> 5;; Author: William Sommerfeld <wesommer@athena.mit.edu>
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -75,17 +75,29 @@
75 75
76;;; Code: 76;;; Code:
77 77
78(defvar server-program (expand-file-name "emacsserver" exec-directory) 78(defgroup server nil
79 "*The program to use as the edit server.") 79 "Emacs running as a server process."
80 80 :group 'external)
81(defvar server-visit-hook nil 81
82 "*List of hooks to call when visiting a file for the Emacs server.") 82(defcustom server-program (expand-file-name "emacsserver" exec-directory)
83 83 "*The program to use as the edit server."
84(defvar server-switch-hook nil 84 :group 'server
85 "*List of hooks to call when switching to a buffer for the Emacs server.") 85 :type 'string)
86 86
87(defvar server-done-hook nil 87(defcustom server-visit-hook nil
88 "*List of hooks to call when done editing a buffer for the Emacs server.") 88 "*List of hooks to call when visiting a file for the Emacs server."
89 :group 'server
90 :type '(repeat function))
91
92(defcustom server-switch-hook nil
93 "*List of hooks to call when switching to a buffer for the Emacs server."
94 :group 'server
95 :type '(repeat function))
96
97(defcustom server-done-hook nil
98 "*List of hooks to call when done editing a buffer for the Emacs server."
99 :group 'server
100 :type '(repeat function))
89 101
90(defvar server-process nil 102(defvar server-process nil
91 "the current server process") 103 "the current server process")
@@ -109,10 +121,12 @@ When a buffer is marked as \"done\", it is removed from this list.")
109If nil, use the selected window. 121If nil, use the selected window.
110If it is a frame, use the frame's selected window.") 122If it is a frame, use the frame's selected window.")
111 123
112(defvar server-temp-file-regexp "^/tmp/Re\\|/draft$" 124(defcustom server-temp-file-regexp "^/tmp/Re\\|/draft$"
113 "*Regexp which should match filenames of temporary files 125 "*Regexp which should match filenames of temporary files
114which are deleted and reused after each edit 126which are deleted and reused after each edit
115by the programs that invoke the emacs server.") 127by the programs that invoke the emacs server."
128 :group 'server
129 :type 'regexp)
116 130
117(or (assq 'server-buffer-clients minor-mode-alist) 131(or (assq 'server-buffer-clients minor-mode-alist)
118 (setq minor-mode-alist (cons '(server-buffer-clients " Server") minor-mode-alist))) 132 (setq minor-mode-alist (cons '(server-buffer-clients " Server") minor-mode-alist)))
diff --git a/lisp/sort.el b/lisp/sort.el
index fcd8906b1f0..886d77eb40c 100644
--- a/lisp/sort.el
+++ b/lisp/sort.el
@@ -30,8 +30,14 @@
30 30
31;;; Code: 31;;; Code:
32 32
33(defvar sort-fold-case nil 33(defgroup sort nil
34 "*Non-nil if the buffer sort functions should ignore case.") 34 "Commands to sort text in an Emacs buffer."
35 :group 'data)
36
37(defcustom sort-fold-case nil
38 "*Non-nil if the buffer sort functions should ignore case."
39 :group 'sort
40 :type 'boolean)
35 41
36;;;###autoload 42;;;###autoload
37(defun sort-subr (reverse nextrecfun endrecfun &optional startkeyfun endkeyfun) 43(defun sort-subr (reverse nextrecfun endrecfun &optional startkeyfun endkeyfun)