aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorVinicius Jose Latorre2007-04-09 23:10:00 +0000
committerVinicius Jose Latorre2007-04-09 23:10:00 +0000
commitc82273322857ade12f3ffe921e0526b9d7b96db5 (patch)
tree82b4a6937c4af057d7b5bfb3c77b2a0cf247b2de /lisp
parentb620d747ae09f552b1985f7086cdf16eaa20adf6 (diff)
downloademacs-c82273322857ade12f3ffe921e0526b9d7b96db5.tar.gz
emacs-c82273322857ade12f3ffe921e0526b9d7b96db5.zip
Fix indentation.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el64
1 files changed, 36 insertions, 28 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 1a70c53a879..db69a3f6f5b 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -579,7 +579,7 @@ KEY is a string or vector representing a sequence of keystrokes."
579;;;; substitute-key-definition and its subroutines. 579;;;; substitute-key-definition and its subroutines.
580 580
581(defvar key-substitution-in-progress nil 581(defvar key-substitution-in-progress nil
582 "Used internally by `substitute-key-definition'.") 582 "Used internally by `substitute-key-definition'.")
583 583
584(defun substitute-key-definition (olddef newdef keymap &optional oldmap prefix) 584(defun substitute-key-definition (olddef newdef keymap &optional oldmap prefix)
585 "Replace OLDDEF with NEWDEF for any keys in KEYMAP now defined as OLDDEF. 585 "Replace OLDDEF with NEWDEF for any keys in KEYMAP now defined as OLDDEF.
@@ -821,11 +821,11 @@ and `event-end' functions."
821(defun posn-set-point (position) 821(defun posn-set-point (position)
822 "Move point to POSITION. 822 "Move point to POSITION.
823Select the corresponding window as well." 823Select the corresponding window as well."
824 (if (not (windowp (posn-window position))) 824 (if (not (windowp (posn-window position)))
825 (error "Position not in text area of window")) 825 (error "Position not in text area of window"))
826 (select-window (posn-window position)) 826 (select-window (posn-window position))
827 (if (numberp (posn-point position)) 827 (if (numberp (posn-point position))
828 (goto-char (posn-point position)))) 828 (goto-char (posn-point position))))
829 829
830(defsubst posn-x-y (position) 830(defsubst posn-x-y (position)
831 "Return the x and y coordinates in POSITION. 831 "Return the x and y coordinates in POSITION.
@@ -949,20 +949,26 @@ is converted into a string by expressing it in decimal."
949;;;; Obsolescence declarations for variables, and aliases. 949;;;; Obsolescence declarations for variables, and aliases.
950 950
951(make-obsolete-variable 'directory-sep-char "do not use it." "21.1") 951(make-obsolete-variable 'directory-sep-char "do not use it." "21.1")
952(make-obsolete-variable 'mode-line-inverse-video "use the appropriate faces instead." "21.1") 952(make-obsolete-variable
953(make-obsolete-variable 'unread-command-char 953 'mode-line-inverse-video
954 "use `unread-command-events' instead. That variable is a list of events 954 "use the appropriate faces instead."
955 "21.1")
956(make-obsolete-variable
957 'unread-command-char
958 "use `unread-command-events' instead. That variable is a list of events
955to reread, so it now uses nil to mean `no event', instead of -1." 959to reread, so it now uses nil to mean `no event', instead of -1."
956 "before 19.15") 960 "before 19.15")
957 961
958;; Lisp manual only updated in 22.1. 962;; Lisp manual only updated in 22.1.
959(define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro 963(define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro
960 "before 19.34") 964 "before 19.34")
961 965
962(defvaralias 'x-lost-selection-hooks 'x-lost-selection-functions) 966(defvaralias 'x-lost-selection-hooks 'x-lost-selection-functions)
963(make-obsolete-variable 'x-lost-selection-hooks 'x-lost-selection-functions "22.1") 967(make-obsolete-variable 'x-lost-selection-hooks
968 'x-lost-selection-functions "22.1")
964(defvaralias 'x-sent-selection-hooks 'x-sent-selection-functions) 969(defvaralias 'x-sent-selection-hooks 'x-sent-selection-functions)
965(make-obsolete-variable 'x-sent-selection-hooks 'x-sent-selection-functions "22.1") 970(make-obsolete-variable 'x-sent-selection-hooks
971 'x-sent-selection-functions "22.1")
966 972
967(defvaralias 'messages-buffer-max-lines 'message-log-max) 973(defvaralias 'messages-buffer-max-lines 'message-log-max)
968 974
@@ -1534,7 +1540,7 @@ FILE should be the name of a library, with no directory name."
1534 1540
1535(when (featurep 'make-network-process) 1541(when (featurep 'make-network-process)
1536 (defun open-network-stream (name buffer host service) 1542 (defun open-network-stream (name buffer host service)
1537 "Open a TCP connection for a service to a host. 1543 "Open a TCP connection for a service to a host.
1538Returns a subprocess-object to represent the connection. 1544Returns a subprocess-object to represent the connection.
1539Input and output work as for subprocesses; `delete-process' closes it. 1545Input and output work as for subprocesses; `delete-process' closes it.
1540 1546
@@ -1548,14 +1554,15 @@ BUFFER is the buffer (or buffer name) to associate with the process.
1548HOST is name of the host to connect to, or its IP address. 1554HOST is name of the host to connect to, or its IP address.
1549SERVICE is name of the service desired, or an integer specifying 1555SERVICE is name of the service desired, or an integer specifying
1550 a port number to connect to." 1556 a port number to connect to."
1551 (make-network-process :name name :buffer buffer 1557 (make-network-process :name name :buffer buffer
1552 :host host :service service))) 1558 :host host :service service)))
1553 1559
1554;; compatibility 1560;; compatibility
1555 1561
1556(make-obsolete 'process-kill-without-query 1562(make-obsolete
1557 "use `process-query-on-exit-flag' or `set-process-query-on-exit-flag'." 1563 'process-kill-without-query
1558 "22.1") 1564 "use `process-query-on-exit-flag' or `set-process-query-on-exit-flag'."
1565 "22.1")
1559(defun process-kill-without-query (process &optional flag) 1566(defun process-kill-without-query (process &optional flag)
1560 "Say no query needed if PROCESS is running when Emacs is exited. 1567 "Say no query needed if PROCESS is running when Emacs is exited.
1561Optional second argument if non-nil says to require a query. 1568Optional second argument if non-nil says to require a query.
@@ -1588,8 +1595,8 @@ Legitimate radix values are 8, 10 and 16.")
1588 'read-quoted-char-radix 8 1595 'read-quoted-char-radix 8
1589 "*Radix for \\[quoted-insert] and other uses of `read-quoted-char'. 1596 "*Radix for \\[quoted-insert] and other uses of `read-quoted-char'.
1590Legitimate radix values are 8, 10 and 16." 1597Legitimate radix values are 8, 10 and 16."
1591 :type '(choice (const 8) (const 10) (const 16)) 1598 :type '(choice (const 8) (const 10) (const 16))
1592 :group 'editing-basics) 1599 :group 'editing-basics)
1593 1600
1594(defun read-quoted-char (&optional prompt) 1601(defun read-quoted-char (&optional prompt)
1595 "Like `read-char', but do not allow quitting. 1602 "Like `read-char', but do not allow quitting.
@@ -2232,9 +2239,9 @@ If UNDO is present and non-nil, it is a function that will be called
2232 (text-properties-at (1- end))) 2239 (text-properties-at (1- end)))
2233 (put-text-property (1- end) end 'rear-nonsticky t)) 2240 (put-text-property (1- end) end 'rear-nonsticky t))
2234 2241
2235 (if (eq yank-undo-function t) ;; not set by FUNCTION 2242 (if (eq yank-undo-function t) ;; not set by FUNCTION
2236 (setq yank-undo-function (nth 3 handler))) ;; UNDO 2243 (setq yank-undo-function (nth 3 handler))) ;; UNDO
2237 (if (nth 4 handler) ;; COMMAND 2244 (if (nth 4 handler) ;; COMMAND
2238 (setq this-command (nth 4 handler))))) 2245 (setq this-command (nth 4 handler)))))
2239 2246
2240(defun insert-buffer-substring-no-properties (buffer &optional start end) 2247(defun insert-buffer-substring-no-properties (buffer &optional start end)
@@ -2762,7 +2769,7 @@ Unless optional argument INPLACE is non-nil, return a new string."
2762 newstr)) 2769 newstr))
2763 2770
2764(defun replace-regexp-in-string (regexp rep string &optional 2771(defun replace-regexp-in-string (regexp rep string &optional
2765 fixedcase literal subexp start) 2772 fixedcase literal subexp start)
2766 "Replace all matches for REGEXP with REP in STRING. 2773 "Replace all matches for REGEXP with REP in STRING.
2767 2774
2768Return a new string containing the replacements. 2775Return a new string containing the replacements.
@@ -2812,7 +2819,7 @@ and replace a sub-expression, e.g.
2812 rep 2819 rep
2813 (funcall rep (match-string 0 str))) 2820 (funcall rep (match-string 0 str)))
2814 fixedcase literal str subexp) 2821 fixedcase literal str subexp)
2815 (cons (substring string start mb) ; unmatched prefix 2822 (cons (substring string start mb) ; unmatched prefix
2816 matches))) 2823 matches)))
2817 (setq start me)) 2824 (setq start me))
2818 ;; Reconstruct a string from the pieces. 2825 ;; Reconstruct a string from the pieces.
@@ -2833,7 +2840,8 @@ that can be added."
2833(defun remove-from-invisibility-spec (element) 2840(defun remove-from-invisibility-spec (element)
2834 "Remove ELEMENT from `buffer-invisibility-spec'." 2841 "Remove ELEMENT from `buffer-invisibility-spec'."
2835 (if (consp buffer-invisibility-spec) 2842 (if (consp buffer-invisibility-spec)
2836 (setq buffer-invisibility-spec (delete element buffer-invisibility-spec)))) 2843 (setq buffer-invisibility-spec
2844 (delete element buffer-invisibility-spec))))
2837 2845
2838;;;; Syntax tables. 2846;;;; Syntax tables.
2839 2847
@@ -3179,7 +3187,7 @@ Usually the separator is \".\", but it can be any other string.")
3179 3187
3180(defvar version-regexp-alist 3188(defvar version-regexp-alist
3181 '(("^[-_+ ]?a\\(lpha\\)?$" . -3) 3189 '(("^[-_+ ]?a\\(lpha\\)?$" . -3)
3182 ("^[-_+]$" . -3) ; treat "1.2.3-20050920" and "1.2-3" as alpha releases 3190 ("^[-_+]$" . -3) ; treat "1.2.3-20050920" and "1.2-3" as alpha releases
3183 ("^[-_+ ]cvs$" . -3) ; treat "1.2.3-CVS" as alpha release 3191 ("^[-_+ ]cvs$" . -3) ; treat "1.2.3-CVS" as alpha release
3184 ("^[-_+ ]?b\\(eta\\)?$" . -2) 3192 ("^[-_+ ]?b\\(eta\\)?$" . -2)
3185 ("^[-_+ ]?\\(pre\\|rc\\)$" . -1)) 3193 ("^[-_+ ]?\\(pre\\|rc\\)$" . -1))
@@ -3253,7 +3261,7 @@ See documentation for `version-separator' and `version-regexp-alist'."
3253 ;; Change .x.y to 0.x.y 3261 ;; Change .x.y to 0.x.y
3254 (if (and (>= (length ver) (length version-separator)) 3262 (if (and (>= (length ver) (length version-separator))
3255 (string-equal (substring ver 0 (length version-separator)) 3263 (string-equal (substring ver 0 (length version-separator))
3256 version-separator)) 3264 version-separator))
3257 (setq ver (concat "0" ver))) 3265 (setq ver (concat "0" ver)))
3258 (save-match-data 3266 (save-match-data
3259 (let ((i 0) 3267 (let ((i 0)