diff options
| author | Paul Eggert | 2011-03-06 01:52:06 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-06 01:52:06 -0800 |
| commit | e9588e2e96025e416921e24d08fc4822d2ce3c6b (patch) | |
| tree | c483cf3bba94cc37c36a07cdfc740feba9a4356e /src | |
| parent | 1e12733b25bfa52650157c34fc30a9c7fe1d5b4c (diff) | |
| download | emacs-e9588e2e96025e416921e24d08fc4822d2ce3c6b.tar.gz emacs-e9588e2e96025e416921e24d08fc4822d2ce3c6b.zip | |
* minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
from xdisp.c, and make static, since these are used only here.
* window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
Remove decls.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/minibuf.c | 9 | ||||
| -rw-r--r-- | src/window.h | 9 | ||||
| -rw-r--r-- | src/xdisp.c | 9 |
4 files changed, 14 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 357bb9a37a8..3de7ddcdb28 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2011-03-06 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here | ||
| 4 | from xdisp.c, and make static, since these are used only here. | ||
| 5 | * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width): | ||
| 6 | Remove decls. | ||
| 7 | |||
| 3 | * cmds.c (internal_self_insert): Reindent to match Emacs style. | 8 | * cmds.c (internal_self_insert): Reindent to match Emacs style. |
| 4 | 9 | ||
| 5 | * xdisp.c: Rename or move local decls to avoid shadowing. | 10 | * xdisp.c: Rename or move local decls to avoid shadowing. |
diff --git a/src/minibuf.c b/src/minibuf.c index 4b709bd9cbd..a56ed679a51 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -82,6 +82,15 @@ Lisp_Object Qcase_fold_search; | |||
| 82 | 82 | ||
| 83 | Lisp_Object Qread_expression_history; | 83 | Lisp_Object Qread_expression_history; |
| 84 | 84 | ||
| 85 | /* Prompt to display in front of the mini-buffer contents. */ | ||
| 86 | |||
| 87 | static Lisp_Object minibuf_prompt; | ||
| 88 | |||
| 89 | /* Width of current mini-buffer prompt. Only set after display_line | ||
| 90 | of the line that contains the prompt. */ | ||
| 91 | |||
| 92 | static int minibuf_prompt_width; | ||
| 93 | |||
| 85 | 94 | ||
| 86 | /* Put minibuf on currently selected frame's minibuffer. | 95 | /* Put minibuf on currently selected frame's minibuffer. |
| 87 | We do this whenever the user starts a new minibuffer | 96 | We do this whenever the user starts a new minibuffer |
diff --git a/src/window.h b/src/window.h index 491ffa30bd1..690fd9a50fa 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -788,14 +788,6 @@ void run_window_configuration_change_hook (struct frame *f); | |||
| 788 | void set_window_buffer (Lisp_Object window, Lisp_Object buffer, | 788 | void set_window_buffer (Lisp_Object window, Lisp_Object buffer, |
| 789 | int run_hooks_p, int keep_margins_p); | 789 | int run_hooks_p, int keep_margins_p); |
| 790 | 790 | ||
| 791 | /* Prompt to display in front of the minibuffer contents. */ | ||
| 792 | |||
| 793 | extern Lisp_Object minibuf_prompt; | ||
| 794 | |||
| 795 | /* The visual width of the above. */ | ||
| 796 | |||
| 797 | extern int minibuf_prompt_width; | ||
| 798 | |||
| 799 | /* This is the window where the echo area message was displayed. It | 791 | /* This is the window where the echo area message was displayed. It |
| 800 | is always a minibuffer window, but it may not be the same window | 792 | is always a minibuffer window, but it may not be the same window |
| 801 | currently active as a minibuffer. */ | 793 | currently active as a minibuffer. */ |
| @@ -878,4 +870,3 @@ extern void keys_of_window (void); | |||
| 878 | extern int window_box_text_cols (struct window *w); | 870 | extern int window_box_text_cols (struct window *w); |
| 879 | 871 | ||
| 880 | #endif /* not WINDOW_H_INCLUDED */ | 872 | #endif /* not WINDOW_H_INCLUDED */ |
| 881 | |||
diff --git a/src/xdisp.c b/src/xdisp.c index 4c1e906c04c..b95325c8397 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -483,15 +483,6 @@ int buffer_shared; | |||
| 483 | 483 | ||
| 484 | static Lisp_Object default_invis_vector[3]; | 484 | static Lisp_Object default_invis_vector[3]; |
| 485 | 485 | ||
| 486 | /* Prompt to display in front of the mini-buffer contents. */ | ||
| 487 | |||
| 488 | Lisp_Object minibuf_prompt; | ||
| 489 | |||
| 490 | /* Width of current mini-buffer prompt. Only set after display_line | ||
| 491 | of the line that contains the prompt. */ | ||
| 492 | |||
| 493 | int minibuf_prompt_width; | ||
| 494 | |||
| 495 | /* This is the window where the echo area message was displayed. It | 486 | /* This is the window where the echo area message was displayed. It |
| 496 | is always a mini-buffer window, but it may not be the same window | 487 | is always a mini-buffer window, but it may not be the same window |
| 497 | currently active as a mini-buffer. */ | 488 | currently active as a mini-buffer. */ |