diff options
| author | Glenn Morris | 2011-01-19 22:40:36 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-01-19 22:40:36 -0800 |
| commit | c11136ec3e0fe7167c3cfcaa25ddac47693d3e88 (patch) | |
| tree | fd0fc316bb35d2d44ed77b275c891d2a9a89a356 /src | |
| parent | bb1c6663330a318d86e64bf6ec87baf69d486958 (diff) | |
| download | emacs-c11136ec3e0fe7167c3cfcaa25ddac47693d3e88.tar.gz emacs-c11136ec3e0fe7167c3cfcaa25ddac47693d3e88.zip | |
Give read-expression-history a doc.
* lisp/simple.el (read-expression-history): Remove, it's in minibuf.c.
* src/minibuf.c (syms_of_minibuf) <read-expression-history>:
Give it a doc string.
* src/globals.h: Add Vread_expression_history.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/globals.h | 4 | ||||
| -rw-r--r-- | src/minibuf.c | 12 |
3 files changed, 17 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6e54c7a1809..8c6e8e8b99a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-01-20 Glenn Morris <rgm@gnu.org> | 1 | 2011-01-20 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * minibuf.c (syms_of_minibuf) <read-expression-history>: | ||
| 4 | Give it a doc string. | ||
| 5 | * globals.h: Add Vread_expression_history. | ||
| 6 | |||
| 3 | * macros.c (syms_of_macros) <kbd-macro-termination-hook>: | 7 | * macros.c (syms_of_macros) <kbd-macro-termination-hook>: |
| 4 | Give it a doc string. | 8 | Give it a doc string. |
| 5 | * globals.h: Add Vkbd_macro_termination_hook. | 9 | * globals.h: Add Vkbd_macro_termination_hook. |
diff --git a/src/globals.h b/src/globals.h index 2b051dd542c..3d7203b875a 100644 --- a/src/globals.h +++ b/src/globals.h | |||
| @@ -983,6 +983,8 @@ struct emacs_globals | |||
| 983 | 983 | ||
| 984 | Lisp_Object f_Vminibuffer_exit_hook; | 984 | Lisp_Object f_Vminibuffer_exit_hook; |
| 985 | 985 | ||
| 986 | Lisp_Object f_Vread_expression_history; | ||
| 987 | |||
| 986 | /* Function to call to read a buffer name. */ | 988 | /* Function to call to read a buffer name. */ |
| 987 | Lisp_Object f_Vread_buffer_function; | 989 | Lisp_Object f_Vread_buffer_function; |
| 988 | 990 | ||
| @@ -2268,6 +2270,8 @@ extern struct emacs_globals globals; | |||
| 2268 | globals.f_Vquit_flag | 2270 | globals.f_Vquit_flag |
| 2269 | #define Vread_buffer_function \ | 2271 | #define Vread_buffer_function \ |
| 2270 | globals.f_Vread_buffer_function | 2272 | globals.f_Vread_buffer_function |
| 2273 | #define Vread_expression_history \ | ||
| 2274 | globals.f_Vread_expression_history | ||
| 2271 | #define Vread_circle \ | 2275 | #define Vread_circle \ |
| 2272 | globals.f_Vread_circle | 2276 | globals.f_Vread_circle |
| 2273 | #define Vread_expression_map \ | 2277 | #define Vread_expression_map \ |
diff --git a/src/minibuf.c b/src/minibuf.c index 34854cfa420..9d3ff776e70 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | /* Minibuffer input and completion. | 1 | /* Minibuffer input and completion. |
| 2 | Copyright (C) 1985, 1986, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 2 | |
| 3 | 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | 3 | Copyright (C) 1985, 1986, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 | 2008, 2009, 2010, 2011 Free Software Foundation, Inc. | 4 | 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
| 5 | 2011 Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | This file is part of GNU Emacs. | 7 | This file is part of GNU Emacs. |
| 7 | 8 | ||
| @@ -2016,6 +2017,11 @@ syms_of_minibuf (void) | |||
| 2016 | Qcase_fold_search = intern_c_string ("case-fold-search"); | 2017 | Qcase_fold_search = intern_c_string ("case-fold-search"); |
| 2017 | staticpro (&Qcase_fold_search); | 2018 | staticpro (&Qcase_fold_search); |
| 2018 | 2019 | ||
| 2020 | DEFVAR_LISP ("read-expression-history", Vread_expression_history, | ||
| 2021 | doc: /* A history list for arguments that are Lisp expressions to evaluate. | ||
| 2022 | For example, `eval-expression' uses this. */); | ||
| 2023 | Vread_expression_history = Qnil; | ||
| 2024 | |||
| 2019 | Qread_expression_history = intern_c_string ("read-expression-history"); | 2025 | Qread_expression_history = intern_c_string ("read-expression-history"); |
| 2020 | staticpro (&Qread_expression_history); | 2026 | staticpro (&Qread_expression_history); |
| 2021 | 2027 | ||