aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-13 03:33:31 +0000
committerGlenn Morris2008-03-13 03:33:31 +0000
commita3d3fe6e00dd6a368f7ad60d8086cab7eb10cfcf (patch)
tree751afb58b4320324dfff98a17030d4a9810f0936
parent599aeab922040ecf94b829fae73fa66a3a04fbea (diff)
downloademacs-a3d3fe6e00dd6a368f7ad60d8086cab7eb10cfcf.tar.gz
emacs-a3d3fe6e00dd6a368f7ad60d8086cab7eb10cfcf.zip
Remove the `function' in `(function (lambda'.
Replace `(car (cdr' with cadr'. Formatting change - collect closing parens.
-rw-r--r--lisp/ChangeLog20
-rw-r--r--lisp/mail/supercite.el179
2 files changed, 89 insertions, 110 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c39db9729ea..97c66c08d26 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,23 @@
12008-03-13 Glenn Morris <rgm@gnu.org>
2
3 * font-lock.el (lisp-font-lock-keywords-1): Support wider range of
4 generate-autoload-cookie patterns.
5
6 * startup.el (command-line-1): Rename -scriptload to -internal-script.
7
8 * mail/supercite.el: Remove the `function' in `(function (lambda'.
9 Replace `(car (cdr' with cadr'.
10
11 * progmodes/f90.el (f90-font-lock-n): New function.
12 (f90-font-lock-1, f90-font-lock-2, f90-font-lock-3, f90-font-lock-4):
13 Use f90-font-lock-n.
14 (f90-indent-region, f90-indent-subprogram, f90-match-end): Use cadr.
15
16 * progmodes/f90.el (f90-mode-abbrev-table):
17 * progmodes/fortran.el (fortran-mode-abbrev-table):
18 Use newer form of define-abbrev, where supported. No need to bind
19 abbrevs-changed for system abbrevs.
20
12008-03-13 Stefan Monnier <monnier@iro.umontreal.ca> 212008-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2 22
3 * term/xterm.el (terminal-init-xterm): delete-frame-hook -> 23 * term/xterm.el (terminal-init-xterm): delete-frame-hook ->
diff --git a/lisp/mail/supercite.el b/lisp/mail/supercite.el
index 2fb2ceb4720..2c0e84c5fd6 100644
--- a/lisp/mail/supercite.el
+++ b/lisp/mail/supercite.el
@@ -182,8 +182,8 @@ See the variable `sc-cite-frame-alist' for details."
182 (concat "\\(" 182 (concat "\\("
183 (sc-cite-regexp "") 183 (sc-cite-regexp "")
184 "\\)" 184 "\\)"
185 (sc-cite-regexp sc-citation-nonnested-root-regexp)) 185 (sc-cite-regexp
186 ))) 186 sc-citation-nonnested-root-regexp)))))
187 ;; blank lines mean paragraph separators, so fill the last cited 187 ;; blank lines mean paragraph separators, so fill the last cited
188 ;; paragraph, unless sc-cite-blank-lines-p is non-nil, in which 188 ;; paragraph, unless sc-cite-blank-lines-p is non-nil, in which
189 ;; case we treat blank lines just like any other line. 189 ;; case we treat blank lines just like any other line.
@@ -210,8 +210,7 @@ See the variable `sc-cite-frame-alist' for details."
210 ;; citations, so cite it with a non-nested citation 210 ;; citations, so cite it with a non-nested citation
211 (t (sc-cite-line)) 211 (t (sc-cite-line))
212 ;; be sure when we're done that we fill the last cited paragraph. 212 ;; be sure when we're done that we fill the last cited paragraph.
213 (end (sc-fill-if-different "")) 213 (end (sc-fill-if-different "")))
214 )
215 "Default REGI frame for citing a region." 214 "Default REGI frame for citing a region."
216 :type '(repeat (repeat sexp)) 215 :type '(repeat (repeat sexp))
217 :group 'supercite-frames) 216 :group 'supercite-frames)
@@ -221,8 +220,7 @@ See the variable `sc-cite-frame-alist' for details."
221 '(;; do nothing on a blank line 220 '(;; do nothing on a blank line
222 ("^[ \t]*$" nil) 221 ("^[ \t]*$" nil)
223 ;; if the line is cited, uncite it 222 ;; if the line is cited, uncite it
224 ((sc-cite-regexp) (sc-uncite-line)) 223 ((sc-cite-regexp) (sc-uncite-line)))
225 )
226 "Default REGI frame for unciting a region." 224 "Default REGI frame for unciting a region."
227 :type '(repeat (repeat sexp)) 225 :type '(repeat (repeat sexp))
228 :group 'supercite-frames) 226 :group 'supercite-frames)
@@ -238,8 +236,7 @@ See the variable `sc-cite-frame-alist' for details."
238 ;; otherwise, the line is uncited, so just cite it 236 ;; otherwise, the line is uncited, so just cite it
239 (t (sc-cite-line)) 237 (t (sc-cite-line))
240 ;; be sure when we're done that we fill the last cited paragraph. 238 ;; be sure when we're done that we fill the last cited paragraph.
241 (end (sc-fill-if-different "")) 239 (end (sc-fill-if-different "")))
242 )
243 "Default REGI frame for reciting a region." 240 "Default REGI frame for reciting a region."
244 :type '(repeat (repeat sexp)) 241 :type '(repeat (repeat sexp))
245 :group 'supercite-frames) 242 :group 'supercite-frames)
@@ -479,8 +476,7 @@ Index zero accesses the first function in the list."
479 (sc-header-attributed-writes) 476 (sc-header-attributed-writes)
480 (sc-header-author-writes) 477 (sc-header-author-writes)
481 (sc-header-verbose) 478 (sc-header-verbose)
482 (sc-no-blank-line-or-header) 479 (sc-no-blank-line-or-header))
483 )
484 "List of reference header rewrite functions. 480 "List of reference header rewrite functions.
485The variable `sc-preferred-header-style' controls which function in 481The variable `sc-preferred-header-style' controls which function in
486this list is chosen for automatic reference header insertions. 482this list is chosen for automatic reference header insertions.
@@ -619,11 +615,10 @@ selected letter is returned, or nil if the question was not answered.
619Note that WORD is a string and LETTER is a character. All LETTERs in 615Note that WORD is a string and LETTER is a character. All LETTERs in
620the list should be unique." 616the list should be unique."
621 (let* ((prompt (concat 617 (let* ((prompt (concat
622 (mapconcat (function (lambda (elt) (car elt))) alist ", ") 618 (mapconcat (lambda (elt) (car elt)) alist ", ")
623 "? (" 619 "? ("
624 (mapconcat 620 (mapconcat
625 (function 621 (lambda (elt) (char-to-string (cdr elt))) alist "/")
626 (lambda (elt) (char-to-string (cdr elt)))) alist "/")
627 ") ")) 622 ") "))
628 (p prompt) 623 (p prompt)
629 (event 624 (event
@@ -677,7 +672,7 @@ the list should be unique."
677 (let* ((elem (car alist)) 672 (let* ((elem (car alist))
678 (infokey (car elem)) 673 (infokey (car elem))
679 (infoval (sc-mail-field infokey)) 674 (infoval (sc-mail-field infokey))
680 (mlist (car (cdr elem)))) 675 (mlist (cadr elem)))
681 (while mlist 676 (while mlist
682 (let* ((ml-elem (car mlist)) 677 (let* ((ml-elem (car mlist))
683 (regexp (car ml-elem)) 678 (regexp (car ml-elem))
@@ -688,10 +683,8 @@ the list should be unique."
688 mlist nil 683 mlist nil
689 alist nil) 684 alist nil)
690 ;; else we didn't find a match 685 ;; else we didn't find a match
691 (setq mlist (cdr mlist)) 686 (setq mlist (cdr mlist))))) ;end of mlist loop
692 ))) ;end of mlist loop 687 (setq alist (cdr alist)))) ;end of alist loop
693 (setq alist (cdr alist))
694 )) ;end of alist loop
695 rtnvalue)) 688 rtnvalue))
696 689
697 690
@@ -802,8 +795,7 @@ The number of lines left is specified by `sc-blank-lines-after-headers'."
802 ;; we never get far enough to interpret a frame if s-n-m-h == 'none 795 ;; we never get far enough to interpret a frame if s-n-m-h == 'none
803 ((eq sc-nuke-mail-headers 'none)) 796 ((eq sc-nuke-mail-headers 'none))
804 (t (error "Invalid value for sc-nuke-mail-headers: %s" 797 (t (error "Invalid value for sc-nuke-mail-headers: %s"
805 sc-nuke-mail-headers)) 798 sc-nuke-mail-headers))) ; end-cond
806 ) ; end-cond
807 (append 799 (append
808 (and entry-func 800 (and entry-func
809 (regi-mapcar sc-nuke-mail-header-list entry-func nil t)) 801 (regi-mapcar sc-nuke-mail-header-list entry-func nil t))
@@ -812,8 +804,7 @@ The number of lines left is specified by `sc-blank-lines-after-headers'."
812 '(("^[ \t]+" (sc-mail-nuke-continuation-line)))) 804 '(("^[ \t]+" (sc-mail-nuke-continuation-line))))
813 '((begin (setq sc-mail-last-header-zapped-p nil))) 805 '((begin (setq sc-mail-last-header-zapped-p nil)))
814 '((end (sc-mail-cleanup-blank-lines))) 806 '((end (sc-mail-cleanup-blank-lines)))
815 (and every-func (list (list 'every every-func))) 807 (and every-func (list (list 'every every-func))))))
816 )))
817 808
818;; mail processing and zapping. this is the top level entry defun to 809;; mail processing and zapping. this is the top level entry defun to
819;; all header processing. 810;; all header processing.
@@ -834,8 +825,7 @@ error occurs."
834 (setq sc-mail-info info 825 (setq sc-mail-info info
835 sc-attributions attribs)) 826 sc-attributions attribs))
836 (regi-interpret (sc-mail-build-nuke-frame) 827 (regi-interpret (sc-mail-build-nuke-frame)
837 sc-mail-headers-start sc-mail-headers-end) 828 sc-mail-headers-start sc-mail-headers-end))))
838 )))
839 829
840 830
841;; let the user change mail field information 831;; let the user change mail field information
@@ -877,8 +867,7 @@ Action can be one of: View, Modify, Add, or Delete."
877 (concat key ": ") (cdr keyval) 867 (concat key ": ") (cdr keyval)
878 'sc-mail-field-modification-history)))) 868 'sc-mail-field-modification-history))))
879 ((eq action ?a) 869 ((eq action ?a)
880 (push (cons key (read-string (concat key ": "))) sc-mail-info)) 870 (push (cons key (read-string (concat key ": "))) sc-mail-info))))))
881 ))))
882 871
883 872
884;; ====================================================================== 873;; ======================================================================
@@ -908,8 +897,7 @@ Match addresses of the style ``[stuff]![stuff]...!name[stuff].''"
908 from 0)) 897 from 0))
909 (mend (match-end 0))) 898 (mend (match-end 0)))
910 (and mstart 899 (and mstart
911 (substring from (1+ mstart) (- mend (if (= mend eos) 0 1))) 900 (substring from (1+ mstart) (- mend (if (= mend eos) 0 1))))))
912 )))
913 901
914(defun sc-attribs-<>-addresses (from) 902(defun sc-attribs-<>-addresses (from)
915 "Extract the author's email terminus from email address FROM. 903 "Extract the author's email terminus from email address FROM.
@@ -930,8 +918,7 @@ AUTHOR is the author's name (which is removed from the address)."
930 address)) 918 address))
931 (if (string-match "[-[:alnum:]!@%._]+" from 0) 919 (if (string-match "[-[:alnum:]!@%._]+" from 0)
932 (match-string 0 from) 920 (match-string 0 from)
933 "") 921 ""))))
934 )))
935 922
936(defun sc-attribs-emailname (from) 923(defun sc-attribs-emailname (from)
937 "Get the email terminus name from FROM." 924 "Get the email terminus name from FROM."
@@ -951,8 +938,7 @@ substring."
951 (let ((sos (+ start extend)) 938 (let ((sos (+ start extend))
952 (eos (- end extend))) 939 (eos (- end extend)))
953 (substring string sos 940 (substring string sos
954 (or (string-match sc-titlecue-regexp string sos) eos) 941 (or (string-match sc-titlecue-regexp string sos) eos)))))
955 ))))
956 942
957(defun sc-attribs-extract-namestring (from) 943(defun sc-attribs-extract-namestring (from)
958 "Extract the name string from FROM. 944 "Extract the name string from FROM.
@@ -997,16 +983,14 @@ example: (sc-attribs-chop-namestring \"John Xavier Doe\")
997 => (\"John\" \"Xavier\" \"Doe\")" 983 => (\"John\" \"Xavier\" \"Doe\")"
998 (if (string-match "\\([ \t]*\\)\\([^ \t._]+\\)\\([ \t]*\\)" namestring) 984 (if (string-match "\\([ \t]*\\)\\([^ \t._]+\\)\\([ \t]*\\)" namestring)
999 (cons (match-string 2 namestring) 985 (cons (match-string 2 namestring)
1000 (sc-attribs-chop-namestring (substring namestring (match-end 3))) 986 (sc-attribs-chop-namestring (substring namestring (match-end 3))))))
1001 )))
1002 987
1003(defun sc-attribs-strip-initials (namelist) 988(defun sc-attribs-strip-initials (namelist)
1004 "Extract the author's initials from the NAMELIST." 989 "Extract the author's initials from the NAMELIST."
1005 (mapconcat 990 (mapconcat
1006 (function 991 (lambda (name)
1007 (lambda (name) 992 (if (< 0 (length name))
1008 (if (< 0 (length name)) 993 (substring name 0 1)))
1009 (substring name 0 1))))
1010 namelist "")) 994 namelist ""))
1011 995
1012(defun sc-guess-attribution (&optional string) 996(defun sc-guess-attribution (&optional string)
@@ -1034,33 +1018,28 @@ supplied, is used instead of the line point is on in the current buffer."
1034 (position -1) 1018 (position -1)
1035 keepers filtered-list) 1019 keepers filtered-list)
1036 (mapc 1020 (mapc
1037 (function 1021 (lambda (name)
1038 (lambda (name) 1022 (setq position (1+ position))
1039 (setq position (1+ position)) 1023 (let ((keep-p t))
1040 (let ((keep-p t)) 1024 (mapc
1041 (mapc 1025 (function
1042 (function 1026 (lambda (filter)
1043 (lambda (filter) 1027 (let ((regexp (car filter))
1044 (let ((regexp (car filter)) 1028 (pos (cdr filter)))
1045 (pos (cdr filter))) 1029 (if (and (string-match regexp name)
1046 (if (and (string-match regexp name) 1030 (or (and (numberp pos)
1047 (or (and (numberp pos) 1031 (= pos position))
1048 (= pos position)) 1032 (and (eq pos 'last)
1049 (and (eq pos 'last) 1033 (= position (1- elements)))
1050 (= position (1- elements))) 1034 (eq pos 'any)))
1051 (eq pos 'any))) 1035 (setq keep-p nil)))))
1052 (setq keep-p nil)) 1036 sc-name-filter-alist)
1053 ))) 1037 (if keep-p
1054 sc-name-filter-alist) 1038 (setq keepers (cons position keepers)))))
1055 (if keep-p
1056 (setq keepers (cons position keepers)))
1057 )))
1058 namelist) 1039 namelist)
1059 (mapc 1040 (mapc
1060 (function 1041 (lambda (position)
1061 (lambda (position) 1042 (setq filtered-list (cons (nth position namelist) filtered-list)))
1062 (setq filtered-list (cons (nth position namelist) filtered-list))
1063 ))
1064 keepers) 1043 keepers)
1065 filtered-list)) 1044 filtered-list))
1066 1045
@@ -1086,14 +1065,13 @@ This populates the `sc-attributions' with the list of possible attributions."
1086 (setq 1065 (setq
1087 ;; put middle names and build sc-author entry 1066 ;; put middle names and build sc-author entry
1088 middlenames (mapconcat 1067 middlenames (mapconcat
1089 (function 1068 (lambda (midname)
1090 (lambda (midname) 1069 (let ((key-attribs (format "middlename-%d" n))
1091 (let ((key-attribs (format "middlename-%d" n)) 1070 (key-mail (format "sc-middlename-%d" n)))
1092 (key-mail (format "sc-middlename-%d" n))) 1071 (push (cons key-attribs midname) sc-attributions)
1093 (push (cons key-attribs midname) sc-attributions) 1072 (push (cons key-mail midname) sc-mail-info)
1094 (push (cons key-mail midname) sc-mail-info) 1073 (setq n (1+ n))
1095 (setq n (1+ n)) 1074 midname))
1096 midname)))
1097 midnames " ") 1075 midnames " ")
1098 1076
1099 author (concat firstname " " middlenames (and midnames " ") lastname) 1077 author (concat firstname " " middlenames (and midnames " ") lastname)
@@ -1121,10 +1099,8 @@ This populates the `sc-attributions' with the list of possible attributions."
1121 namestring)) 1099 namestring))
1122 (cons "sc-sender-address" (sc-get-address 1100 (cons "sc-sender-address" (sc-get-address
1123 (sc-mail-field "sender") 1101 (sc-mail-field "sender")
1124 namestring)) 1102 namestring)))
1125 ) 1103 sc-mail-info)))
1126 sc-mail-info)
1127 ))
1128 ;; from string is empty 1104 ;; from string is empty
1129 (push (cons "sc-author" sc-default-author-name) sc-mail-info))) 1105 (push (cons "sc-author" sc-default-author-name) sc-mail-info)))
1130 1106
@@ -1185,13 +1161,11 @@ to the auto-selected attribution string."
1185 (setq attribution nil 1161 (setq attribution nil
1186 attriblist (cdr attriblist)))) 1162 attriblist (cdr attriblist))))
1187 (t (error "%s did not evaluate to a string or list!" 1163 (t (error "%s did not evaluate to a string or list!"
1188 "sc-attrib-selection-list")) 1164 "sc-attrib-selection-list")))))
1189 )))
1190 ((setq attribution (cdr (assoc preferred sc-attributions))) 1165 ((setq attribution (cdr (assoc preferred sc-attributions)))
1191 (setq attriblist nil)) 1166 (setq attriblist nil))
1192 (t 1167 (t
1193 (setq attriblist (cdr attriblist))) 1168 (setq attriblist (cdr attriblist))))))
1194 )))
1195 1169
1196 ;; if preference was not found, we may use a secondary method to 1170 ;; if preference was not found, we may use a secondary method to
1197 ;; find a valid attribution 1171 ;; find a valid attribution
@@ -1226,8 +1200,7 @@ to the auto-selected attribution string."
1226 1200
1227 ;; query for confirmation 1201 ;; query for confirmation
1228 (if query-p 1202 (if query-p
1229 (let* ((query-alist (mapcar (function (lambda (entry) 1203 (let* ((query-alist (mapcar (lambda (entry) (list (cdr entry)))
1230 (list (cdr entry))))
1231 sc-attributions)) 1204 sc-attributions))
1232 (minibuffer-local-completion-map 1205 (minibuffer-local-completion-map
1233 sc-minibuffer-local-completion-map) 1206 sc-minibuffer-local-completion-map)
@@ -1249,8 +1222,7 @@ to the auto-selected attribution string."
1249 "Complete attribution name: " 1222 "Complete attribution name: "
1250 query-alist nil nil 1223 query-alist nil nil
1251 (cons initial 0) 1224 (cons initial 0)
1252 'sc-attribution-confirmation-history) 1225 'sc-attribution-confirmation-history)))
1253 ))
1254 nil))) 1226 nil)))
1255 (if sc-attrib-or-cite 1227 (if sc-attrib-or-cite
1256 ;; since the citation was chosen, we have to guess at 1228 ;; since the citation was chosen, we have to guess at
@@ -1260,8 +1232,7 @@ to the auto-selected attribution string."
1260 citation)) 1232 citation))
1261 1233
1262 (setq citation (sc-make-citation choice) 1234 (setq citation (sc-make-citation choice)
1263 attribution choice)) 1235 attribution choice))))
1264 ))
1265 1236
1266 ;; its possible that the user wants to downcase the citation and 1237 ;; its possible that the user wants to downcase the citation and
1267 ;; attribution 1238 ;; attribution
@@ -1286,8 +1257,7 @@ to the auto-selected attribution string."
1286 (lastchoice (assoc lkey sc-attributions))) 1257 (lastchoice (assoc lkey sc-attributions)))
1287 (if lastchoice 1258 (if lastchoice
1288 (setcdr lastchoice attribution) 1259 (setcdr lastchoice attribution)
1289 (push (cons lkey attribution) sc-attributions))) 1260 (push (cons lkey attribution) sc-attributions)))))
1290 ))
1291 1261
1292 1262
1293;; ====================================================================== 1263;; ======================================================================
@@ -1348,8 +1318,7 @@ not supplied, initialize fill variables. This is useful for a regi
1348 (if (not (string= fill-prefix "")) 1318 (if (not (string= fill-prefix ""))
1349 (fill-region sc-fill-begin (line-beginning-position))) 1319 (fill-region sc-fill-begin (line-beginning-position)))
1350 (setq sc-fill-line-prefix prefix 1320 (setq sc-fill-line-prefix prefix
1351 sc-fill-begin (line-beginning-position)))) 1321 sc-fill-begin (line-beginning-position)))))
1352 )
1353 nil) 1322 nil)
1354 1323
1355(defun sc-cite-coerce-cited-line () 1324(defun sc-cite-coerce-cited-line ()
@@ -1598,8 +1567,7 @@ Treats these fields in a similar manner to `sc-header-on-said'."
1598 (sc-mail-field "subject") "\n") 1567 (sc-mail-field "subject") "\n")
1599 (sc-hdr (concat tag "(see ") 1568 (sc-hdr (concat tag "(see ")
1600 (sc-mail-field "references") 1569 (sc-mail-field "references")
1601 " for more details)\n") 1570 " for more details)\n")))))
1602 ))))
1603 1571
1604 1572
1605;; ====================================================================== 1573;; ======================================================================
@@ -1635,10 +1603,8 @@ error occurs."
1635 (void-function 1603 (void-function
1636 (progn (message 1604 (progn (message
1637 "Symbol's function definition is void: %s (Header %d)" 1605 "Symbol's function definition is void: %s (Header %d)"
1638 (car (cdr err)) sc-eref-style) 1606 (cadr err) sc-eref-style)
1639 (beep) 1607 (beep))))))
1640 ))
1641 )))
1642 1608
1643(defun sc-electric-mode (&optional arg) 1609(defun sc-electric-mode (&optional arg)
1644 " 1610 "
@@ -1671,13 +1637,11 @@ header style to use, unless not supplied or invalid, in which case
1671 (use-local-map sc-electric-mode-map) 1637 (use-local-map sc-electric-mode-map)
1672 (sc-eref-show sc-eref-style) 1638 (sc-eref-show sc-eref-style)
1673 (run-mode-hooks 'sc-electric-mode-hook) 1639 (run-mode-hooks 'sc-electric-mode-hook)
1674 (recursive-edit) 1640 (recursive-edit))))
1675 )))
1676 1641
1677 (and sc-eref-style 1642 (and sc-eref-style
1678 (sc-eref-insert-selected)) 1643 (sc-eref-insert-selected))
1679 (kill-buffer sc-electric-bufname) 1644 (kill-buffer sc-electric-bufname)))
1680 ))
1681 1645
1682;; functions for electric reference mode 1646;; functions for electric reference mode
1683(defun sc-eref-show (index) 1647(defun sc-eref-show (index)
@@ -1694,8 +1658,7 @@ header style to use, unless not supplied or invalid, in which case
1694 ((>= index last) 1658 ((>= index last)
1695 (if sc-electric-circular-p 1659 (if sc-electric-circular-p
1696 0 1660 0
1697 (progn (error msg "follow") (1- last)))) 1661 (progn (error msg "follow") (1- last))))))
1698 ))
1699 (save-excursion 1662 (save-excursion
1700 (set-buffer sc-electric-bufname) 1663 (set-buffer sc-electric-bufname)
1701 (let ((buffer-read-only nil)) 1664 (let ((buffer-read-only nil))
@@ -1711,9 +1674,8 @@ header style to use, unless not supplied or invalid, in which case
1711 ;; we have to enlarge the window 1674 ;; we have to enlarge the window
1712 (enlarge-window (- hdrlines winlines)) 1675 (enlarge-window (- hdrlines winlines))
1713 ;; we have to shrink the window 1676 ;; we have to shrink the window
1714 (shrink-window (- winlines (max hdrlines window-min-height))) 1677 (shrink-window (- winlines (max hdrlines
1715 ))) 1678 window-min-height))))))))))
1716 ))))
1717 1679
1718(defun sc-eref-next () 1680(defun sc-eref-next ()
1719 "Display next reference in other buffer." 1681 "Display next reference in other buffer."
@@ -1739,8 +1701,7 @@ nil."
1739 (if (sc-valid-index-p refnum) 1701 (if (sc-valid-index-p refnum)
1740 (sc-eref-show refnum) 1702 (sc-eref-show refnum)
1741 (error "Invalid reference: %d. (Range: [%d .. %d])" 1703 (error "Invalid reference: %d. (Range: [%d .. %d])"
1742 refnum 0 (1- (length sc-rewrite-header-list))) 1704 refnum 0 (1- (length sc-rewrite-header-list)))))
1743 ))
1744 1705
1745(defun sc-eref-jump () 1706(defun sc-eref-jump ()
1746 "Set reference header to preferred header." 1707 "Set reference header to preferred header."
@@ -1776,8 +1737,7 @@ entered, regardless of the value of `sc-electric-references-p'. See
1776 0))) 1737 0)))
1777 (if sc-electric-references-p 1738 (if sc-electric-references-p
1778 (sc-electric-mode preference) 1739 (sc-electric-mode preference)
1779 (sc-eref-insert-selected t) 1740 (sc-eref-insert-selected t)))))
1780 ))))
1781 1741
1782 1742
1783;; ====================================================================== 1743;; ======================================================================
@@ -1960,8 +1920,7 @@ and `sc-post-hook' is run after the guts of this function."
1960 1920
1961 ;; finally, free the point-marker 1921 ;; finally, free the point-marker
1962 (set-marker point nil) 1922 (set-marker point nil)
1963 (set-marker mark nil) 1923 (set-marker mark nil))
1964 )
1965 (run-hooks 'sc-post-hook)) 1924 (run-hooks 'sc-post-hook))
1966 1925
1967 1926