diff options
| author | Miles Bader | 2004-07-17 02:46:48 +0000 |
|---|---|---|
| committer | Miles Bader | 2004-07-17 02:46:48 +0000 |
| commit | 21d1ca18bfb71eb82b574fd55339bc7441e6a449 (patch) | |
| tree | 454ad66687571c05feba856074dca94209292a4a /src | |
| parent | 89f3c0c9fda25756ee311a6d0467a97bac203eb5 (diff) | |
| parent | dd0a3ea36a52518f4fcd2dea97859cfba63158f8 (diff) | |
| download | emacs-21d1ca18bfb71eb82b574fd55339bc7441e6a449.tar.gz emacs-21d1ca18bfb71eb82b574fd55339bc7441e6a449.zip | |
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-24
Merge from lorentey@elte.hu--2004/emacs--hacks--0, emacs--cvs-trunk--0
Patches applied:
* lorentey@elte.hu--2004/emacs--hacks--0--patch-2
Prevent special events from appending dashes to the echo string.
* lorentey@elte.hu--2004/emacs--hacks--0--patch-4
Added ChangeLog entry.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-451
Update from CVS: lisp/subr.el (get-buffer-window-list): Doc fix.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-452
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-454
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-455
Bash the dashes
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-456
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-458
Update from CVS
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 25 | ||||
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/fileio.c | 8 | ||||
| -rw-r--r-- | src/keyboard.c | 15 | ||||
| -rw-r--r-- | src/search.c | 3 | ||||
| -rw-r--r-- | src/w32fns.c | 4 |
6 files changed, 53 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3d70d69cd69..1dfaa3f9ce4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change) | ||
| 2 | |||
| 3 | * w32fns.c (Fx_file_dialog): Encode strings in system coding | ||
| 4 | system before passing them to OS functions for display. | ||
| 5 | |||
| 6 | 2004-07-15 David Kastrup <dak@gnu.org> | ||
| 7 | |||
| 8 | * search.c (syms_of_search): Staticpro `saved_last_thing_searched'. | ||
| 9 | Apparently fixes an abort condition. | ||
| 10 | |||
| 11 | 2004-07-14 Luc Teirlinck <teirllm@auburn.edu> | ||
| 12 | |||
| 13 | * fileio.c (Fvisited_file_modtime): Return a list of two integers, | ||
| 14 | instead of a cons. | ||
| 15 | |||
| 16 | 2004-07-14 K,Ba(Broly L,Bu(Brentey <lorentey@elte.hu> | ||
| 17 | |||
| 18 | * keyboard.c (echo_dash): Do nothing if there already is a dash | ||
| 19 | at the end of the echo string. | ||
| 20 | |||
| 21 | 2004-07-12 Kim F. Storm <storm@cua.dk> | ||
| 22 | |||
| 23 | * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value | ||
| 24 | if GC_MARK_STACK. | ||
| 25 | |||
| 1 | 2004-07-10 Luc Teirlinck <teirllm@auburn.edu> | 26 | 2004-07-10 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 27 | ||
| 3 | * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes. | 28 | * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes. |
diff --git a/src/alloc.c b/src/alloc.c index 994dc21079f..0e3e78bbac2 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4990,6 +4990,7 @@ mark_object (arg) | |||
| 4990 | break; | 4990 | break; |
| 4991 | 4991 | ||
| 4992 | case Lisp_Misc_Save_Value: | 4992 | case Lisp_Misc_Save_Value: |
| 4993 | #if GC_MARK_STACK | ||
| 4993 | { | 4994 | { |
| 4994 | register struct Lisp_Save_Value *ptr = XSAVE_VALUE (obj); | 4995 | register struct Lisp_Save_Value *ptr = XSAVE_VALUE (obj); |
| 4995 | /* If DOGC is set, POINTER is the address of a memory | 4996 | /* If DOGC is set, POINTER is the address of a memory |
| @@ -5002,6 +5003,7 @@ mark_object (arg) | |||
| 5002 | mark_maybe_object (*p); | 5003 | mark_maybe_object (*p); |
| 5003 | } | 5004 | } |
| 5004 | } | 5005 | } |
| 5006 | #endif | ||
| 5005 | break; | 5007 | break; |
| 5006 | 5008 | ||
| 5007 | case Lisp_Misc_Overlay: | 5009 | case Lisp_Misc_Overlay: |
diff --git a/src/fileio.c b/src/fileio.c index a032a179ee1..bbc7d86c429 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5541,13 +5541,17 @@ Next attempt to save will certainly not complain of a discrepancy. */) | |||
| 5541 | DEFUN ("visited-file-modtime", Fvisited_file_modtime, | 5541 | DEFUN ("visited-file-modtime", Fvisited_file_modtime, |
| 5542 | Svisited_file_modtime, 0, 0, 0, | 5542 | Svisited_file_modtime, 0, 0, 0, |
| 5543 | doc: /* Return the current buffer's recorded visited file modification time. | 5543 | doc: /* Return the current buffer's recorded visited file modification time. |
| 5544 | The value is a list of the form (HIGH . LOW), like the time values | 5544 | The value is a list of the form (HIGH LOW), like the time values |
| 5545 | that `file-attributes' returns. If the current buffer has no recorded | 5545 | that `file-attributes' returns. If the current buffer has no recorded |
| 5546 | file modification time, this function returns 0. | 5546 | file modification time, this function returns 0. |
| 5547 | See Info node `(elisp)Modification Time' for more details. */) | 5547 | See Info node `(elisp)Modification Time' for more details. */) |
| 5548 | () | 5548 | () |
| 5549 | { | 5549 | { |
| 5550 | return long_to_cons ((unsigned long) current_buffer->modtime); | 5550 | Lisp_Object tcons; |
| 5551 | tcons = long_to_cons ((unsigned long) current_buffer->modtime); | ||
| 5552 | if (CONSP (tcons)) | ||
| 5553 | return list2 (XCAR (tcons), XCDR (tcons)); | ||
| 5554 | return tcons; | ||
| 5551 | } | 5555 | } |
| 5552 | 5556 | ||
| 5553 | DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, | 5557 | DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, |
diff --git a/src/keyboard.c b/src/keyboard.c index 382f99058d4..eb8c0c43fe6 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -802,6 +802,21 @@ echo_dash () | |||
| 802 | == SCHARS (current_kboard->echo_string)) | 802 | == SCHARS (current_kboard->echo_string)) |
| 803 | return; | 803 | return; |
| 804 | 804 | ||
| 805 | /* Do nothing if we have already put a dash at the end. */ | ||
| 806 | if (SCHARS (current_kboard->echo_string) > 1) | ||
| 807 | { | ||
| 808 | Lisp_Object last_char, prev_char, idx; | ||
| 809 | |||
| 810 | idx = make_number (SCHARS (current_kboard->echo_string) - 2); | ||
| 811 | prev_char = Faref (current_kboard->echo_string, idx); | ||
| 812 | |||
| 813 | idx = make_number (SCHARS (current_kboard->echo_string) - 1); | ||
| 814 | last_char = Faref (current_kboard->echo_string, idx); | ||
| 815 | |||
| 816 | if (XINT (last_char) == '-' && XINT (prev_char) != ' ') | ||
| 817 | return; | ||
| 818 | } | ||
| 819 | |||
| 805 | /* Put a dash at the end of the buffer temporarily, | 820 | /* Put a dash at the end of the buffer temporarily, |
| 806 | but make it go away when the next character is added. */ | 821 | but make it go away when the next character is added. */ |
| 807 | current_kboard->echo_string = concat2 (current_kboard->echo_string, | 822 | current_kboard->echo_string = concat2 (current_kboard->echo_string, |
diff --git a/src/search.c b/src/search.c index 11ff90df014..a00490fd4b3 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -2928,6 +2928,9 @@ syms_of_search () | |||
| 2928 | last_thing_searched = Qnil; | 2928 | last_thing_searched = Qnil; |
| 2929 | staticpro (&last_thing_searched); | 2929 | staticpro (&last_thing_searched); |
| 2930 | 2930 | ||
| 2931 | saved_last_thing_searched = Qnil; | ||
| 2932 | staticpro (&saved_last_thing_searched); | ||
| 2933 | |||
| 2931 | defsubr (&Slooking_at); | 2934 | defsubr (&Slooking_at); |
| 2932 | defsubr (&Sposix_looking_at); | 2935 | defsubr (&Sposix_looking_at); |
| 2933 | defsubr (&Sstring_match); | 2936 | defsubr (&Sstring_match); |
diff --git a/src/w32fns.c b/src/w32fns.c index d3342f3ad6a..5dfdab1390c 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -7798,14 +7798,14 @@ specified. Ensure that file exists if MUSTMATCH is non-nil. */) | |||
| 7798 | /* Create the dialog with PROMPT as title, using DIR as initial | 7798 | /* Create the dialog with PROMPT as title, using DIR as initial |
| 7799 | directory and using "*" as pattern. */ | 7799 | directory and using "*" as pattern. */ |
| 7800 | dir = Fexpand_file_name (dir, Qnil); | 7800 | dir = Fexpand_file_name (dir, Qnil); |
| 7801 | strncpy (init_dir, SDATA (dir), MAX_PATH); | 7801 | strncpy (init_dir, SDATA (ENCODE_SYSTEM (dir)), MAX_PATH); |
| 7802 | init_dir[MAX_PATH] = '\0'; | 7802 | init_dir[MAX_PATH] = '\0'; |
| 7803 | unixtodos_filename (init_dir); | 7803 | unixtodos_filename (init_dir); |
| 7804 | 7804 | ||
| 7805 | if (STRINGP (default_filename)) | 7805 | if (STRINGP (default_filename)) |
| 7806 | { | 7806 | { |
| 7807 | char *file_name_only; | 7807 | char *file_name_only; |
| 7808 | char *full_path_name = SDATA (default_filename); | 7808 | char *full_path_name = SDATA (ENCODE_SYSTEM (default_filename)); |
| 7809 | 7809 | ||
| 7810 | unixtodos_filename (full_path_name); | 7810 | unixtodos_filename (full_path_name); |
| 7811 | 7811 | ||