diff options
| author | Chong Yidong | 2009-12-15 22:51:31 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-12-15 22:51:31 +0000 |
| commit | f7ab099735f4e3224bbba7078da2f180715ae069 (patch) | |
| tree | a3f45e5c89e362463f98b119896103f901293589 | |
| parent | 68712eb605d18afa6bbcc68bbd0183bd75d01ebc (diff) | |
| download | emacs-f7ab099735f4e3224bbba7078da2f180715ae069.tar.gz emacs-f7ab099735f4e3224bbba7078da2f180715ae069.zip | |
* xdisp.c (decode_mode_spec): Inhibit garbage collection when
calling file-remote-p. Reported by Jim Meyering.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 69c8f22e700..6c39715fed3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-12-15 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * xdisp.c (decode_mode_spec): Inhibit garbage collection when | ||
| 4 | calling file-remote-p. Reported by Jim Meyering. | ||
| 5 | |||
| 1 | 2009-12-15 Michael Albinus <michael.albinus@gmx.de> | 6 | 2009-12-15 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to | 8 | * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to |
diff --git a/src/xdisp.c b/src/xdisp.c index 449d42dcf17..23c5e2d0f4c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -18630,7 +18630,10 @@ decode_mode_spec (w, c, field_width, precision, multibyte) | |||
| 18630 | case '@': | 18630 | case '@': |
| 18631 | { | 18631 | { |
| 18632 | Lisp_Object val; | 18632 | Lisp_Object val; |
| 18633 | int count = inhibit_garbage_collection (); | ||
| 18633 | val = call1 (intern ("file-remote-p"), current_buffer->directory); | 18634 | val = call1 (intern ("file-remote-p"), current_buffer->directory); |
| 18635 | unbind_to (count, Qnil); | ||
| 18636 | |||
| 18634 | if (NILP (val)) | 18637 | if (NILP (val)) |
| 18635 | return "-"; | 18638 | return "-"; |
| 18636 | else | 18639 | else |