aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2004-02-03 11:25:07 +0000
committerKaroly Lorentey2004-02-03 11:25:07 +0000
commitd743c8f1dbb655051f49f72c3d37484df5a2bea8 (patch)
treefade0d73db48b94c6deda6f685233a7b1b7945f0
parentb2fedb04ce07f8a577f2e2e991c9834d8ccabac6 (diff)
parentc010ecfa9a26549486bb00c39221813c02c615de (diff)
downloademacs-d743c8f1dbb655051f49f72c3d37484df5a2bea8.tar.gz
emacs-d743c8f1dbb655051f49f72c3d37484df5a2bea8.zip
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-70 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-74
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/diff-mode.el3
-rw-r--r--lisp/progmodes/cperl-mode.el18
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fileio.c2
5 files changed, 21 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4458f635d2f..8e5ad91126e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12004-02-02 Benjamin Rutt <brutt@bloomington.in.us>
2
3 * diff-mode.el (diff-mode-shared-map): Bind q to `quit-window'.
4
12004-02-02 David Kastrup <dak@gnu.org> 52004-02-02 David Kastrup <dak@gnu.org>
2 6
3 * replace.el (perform-replace): Allow 'literal argument in 7 * replace.el (perform-replace): Allow 'literal argument in
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index cad1f2c9c61..e44e79856e8 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -127,7 +127,8 @@ when editing big diffs)."
127 ("r" . diff-restrict-view) 127 ("r" . diff-restrict-view)
128 ("R" . diff-reverse-direction) 128 ("R" . diff-reverse-direction)
129 ("U" . diff-context->unified) 129 ("U" . diff-context->unified)
130 ("C" . diff-unified->context)) 130 ("C" . diff-unified->context)
131 ("q" . quit-window))
131 "Basic keymap for `diff-mode', bound to various prefix keys.") 132 "Basic keymap for `diff-mode', bound to various prefix keys.")
132 133
133(easy-mmode-defmap diff-mode-map 134(easy-mmode-defmap diff-mode-map
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index e847ef4e44e..7202a083d79 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -1,6 +1,6 @@
1;;; cperl-mode.el --- Perl code editing commands for Emacs 1;;; cperl-mode.el --- Perl code editing commands for Emacs
2 2
3;; Copyright (C) 1985, 86, 87, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2003 3;; Copyright (C) 1985,86,87,91,92,93,94,95,96,97,98,99,2000,03,2004
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Author: Ilya Zakharevich and Bob Olson 6;; Author: Ilya Zakharevich and Bob Olson
@@ -1064,9 +1064,6 @@ the faces: please specify bold, italic, underline, shadow and box.)
1064 'indent-sexp 'cperl-indent-exp 1064 'indent-sexp 'cperl-indent-exp
1065 cperl-mode-map global-map) 1065 cperl-mode-map global-map)
1066 (substitute-key-definition 1066 (substitute-key-definition
1067 'fill-paragraph 'cperl-fill-paragraph
1068 cperl-mode-map global-map)
1069 (substitute-key-definition
1070 'indent-region 'cperl-indent-region 1067 'indent-region 'cperl-indent-region
1071 cperl-mode-map global-map) 1068 cperl-mode-map global-map)
1072 (substitute-key-definition 1069 (substitute-key-definition
@@ -1086,7 +1083,7 @@ the faces: please specify bold, italic, underline, shadow and box.)
1086 ["End of function" end-of-defun t] 1083 ["End of function" end-of-defun t]
1087 ["Mark function" mark-defun t] 1084 ["Mark function" mark-defun t]
1088 ["Indent expression" cperl-indent-exp t] 1085 ["Indent expression" cperl-indent-exp t]
1089 ["Fill paragraph/comment" cperl-fill-paragraph t] 1086 ["Fill paragraph/comment" fill-paragraph t]
1090 "----" 1087 "----"
1091 ["Line up a construction" cperl-lineup (cperl-use-region-p)] 1088 ["Line up a construction" cperl-lineup (cperl-use-region-p)]
1092 ["Invert if/unless/while etc" cperl-invert-if-unless t] 1089 ["Invert if/unless/while etc" cperl-invert-if-unless t]
@@ -1464,6 +1461,7 @@ or as help on variables `cperl-tips', `cperl-problems',
1464 (setq paragraph-separate paragraph-start) 1461 (setq paragraph-separate paragraph-start)
1465 (make-local-variable 'paragraph-ignore-fill-prefix) 1462 (make-local-variable 'paragraph-ignore-fill-prefix)
1466 (setq paragraph-ignore-fill-prefix t) 1463 (setq paragraph-ignore-fill-prefix t)
1464 (set (make-local-variable 'fill-paragraph-function) 'cperl-fill-paragraph)
1467 (make-local-variable 'indent-line-function) 1465 (make-local-variable 'indent-line-function)
1468 (setq indent-line-function 'cperl-indent-line) 1466 (setq indent-line-function 'cperl-indent-line)
1469 (make-local-variable 'require-final-newline) 1467 (make-local-variable 'require-final-newline)
@@ -4255,11 +4253,11 @@ conditional/loop constructs."
4255;; Stolen from lisp-mode with a lot of improvements 4253;; Stolen from lisp-mode with a lot of improvements
4256 4254
4257(defun cperl-fill-paragraph (&optional justify iteration) 4255(defun cperl-fill-paragraph (&optional justify iteration)
4258 "Like \\[fill-paragraph], but handle CPerl comments. 4256 "Like `fill-paragraph', but handle CPerl comments.
4259If any of the current line is a comment, fill the comment or the 4257If any of the current line is a comment, fill the comment or the
4260block of it that point is in, preserving the comment's initial 4258block of it that point is in, preserving the comment's initial
4261indentation and initial hashes. Behaves usually outside of comment." 4259indentation and initial hashes. Behaves usually outside of comment."
4262 (interactive "P") 4260 ;; (interactive "P") ; Only works when called from fill-paragraph. -stef
4263 (let (;; Non-nil if the current line contains a comment. 4261 (let (;; Non-nil if the current line contains a comment.
4264 has-comment 4262 has-comment
4265 4263
@@ -4346,9 +4344,11 @@ indentation and initial hashes. Behaves usually outside of comment."
4346 (let ((c (save-excursion (beginning-of-line) 4344 (let ((c (save-excursion (beginning-of-line)
4347 (cperl-to-comment-or-eol) (point))) 4345 (cperl-to-comment-or-eol) (point)))
4348 (s (memq (following-char) '(?\ ?\t))) marker) 4346 (s (memq (following-char) '(?\ ?\t))) marker)
4349 (if (>= c (point)) nil 4347 (if (>= c (point))
4348 ;; Don't break line inside code: only inside comment.
4349 nil
4350 (setq marker (point-marker)) 4350 (setq marker (point-marker))
4351 (cperl-fill-paragraph) 4351 (fill-paragraph nil)
4352 (goto-char marker) 4352 (goto-char marker)
4353 ;; Is not enough, sometimes marker is a start of line 4353 ;; Is not enough, sometimes marker is a start of line
4354 (if (bolp) (progn (re-search-forward "#+[ \t]*") 4354 (if (bolp) (progn (re-search-forward "#+[ \t]*")
diff --git a/src/ChangeLog b/src/ChangeLog
index 9a93ac894ca..76d63cab844 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12004-02-02 Eli Zaretskii <eliz@elta.co.il>
2
3 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
4 basename of FILE relative to it, not FILE itself.
5
12004-02-02 Kenichi Handa <handa@m17n.org> 62004-02-02 Kenichi Handa <handa@m17n.org>
2 7
3 * coding.c (coding_restore_composition): Check invalid 8 * coding.c (coding_restore_composition): Check invalid
diff --git a/src/fileio.c b/src/fileio.c
index c7959b3672d..73771591994 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2407,7 +2407,7 @@ Also set the file modes of the target file to match the source file. */)
2407 CHECK_STRING (newname); 2407 CHECK_STRING (newname);
2408 2408
2409 if (!NILP (Ffile_directory_p (newname))) 2409 if (!NILP (Ffile_directory_p (newname)))
2410 newname = Fexpand_file_name (file, newname); 2410 newname = Fexpand_file_name (Ffile_name_nondirectory (file), newname);
2411 else 2411 else
2412 newname = Fexpand_file_name (newname, Qnil); 2412 newname = Fexpand_file_name (newname, Qnil);
2413 2413