aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2009-04-15 00:08:23 +0000
committerDan Nicolaescu2009-04-15 00:08:23 +0000
commitd65859c36e21f1e9c44655c19f3d8e34acc3a5cb (patch)
tree2960e4ba9f68bfe748d3e2d213e700d9e7ebcef4 /src
parentade29c44f68b80ac67b1f767c8069bff941c772c (diff)
downloademacs-d65859c36e21f1e9c44655c19f3d8e34acc3a5cb.tar.gz
emacs-d65859c36e21f1e9c44655c19f3d8e34acc3a5cb.zip
* fileio.c (history_delete_duplicates): Remove unused declaration.
* callint.c (history_delete_duplicates): New declaration. (Fcall_interactively): Remove command history duplicates when history_delete_duplicates is true.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/callint.c8
-rw-r--r--src/fileio.c2
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 @@
12009-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
12009-04-14 Eli Zaretskii <eliz@gnu.org> 92009-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
43extern Lisp_Object Vhistory_length; 43extern Lisp_Object Vhistory_length;
44extern Lisp_Object Vthis_original_command, real_this_command; 44extern Lisp_Object Vthis_original_command, real_this_command;
45extern int history_delete_duplicates;
45 46
46Lisp_Object Vcommand_debug_status, Qcommand_debug_status; 47Lisp_Object Vcommand_debug_status, Qcommand_debug_status;
47Lisp_Object Qenable_recursive_minibuffers; 48Lisp_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
222extern int minibuffer_auto_raise; 222extern int minibuffer_auto_raise;
223 223
224extern 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