diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/callint.c | 8 | ||||
| -rw-r--r-- | src/fileio.c | 2 |
3 files changed, 14 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5290d7ba92b..e9901dfa1bf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * fileio.c (history_delete_duplicates): Remove unused declaration. | ||
| 4 | |||
| 5 | * callint.c (history_delete_duplicates): New declaration. | ||
| 6 | (Fcall_interactively): Remove command history duplicates when | ||
| 7 | history_delete_duplicates is true. | ||
| 8 | |||
| 1 | 2009-04-14 Eli Zaretskii <eliz@gnu.org> | 9 | 2009-04-14 Eli Zaretskii <eliz@gnu.org> |
| 2 | 10 | ||
| 3 | * buffer.c (syms_of_buffer) <line-spacing>: Doc fix. | 11 | * buffer.c (syms_of_buffer) <line-spacing>: Doc fix. |
diff --git a/src/callint.c b/src/callint.c index 3641fbc5b77..074f9c0fc5b 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -42,6 +42,7 @@ Lisp_Object Vcommand_history; | |||
| 42 | 42 | ||
| 43 | extern Lisp_Object Vhistory_length; | 43 | extern Lisp_Object Vhistory_length; |
| 44 | extern Lisp_Object Vthis_original_command, real_this_command; | 44 | extern Lisp_Object Vthis_original_command, real_this_command; |
| 45 | extern int history_delete_duplicates; | ||
| 45 | 46 | ||
| 46 | Lisp_Object Vcommand_debug_status, Qcommand_debug_status; | 47 | Lisp_Object Vcommand_debug_status, Qcommand_debug_status; |
| 47 | Lisp_Object Qenable_recursive_minibuffers; | 48 | Lisp_Object Qenable_recursive_minibuffers; |
| @@ -366,12 +367,15 @@ invoke it. If KEYS is omitted or nil, the return value of | |||
| 366 | { | 367 | { |
| 367 | /* We should record this command on the command history. */ | 368 | /* We should record this command on the command history. */ |
| 368 | Lisp_Object values; | 369 | Lisp_Object values; |
| 370 | Lisp_Object this_cmd; | ||
| 369 | /* Make a copy of the list of values, for the command history, | 371 | /* Make a copy of the list of values, for the command history, |
| 370 | and turn them into things we can eval. */ | 372 | and turn them into things we can eval. */ |
| 371 | values = quotify_args (Fcopy_sequence (specs)); | 373 | values = quotify_args (Fcopy_sequence (specs)); |
| 372 | fix_command (input, values); | 374 | fix_command (input, values); |
| 373 | Vcommand_history | 375 | this_cmd = Fcons (function, values); |
| 374 | = Fcons (Fcons (function, values), Vcommand_history); | 376 | if (history_delete_duplicates) |
| 377 | Vcommand_history = Fdelete (this_cmd, Vcommand_history); | ||
| 378 | Vcommand_history = Fcons (this_cmd, Vcommand_history); | ||
| 375 | 379 | ||
| 376 | /* Don't keep command history around forever. */ | 380 | /* Don't keep command history around forever. */ |
| 377 | if (INTEGERP (Vhistory_length) && XINT (Vhistory_length) > 0) | 381 | if (INTEGERP (Vhistory_length) && XINT (Vhistory_length) > 0) |
diff --git a/src/fileio.c b/src/fileio.c index 0bdbe9f9a46..ed5c09bc840 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -221,8 +221,6 @@ extern int minibuf_level; | |||
| 221 | 221 | ||
| 222 | extern int minibuffer_auto_raise; | 222 | extern int minibuffer_auto_raise; |
| 223 | 223 | ||
| 224 | extern int history_delete_duplicates; | ||
| 225 | |||
| 226 | /* These variables describe handlers that have "already" had a chance | 224 | /* These variables describe handlers that have "already" had a chance |
| 227 | to handle the current operation. | 225 | to handle the current operation. |
| 228 | 226 | ||