Juanma Barranquero
450439d5b6
Fix for momentary-string-display (Bug#6238).
...
* lisp/subr.el (momentary-string-display): Just use read-event to read
the exit event (Bug#6238).
2010-05-31 10:11:18 -04:00
Eli Zaretskii
db5dce9dd1
Implement bidi-sensitive word movement with arrow keys.
...
lisp/subr.el (right-arrow-command, left-arrow-command): Move to bindings.el.
lisp/bindings.el (right-char, left-char): Move from subr.el and
rename from right-arrow-command and left-arrow-command.
(right-word, left-word): New functions.
(global-map) <right>: Bind to right-char.
(global-map) <left>: Bind to left-char.
(global-map) <C-right>: Bind to right-word.
(global-map) <C-left>: Bind to left-word.
doc/emacs/basic.texi (Moving Point): Update due to renaming of commands bound
to arrows. Document bidi-aware behavior of C-<right> and C-<left>.
2010-05-29 18:19:13 +03:00
Chong Yidong
29031d52fe
Stefan Monnier <monnier@iro.umontreal.ca>
2010-05-18 16:51:12 -04:00
Stefan Monnier
278847cd92
* subr.el (read-quoted-char): Resolve modifiers after key remapping.
...
Fixes: debbugs:6212
2010-05-18 16:31:44 -04:00
Eli Zaretskii
d20e1419fd
Implement bidi-sensitive movement with arrow keys.
...
src/bidi.c (bidi_paragraph_init): Don't leave alone garbage values
of bidi_it->paragraph_dir. Call bidi_initialize if needed.
src/xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
(syms_of_xdisp): Defsubr it.
src/cmds.c (Fforward_char, Fbackward_char): Doc fix.
src/subr.el (right-arrow-command, left-arrow-command): New functions.
src/bindings.el (global-map): Bind them to right and left arrow keys.
etc/NEWS: Mention current-bidi-paragraph-direction
2010-05-15 16:23:48 +03:00
Stefan Monnier
365f8d856c
Minor cleanups.
...
* org-table.el (orgtbl-setup):
* org-agenda.el (org-agenda-entry-text-mode): Simplify.
* subr.el (add-minor-mode): Use push.
* mail/supercite.el (sc-electric-mode): Use more descriptive arg name.
* emulation/edt.el (edt-select-mode): Simplify.
2010-05-05 00:27:16 -04:00
Juanma Barranquero
938efb776d
Remove references to (default-)direction-reversed.
2010-04-21 01:05:30 +02:00
Stefan Monnier
857387516c
Merge from emacs-23 branch
2010-03-30 22:37:57 -04:00
Chong Yidong
9326ba2682
* subr.el: Extend progress reporters to perform "spinning".
...
(progress-reporter-update, progress-reporter-do-update): Handle
non-numeric value arguments.
(progress-reporter--pulse-characters): New var.
2010-03-29 19:18:48 -04:00
Eli Zaretskii
9478502212
Fix doc strings of version-* functions and variables.
...
subr.el (version-regexp-alist, version-to-list)
(version-list-<, version-list-=, version-list-<=)
(version-list-not-zero, version<, version<=, version=): Doc fix.
(Bug#5744).
2010-03-27 15:31:04 +03:00
Štěpán Němec
bc91aee966
Close bug#5670 with patch from Å tÄpán NÄmec <stepnem at gmail.com>.
...
* subr.el (momentary-string-display): Don't overwrite the MESSAGE
argument with a local variable. (Bug#5670)
2010-03-02 19:58:26 -08:00
Eli Zaretskii
0f00e9485d
subr.el (remove-yank-excluded-properties): Explain in a comment why `category'
...
property is removed.
2010-02-20 10:59:16 +02:00
Stefan Monnier
28f0b0721d
(copy-overlay): Damn typo.
2010-02-11 14:37:11 -05:00
Stefan Monnier
48b1e7cf2b
* subr.el (copy-overlay): Handle deleted overlays.
2010-02-11 14:35:36 -05:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Stefan Monnier
cb190d7d5f
(string-prefix-p): New function.
2009-11-25 03:59:19 +00:00
Dan Nicolaescu
2f7f4beee9
* progmodes/grep.el (grep-regexp-alist):
...
* international/mule-cmds.el (iso-2022-control-alist):
* emacs-lisp/timer.el (timer-duration-words):
* subr.el (version-separator, version-regexp-alist):
* minibuffer.el (completion-styles-alist):
* faces.el (face-attribute-name-alist, list-faces-sample-text):
Change defvars to defconsts.
2009-11-11 06:36:41 +00:00
Dan Nicolaescu
ff917d6321
* subr.el (add-hook): Purecopy strings.
...
(eval-after-load): Purecopy load-history-regexp and the form.
2009-11-11 06:16:16 +00:00
Dan Nicolaescu
a3c20c832c
* subr.el (menu-bar-separator): New defconst.
...
* replace.el (occur-mode-map):
* menu-bar.el (menu-bar-file-menu, menu-bar-search-menu)
(menu-bar-edit-menu, menu-bar-goto-menu, menu-bar-edit-menu)
(menu-bar-custom-menu, menu-bar-showhide-menu)
(menu-bar-options-menu, menu-bar-tools-menu)
(menu-bar-encryption-decryption-menu, menu-bar-describe-menu)
(menu-bar-search-documentation-menu, menu-bar-manuals-menu)
(menu-bar-help-menu):
* ediff-hook.el (menu-bar-ediff-menu, menu-bar-ediff-merge-menu):
* buff-menu.el (Buffer-menu-mode-map): Use menu-bar-separator.
2009-11-11 05:57:51 +00:00
Dan Nicolaescu
6bdad9ae02
* term/x-win.el (x-gtk-stock-map):
...
* progmodes/vera-mode.el (auto-mode-alist):
* progmodes/inf-lisp.el (inferior-lisp-filter-regexp)
(inferior-lisp-program, inferior-lisp-load-command):
* progmodes/hideshow.el (hs-special-modes-alist):
* progmodes/gud.el (same-window-regexps):
* progmodes/grep.el (grep-program, find-program, xargs-program):
* net/telnet.el (same-window-regexps):
* net/rlogin.el (same-window-regexps):
* language/ethiopic.el (font-ccl-encoder-alist):
* vc-sccs.el (vc-sccs-master-templates):
* vc-rcs.el (vc-rcs-master-templates):
* subr.el (cl-assertion-failed):
* simple.el (next-error-overlay-arrow-position):
* lpr.el (lpr-command):
* locate.el (locate-ls-subdir-switches):
* info.el (same-window-regexps, info)
(Info-goto-emacs-command-node, Info-goto-emacs-key-command-node):
* image-mode.el (image-mode, auto-mode-alist):
* hippie-exp.el (hippie-expand-ignore-buffers):
* format.el (format-alist):
* find-dired.el (find-ls-subdir-switches, find-grep-options)
(find-name-arg):
* facemenu.el (facemenu-keybindings):
* dired.el (dired-listing-switches, dired-chown-program):
* diff.el (diff-switches, diff-command):
* cus-edit.el (same-window-regexps):
* bindings.el (mode-line-mule-info)
(mode-line-buffer-identification): Purecopy strings.
2009-11-11 05:49:09 +00:00
Stefan Monnier
4fcc3d324a
(all-completions): Declare the 4th arg obsolete.
2009-10-26 03:39:15 +00:00
Stefan Monnier
79bd5ba156
(read-key-delay): Reduce to 0.01.
...
(read-key): Use read-key-sequence-vector to avoid turning M-t into 244
(bug#4751).
2009-10-20 01:29:17 +00:00
Juanma Barranquero
f3ed9aca28
* subr.el (error, sit-for, start-process-shell-command)
...
(start-file-process-shell-command): Set the calling convention
after the function definition.
2009-10-16 05:03:56 +00:00
Stefan Monnier
fd6c51348d
(error, sit-for, start-process-shell-command)
...
(start-file-process-shell-command): Use the new
set-advertised-calling-convention feature.
2009-10-16 03:21:18 +00:00
Stefan Monnier
9d28c33ede
* eval.c (Fcalled_interactively_p): Add `kind' argument.
...
* subr.el (interactive-p): Mark obsolete.
(called-interactively-p): Make the optional-ness of `kind' obsolete.
* emacs-lisp/bytecomp.el (byte-compile-fdefinition): Make it obey
advertised-signature-table for subroutines as well.
2009-10-01 17:47:38 +00:00
Glenn Morris
a4d2c321a5
(declare-function): Doc fix.
2009-10-01 02:03:38 +00:00
Chong Yidong
24aedbcaed
* subr.el (baud-rate): Remove long-obsolete function (Bug#4372).
2009-09-19 19:54:36 +00:00
Chong Yidong
a69c67e84f
* subr.el: Fix last change to avoid using the `unless' macro, which
...
breaks bootstrapping.
2009-09-17 20:47:48 +00:00
Stefan Monnier
354f0faf61
(push, pop, dolist, dotimes, declare): Don't overwrite CL's
...
extended definitions, in case we reload subr.el after having
loaded CL.
(eval-next-after-load): Mark as obsolete.
2009-09-17 15:58:35 +00:00
Stefan Monnier
838ff45802
(after-load-functions): New hook.
...
(do-after-load-evaluation): Run it. Use string-match-p to detect
`obsolete' packages, rather than painfully extracting the relevant
directory name.
2009-09-15 03:39:40 +00:00
Stefan Monnier
45448e641a
* startup.el (tutorial-directory): Make it a defcustom.
...
Use custom-initialize-delay rather than eval-at-startup to set it.
* image.el (image-load-path): Make it a defcustom.
Use custom-initialize-delay rather than eval-at-startup to set it.
* subr.el (eval-at-startup): Remove.
* font-lock.el (lisp-font-lock-keywords-2): Remove eval-at-startup.
2009-09-12 03:55:46 +00:00
Stefan Monnier
5766c380ee
* lread.c (Fload): Don't output a message after loading an obsolete
...
package any more (done in Lisp now).
* subr.el (do-after-load-evaluation): Warn the user after loading an
obsolete package.
2009-09-12 03:35:40 +00:00
Stefan Monnier
50d4ba3993
* keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
...
(parse_menu_item): Streamline since bindings are recomputed all the
time anyway. Don't bother checking Vdefine_key_rebound_commands any
more and don't support lmenu's menu-alias any more either.
* subr.el (define-key-rebound-commands): Mark obsolete.
* startup.el (precompute-menubar-bindings): Remove.
(normal-top-level): Remove obsolete code that tried to precompute
menubar bindings.
* loadup.el (define-key-rebound-commands): Don't bother fiddling with
define-key-rebound-commands and precompute-menubar-bindings.
2009-09-10 18:19:03 +00:00
Stefan Monnier
83a5aac556
(with-silent-modifications): New macro.
2009-09-08 19:42:21 +00:00
Juanma Barranquero
060c08b574
* subr.el (do-after-load-evaluation): Fix last change: use `mapc'
...
instead of `dolist' to avoid a recursive require when bootstrapping.
2009-08-30 18:17:20 +00:00
Juanma Barranquero
486cf3b876
* subr.el (do-after-load-evaluation): Simplify.
2009-08-29 22:27:19 +00:00
Stefan Monnier
4e3b4528ea
* subr.el (default-mode-line-format, default-header-line-format)
...
(default-line-spacing, default-abbrev-mode, default-ctl-arrow)
(default-direction-reversed, default-truncate-lines)
(default-left-margin, default-tab-width, default-case-fold-search)
(default-left-margin-width, default-right-margin-width)
(default-left-fringe-width, default-right-fringe-width)
(default-fringes-outside-margins, default-scroll-bar-width)
(default-vertical-scroll-bar, default-indicate-empty-lines)
(default-indicate-buffer-boundaries, default-fringe-indicator-alist)
(default-fringe-cursor-alist, default-scroll-up-aggressively)
(default-scroll-down-aggressively, default-fill-column)
(default-cursor-type, default-buffer-file-type)
(default-cursor-in-non-selected-windows)
(default-buffer-file-coding-system, default-major-mode)
(default-enable-multibyte-characters): Mark as obsolete.
* cus-start.el (default-major-mode): Customize `major-mode' instead.
(enable-multibyte-characters): Not customizable any more.
2009-08-27 04:24:00 +00:00
Stefan Monnier
4fd15622e6
(read-passwd): Use read-key so keypad keys work as well.
2009-08-19 19:42:25 +00:00
Stefan Monnier
03a74b84f8
* subr.el (listify-key-sequence-1): Use normal syntax since those
...
integers are nowadays always represented by the same (positive) number
on all platforms.
(read-key-empty-map): New const.
(read-key-delay): New var.
(read-key): New function.
(force-mode-line-update): Use with-current-buffer.
(locate-user-emacs-file): Don't forget to abbreviate the file name.
(start-process-shell-command, start-file-process-shell-command):
Discourage the use of command-args.
* processes.texi (Asynchronous Processes): Adjust arglist of
start-process-shell-command and start-file-process-shell-command.
2009-08-19 03:03:05 +00:00
Chong Yidong
18d433a761
* subr.el: Provide hashtable-print-readable.
2009-08-09 02:57:45 +00:00
Juri Linkov
d842b10332
(process-kill-buffer-query-function): New function.
...
(add-hook)<kill-buffer-query-functions>: Add hook
`process-kill-buffer-query-function'.
2009-07-18 21:06:04 +00:00
Glenn Morris
e32721f52f
(def-edebug-spec): Doc fix.
2009-07-14 07:45:56 +00:00
Glenn Morris
f176290e84
(eval-after-load): Doc fix.
2009-07-06 00:51:27 +00:00
Glenn Morris
00b9254ce3
Fix previous change, sigh.
2009-06-19 03:08:54 +00:00
Glenn Morris
6ec6d6f469
(open-network-stream): Doc fix.
2009-06-19 03:06:40 +00:00
Chong Yidong
753bc4f650
* subr.el (assoc-default): Doc fix.
2009-04-29 04:46:15 +00:00
Chong Yidong
7beba943ec
* subr.el (posn-col-row): Properly compute line spacing.
...
Suggested by Nikolaj Schumacher (Bug#2933).
2009-04-15 22:41:20 +00:00
Juanma Barranquero
673e51692e
* subr.el (forward-point): Add obsolescence declaration.
...
* paren.el (show-paren-function):
* simple.el (kill-forward-chars, kill-backward-chars):
Use (+/- (point) N), instead of `forward-point'.
2009-03-19 14:45:02 +00:00
Eli Zaretskii
b46957e2f4
(translation-table-for-input): Declare obsolete again.
2009-02-14 09:08:08 +00:00
Eli Zaretskii
c9ae6ddd1e
(locate-library): Doc fix. (Bug#2291)
2009-02-13 15:19:06 +00:00