aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog30
-rw-r--r--lisp/emacs-lisp/cl-lib.el8
-rw-r--r--lisp/emacs-lisp/cl.el9
-rw-r--r--lisp/hilit-chg.el64
-rw-r--r--lisp/mail/rmail.el4
-rw-r--r--lisp/simple.el2
-rw-r--r--lisp/textmodes/texinfo.el3
-rw-r--r--lisp/vc/vc-hooks.el8
8 files changed, 80 insertions, 48 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b9e633f976d..787bfb7563b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,31 @@
12012-12-10 Dani Moncayo <dmoncayo@gmail.com>
2
3 * simple.el (just-one-space): Doc fix.
4
52012-12-10 Eli Zaretskii <eliz@gnu.org>
6
7 * textmodes/texinfo.el (texinfo-enable-quote-envs): Add
8 "smallexample".
9
102012-12-10 Le Wang <l26wang@gmail.com>
11
12 * hilit-chg.el (hilit-chg-set-face-on-change): Don't burp in
13 narrowed buffer (bug#12361).
14
152012-12-10 Juanma Barranquero <lekktu@gmail.com>
16
17 * vc/vc-hooks.el (vc-state): Doc fix.
18
192012-12-10 Glenn Morris <rgm@gnu.org>
20
21 * mail/rmail.el (rmail-maybe-display-summary):
22 Preserve buffer, in case select-window changes it. (Bug#13066)
23
242012-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
25
26 * emacs-lisp/cl.el, emacs-lisp/cl-lib.el: Move cl-unload-function and
27 cl-load-hook where they belong.
28
12012-12-10 Stefan Monnier <monnier@iro.umontreal.ca> 292012-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
2 30
3 * emacs-lisp/cl-lib.el (cl-declaim): Paren typo. 31 * emacs-lisp/cl-lib.el (cl-declaim): Paren typo.
@@ -4379,7 +4407,7 @@
4379 * calendar/cal-tex.el (cal-tex-weekly-common): 4407 * calendar/cal-tex.el (cal-tex-weekly-common):
4380 Restore leading blank page. 4408 Restore leading blank page.
4381 4409
43822012-08-22 Le Wang <l26wang@gmail.com> (tiny change) 44102012-08-22 Le Wang <l26wang@gmail.com>
4383 4411
4384 * misc.el (forward-to-word, backward-to-word): Activate or extend 4412 * misc.el (forward-to-word, backward-to-word): Activate or extend
4385 the region under `shift-select-mode'. (Bug#12231) 4413 the region under `shift-select-mode'. (Bug#12231)
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index 55f6ac94c2b..9175dd7d608 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -113,12 +113,6 @@ printer proceeds to the next function on the list.
113This variable is not used at present, but it is defined in hopes that 113This variable is not used at present, but it is defined in hopes that
114a future Emacs interpreter will be able to use it.") 114a future Emacs interpreter will be able to use it.")
115 115
116(defun cl-unload-function ()
117 "Stop unloading of the Common Lisp extensions."
118 (message "Cannot unload the feature `cl'")
119 ;; Stop standard unloading!
120 t)
121
122;;; Generalized variables. 116;;; Generalized variables.
123;; These macros are defined here so that they 117;; These macros are defined here so that they
124;; can safely be used in init files. 118;; can safely be used in init files.
@@ -746,8 +740,6 @@ If ALIST is non-nil, the new pairs are prepended to it."
746 740
747(provide 'cl-lib) 741(provide 'cl-lib)
748 742
749(run-hooks 'cl-load-hook)
750
751;; Local variables: 743;; Local variables:
752;; byte-compile-dynamic: t 744;; byte-compile-dynamic: t
753;; End: 745;; End:
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el
index 40d12358b17..7241b3c5984 100644
--- a/lisp/emacs-lisp/cl.el
+++ b/lisp/emacs-lisp/cl.el
@@ -83,6 +83,12 @@
83;; (delete-region (1- (point)) (point))) 83;; (delete-region (1- (point)) (point)))
84;; (save-buffer))))) 84;; (save-buffer)))))
85 85
86(defun cl-unload-function ()
87 "Stop unloading of the Common Lisp extensions."
88 (message "Cannot unload the feature `cl'")
89 ;; Stop standard unloading!
90 t)
91
86;;; Aliases to cl-lib's features. 92;;; Aliases to cl-lib's features.
87 93
88(dolist (var '( 94(dolist (var '(
@@ -735,4 +741,7 @@ You can replace this macro with `gv-letplace'."
735 (list accessor temp)))) 741 (list accessor temp))))
736 742
737(provide 'cl) 743(provide 'cl)
744
745(run-hooks 'cl-load-hook)
746
738;;; cl.el ends here 747;;; cl.el ends here
diff --git a/lisp/hilit-chg.el b/lisp/hilit-chg.el
index 0970ece9446..7b5e2b54300 100644
--- a/lisp/hilit-chg.el
+++ b/lisp/hilit-chg.el
@@ -569,37 +569,39 @@ This allows you to manually remove highlighting from uninteresting changes."
569 highlight-changes-visible-mode) 569 highlight-changes-visible-mode)
570 (hilit-chg-fixup beg end)) 570 (hilit-chg-fixup beg end))
571 (highlight-save-buffer-state 571 (highlight-save-buffer-state
572 (if (and (= beg end) (> leng-before 0)) 572 (if (and (= beg end) (> leng-before 0))
573 ;; deletion 573 ;; deletion
574 (progn 574 (progn
575 ;; The eolp and bolp tests are a kludge! But they prevent 575 ;; The eolp and bolp tests are a kludge! But they prevent
576 ;; rather nasty looking displays when deleting text at the end 576 ;; rather nasty looking displays when deleting text at the end
577 ;; of line, such as normal corrections as one is typing and 577 ;; of line, such as normal corrections as one is typing and
578 ;; immediately makes a correction, and when deleting first 578 ;; immediately makes a correction, and when deleting first
579 ;; character of a line. 579 ;; character of a line.
580 ;; (if (= leng-before 1) 580 ;; (if (= leng-before 1)
581 ;; (if (eolp) 581 ;; (if (eolp)
582 ;; (setq beg-decr 0 end-incr 0) 582 ;; (setq beg-decr 0 end-incr 0)
583 ;; (if (bolp) 583 ;; (if (bolp)
584 ;; (setq beg-decr 0)))) 584 ;; (setq beg-decr 0))))
585 ;; (setq beg (max (- beg beg-decr) (point-min))) 585 ;; (setq beg (max (- beg beg-decr) (point-min)))
586 (setq end (min (+ end end-incr) (point-max))) 586 (setq end (min (+ end end-incr) (point-max)))
587 (setq type 'hilit-chg-delete)) 587 (setq type 'hilit-chg-delete))
588 ;; Not a deletion. 588 ;; Not a deletion.
589 ;; Most of the time the following is not necessary, but 589 ;; Most of the time the following is not necessary, but
590 ;; if the current text was marked as a deletion then 590 ;; if the current text was marked as a deletion then
591 ;; the old overlay is still in effect, so if we add some 591 ;; the old overlay is still in effect. So if the user adds some
592 ;; text then remove the deletion marking, but set it to 592 ;; text where she earlier deleted text, we have to remove the
593 ;; changed otherwise its highlighting disappears. 593 ;; deletion marking, and replace it explicitly with a `changed'
594 (if (eq (get-text-property end 'hilit-chg) 'hilit-chg-delete) 594 ;; marking, otherwise its highlighting would disappear.
595 (progn 595 (if (eq (get-text-property end 'hilit-chg) 'hilit-chg-delete)
596 (put-text-property end (+ end 1) 'hilit-chg 'hilit-chg) 596 (save-restriction
597 (if highlight-changes-visible-mode 597 (widen)
598 (hilit-chg-fixup beg (+ end 1)))))) 598 (put-text-property end (+ end 1) 'hilit-chg 'hilit-chg)
599 (unless no-property-change 599 (if highlight-changes-visible-mode
600 (put-text-property beg end 'hilit-chg type)) 600 (hilit-chg-fixup beg (+ end 1))))))
601 (if (or highlight-changes-visible-mode no-property-change) 601 (unless no-property-change
602 (hilit-chg-make-ov type beg end))))))) 602 (put-text-property beg end 'hilit-chg type))
603 (if (or highlight-changes-visible-mode no-property-change)
604 (hilit-chg-make-ov type beg end)))))))
603 605
604(defun hilit-chg-update () 606(defun hilit-chg-update ()
605 "Update a buffer's highlight changes when visibility changed." 607 "Update a buffer's highlight changes when visibility changed."
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index eec96f4c0b6..9c48788553b 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -4225,6 +4225,7 @@ This has an effect only if a summary buffer exists."
4225;; Put the summary buffer back on the screen, if user wants that. 4225;; Put the summary buffer back on the screen, if user wants that.
4226(defun rmail-maybe-display-summary () 4226(defun rmail-maybe-display-summary ()
4227 (let ((selected (selected-window)) 4227 (let ((selected (selected-window))
4228 (buffer (current-buffer))
4228 window) 4229 window)
4229 ;; If requested, make sure the summary is displayed. 4230 ;; If requested, make sure the summary is displayed.
4230 (and rmail-summary-buffer (buffer-name rmail-summary-buffer) 4231 (and rmail-summary-buffer (buffer-name rmail-summary-buffer)
@@ -4246,7 +4247,8 @@ This has an effect only if a summary buffer exists."
4246 (progn 4247 (progn
4247 (select-window window) 4248 (select-window window)
4248 (enlarge-window (- rmail-summary-window-size (window-height)))) 4249 (enlarge-window (- rmail-summary-window-size (window-height))))
4249 (select-window selected))))) 4250 (select-window selected)
4251 (set-buffer buffer)))))
4250 4252
4251;;;; *** Rmail Local Fontification *** 4253;;;; *** Rmail Local Fontification ***
4252 4254
diff --git a/lisp/simple.el b/lisp/simple.el
index 51e676faffa..78b76579584 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -744,7 +744,7 @@ If BACKWARD-ONLY is non-nil, only delete them before point."
744 744
745(defun just-one-space (&optional n) 745(defun just-one-space (&optional n)
746 "Delete all spaces and tabs around point, leaving one space (or N spaces). 746 "Delete all spaces and tabs around point, leaving one space (or N spaces).
747If N is negative, delete newlines as well." 747If N is negative, delete newlines as well, leaving -N spaces."
748 (interactive "*p") 748 (interactive "*p")
749 (unless n (setq n 1)) 749 (unless n (setq n 1))
750 (let ((orig-pos (point)) 750 (let ((orig-pos (point))
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
index 253b56f09b1..263d875a5f0 100644
--- a/lisp/textmodes/texinfo.el
+++ b/lisp/textmodes/texinfo.el
@@ -678,7 +678,8 @@ Puts point on a blank line between them."
678 (not (match-end 1))))) 678 (not (match-end 1)))))
679 679
680(defvar texinfo-enable-quote-macros "@\\(code\\|samp\\|kbd\\)\\>") 680(defvar texinfo-enable-quote-macros "@\\(code\\|samp\\|kbd\\)\\>")
681(defvar texinfo-enable-quote-envs '("example\\>" "lisp\\>")) 681(defvar texinfo-enable-quote-envs
682 '("example\\>" "smallexample\\>" "lisp\\>"))
682(defun texinfo-insert-quote (&optional arg) 683(defun texinfo-insert-quote (&optional arg)
683 "Insert the appropriate quote mark for Texinfo. 684 "Insert the appropriate quote mark for Texinfo.
684Usually inserts the value of `texinfo-open-quote' (normally ``) or 685Usually inserts the value of `texinfo-open-quote' (normally ``) or
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index 40a1f3db982..a5eb2932af8 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -438,8 +438,8 @@ For registered files, the possible values are:
438(defun vc-state (file &optional backend) 438(defun vc-state (file &optional backend)
439 "Return the version control state of FILE. 439 "Return the version control state of FILE.
440 440
441If FILE is not registered, this function always returns nil. 441A return of nil from this function means we have no information on the
442For registered files, the value returned is one of: 442status of this file. Otherwise, the value returned is one of:
443 443
444 'up-to-date The working file is unmodified with respect to the 444 'up-to-date The working file is unmodified with respect to the
445 latest version on the current branch, and not locked. 445 latest version on the current branch, and not locked.
@@ -491,10 +491,8 @@ For registered files, the value returned is one of:
491 that any file with vc-state nil might be ignorable 491 that any file with vc-state nil might be ignorable
492 without VC knowing it. 492 without VC knowing it.
493 493
494 'unregistered The file is not under version control. 494 'unregistered The file is not under version control."
495 495
496A return of nil from this function means we have no information on the
497status of this file."
498 ;; Note: in Emacs 22 and older, return of nil meant the file was 496 ;; Note: in Emacs 22 and older, return of nil meant the file was
499 ;; unregistered. This is potentially a source of 497 ;; unregistered. This is potentially a source of
500 ;; backward-compatibility bugs. 498 ;; backward-compatibility bugs.