David Kastrup [Wed, 23 Jun 2004 19:22:25 +0000 (19:22 +0000)]
(Freplace_match): Adjust the match-data more
thoroughly when replacing strings in the buffer.
search.c (match-data): When INTEGERS is non-nil and the last match
was in a buffer, add the buffer as last element to the match data.
(Fset_match_data): If an additional element of the match-data is
a buffer, restore it to last_thing_searched.
(save_search_regs): Save last_thing_searched as part of the match
data.
(restore_match_data): Restore it again.
David Kastrup [Wed, 23 Jun 2004 19:21:14 +0000 (19:21 +0000)]
2004-06-23 David Kastrup <dak@gnu.org>
* search.c (Freplace_match): Adjust the match-data more
thoroughly when replacing strings in the buffer.
search.c (match-data): When INTEGERS is non-nil and the last match
was in a buffer, add the buffer as last element to the match data.
(Fset_match_data): If an additional element of the match-data is
a buffer, restore it to last_thing_searched.
(save_search_regs): Save last_thing_searched as part of the match
data.
(restore_match_data): Restore it again.
Nick Roberts [Wed, 23 Jun 2004 18:04:43 +0000 (18:04 +0000)]
(comint-insert-clicked-input, comint-copy-old-input):
Remove.
(comint-insert-input, comint-mouse-insert-input): New functions
based on comint-insert-clicked-input for two bindings but just
one functionality.
Luc Teirlinck [Wed, 23 Jun 2004 16:12:07 +0000 (16:12 +0000)]
Various small changes in addition to the following.
(Describing Characters): Describe PREFIX argument to `key-description'.
Correct and clarify definition of `text-char-description'.
Describe NEED-VECTOR argument to `read-kbd-macro'.
(Help Functions): Clarify definition of `apropos'.
Kim F. Storm [Tue, 22 Jun 2004 13:57:18 +0000 (13:57 +0000)]
(struct Lisp_Save_Value): New member dogc.
(SAFE_ALLOCA_LISP): Change second arg to number of elements.
Set dogc member in Lisp_Save_Value object so it will be GC'ed.
(SAFE_FREE_LISP): New macro.
Kim F. Storm [Tue, 22 Jun 2004 13:56:34 +0000 (13:56 +0000)]
(safe_alloca_unwind): Clear dogc and pointer members.
(make_save_value): Init new dogc member.
(mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
Kim F. Storm [Mon, 21 Jun 2004 22:35:29 +0000 (22:35 +0000)]
(SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
in that memory area are unknown to GC. Add comments.
(isearch-repeat): Avoid testing old match data.
(isearch-message): Display trailing space in special font
when search is failing.
(isearch-search-fun-function): Doc fix.
David Kastrup [Sun, 20 Jun 2004 22:29:47 +0000 (22:29 +0000)]
(Ftry_completion, Fall_completions): Do lazy binding
and unbinding of `case-fold-search' according to
`completion-ignore-case' around calls of string-match and
predicates, respectively. Should give satisfactory performance
in all relevant cases.
David Kastrup [Thu, 17 Jun 2004 14:44:02 +0000 (14:44 +0000)]
(query-replace-read-args): Only warn about use of \n
and \t when we are doing a regexp replacement and the actual
escaped character is n or t.
(query-replace-regexp): Add \, and \# interpretation to
interactive call and document it.
(query-replace-regexp-eval, replace-match-string-symbols): add \#
as shortkey for replace-count.
(replace-quote): New function for doubling backslashes.
Kim F. Storm [Tue, 15 Jun 2004 10:35:05 +0000 (10:35 +0000)]
(try_cursor_movement): Exclude header line from scroll
margin at top of window.
(try_window_reusing_current_matrix): Calculate proper cursor position
after scrolling up with non-zero scroll margin, as the old cursor
position corresponds to value of PT before executing this command.
(try_window_id): Consider scroll margin at bottom of window too;
otherwise we fail to scroll when hl-line-mode is enabled.