1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00
emacs/etc
Stefan Monnier 5dc644a6b0 Generalize the prefix-command machinery of C-u
* lisp/simple.el (prefix-command-echo-keystrokes-functions)
(prefix-command-preserve-state-hook): New hooks.
(internal-echo-keystrokes-prefix): New function.
(prefix-command--needs-update, prefix-command--last-echo): New vars.
(prefix-command-update, prefix-command-preserve): New functions.
(reset-this-command-lengths): New compatibility definition.
(universal-argument--mode): Call prefix-command-update.
(universal-argument, universal-argument-more, negative-argument)
(digit-argument): Call prefix-command-preserve-state.

* src/keyboard.c: Call internal-echo-keystrokes-prefix to build
the "prefix argument" to echo.
(this_command_key_count_reset, before_command_key_count)
(before_command_echo_length): Delete variables.
(echo_add_key): Always add a space.
(echo_char): Remove.
(echo_dash): Don't give up when this_command_key_count is 0, since that
is now the case after a prefix command.
(echo_update): New function, extracted from echo_now.
(echo_now): Use it.
(add_command_key, read_char, record_menu_key): Remove old disabled code.
(command_loop_1): Don't refrain from pushing an undo boundary when
prefix-arg is set.  Remove other prefix-arg special case, now handled
directly in the prefix commands instead.  But call echo_now if there's
a prefix state to echo.
(read_char, record_menu_key): Use echo_update instead of echo_char.
(read_key_sequence): Use echo_now rather than echo_dash/echo_char.
(Freset_this_command_lengths): Delete function.
(syms_of_keyboard): Define Qinternal_echo_keystrokes_prefix.
(syms_of_keyboard): Don't defsubr Sreset_this_command_lengths.

* lisp/simple.el: Use those new hooks for C-u.
(universal-argument--description): New function.
(prefix-command-echo-keystrokes-functions): Use it.
(universal-argument--preserve): New function.
(prefix-command-preserve-state-hook): Use it.
(command-execute): Call prefix-command-update if needed.

* lisp/kmacro.el (kmacro-step-edit-prefix-commands)
(kmacro-step-edit-prefix-index): Delete variables.
(kmacro-step-edit-query, kmacro-step-edit-insert): Remove ad-hoc
support for prefix arg commands.
(kmacro-step-edit-macro): Don't bind kmacro-step-edit-prefix-index.

* lisp/emulation/cua-base.el (cua--prefix-override-replay)
(cua--shift-control-prefix): Use prefix-command-preserve-state.
Remove now unused arg `arg'.
(cua--prefix-override-handler, cua--prefix-repeat-handler)
(cua--shift-control-c-prefix, cua--shift-control-x-prefix):
Update accordingly.
(cua--prefix-override-timeout): Don't call reset-this-command-lengths
any more.
(cua--keep-active, cua-exchange-point-and-mark): Don't set mark-active
if the mark is not set.
2015-09-01 21:14:18 -04:00
..
charsets Remove charset map files from repository, generate in first bootstrap 2015-05-23 16:38:13 -07:00
e Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
forms Update copyright year to 2015 2015-01-01 14:26:41 -08:00
gnus
images Splash images refurbished 2015-01-30 00:38:02 +01:00
nxml
org Update copyright year to 2015 2015-01-01 14:26:41 -08:00
refcards Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
schema Update copyright year to 2015 2015-01-01 14:26:41 -08:00
srecode Update copyright year to 2015 2015-01-01 14:26:41 -08:00
themes Add ace-window face config 2015-04-30 23:00:06 +02:00
tutorials * etc/tutorials/TUTORIAL.ja: Improve translation. 2015-07-26 00:25:05 -07:00
AUTHORS Merge from origin/emacs-24 2015-03-08 18:49:27 -07:00
CALC-NEWS Update copyright year to 2015 2015-01-01 14:26:41 -08:00
CENSORSHIP
ChangeLog.1 Rename ChangeLogs for gitlog-to-changelog 2015-04-07 00:00:06 -07:00
compilation.txt Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
COPYING
DEBUG Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
DEVEL.HUMOR Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
DISTRIB Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
edt-user.el Fix minor quoting problems in doc strings 2015-05-28 00:22:03 -07:00
emacs-buffer.gdb Update copyright year to 2015 2015-01-01 14:26:41 -08:00
emacs.appdata.xml Update copyright year to 2015 2015-01-01 14:26:41 -08:00
emacs.desktop * etc/emacs.desktop: Add "Keywords". 2014-10-30 21:10:19 -07:00
emacs.icon
enriched.txt Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
ERC-NEWS Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ETAGS.EBNF Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
ETAGS.README Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
FTP
future-bug
GNU Update copyright year to 2015 2015-01-01 09:18:06 -08:00
GNUS-NEWS etc/GNUS-NEWS: Nore X-GM-LABELS 2015-02-05 03:55:13 +00:00
gnus-tut.txt Update copyright year to 2015 2015-01-01 14:26:41 -08:00
grep.txt Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
HELLO Update copyright year to 2015 2015-01-01 14:26:41 -08:00
JOKES
LINUX-GNU
MACHINES Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
MH-E-NEWS Update copyright year to 2015 2015-01-01 14:26:41 -08:00
MORE.STUFF
NEWS Generalize the prefix-command machinery of C-u 2015-09-01 21:14:18 -04:00
NEWS.1-17 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
NEWS.18 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
NEWS.19 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
NEWS.20 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
NEWS.21 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
NEWS.22 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
NEWS.23 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
NEWS.24 Merge from origin/emacs-24 2015-03-03 14:52:04 -08:00
NEXTSTEP Update copyright year to 2015 2015-01-01 14:26:41 -08:00
NXML-NEWS Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ORDERS
ORG-NEWS Update copyright year to 2015 2015-01-01 14:26:41 -08:00
package-keyring.gpg * etc/package-keyring.gpg: New file. 2014-09-24 10:28:27 -04:00
PROBLEMS Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
ps-prin0.ps Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ps-prin1.ps Update copyright year to 2015 2015-01-01 14:26:41 -08:00
publicsuffix.txt Update the etc/publicsuffix.txt file 2015-01-26 15:21:34 +11:00
README Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
rgb.txt
ses-example.ses Update copyright year to 2015 2015-01-01 14:26:41 -08:00
spook.lines
TERMS Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
THE-GNU-PROJECT
TODO Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
WHY-FREE
yow.lines Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2015 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)