Chong Yidong
05e89feafd
* mouse.el (mouse-drag-track): Deactivate the mark before popping.
2012-06-23 20:48:24 +08:00
Chong Yidong
0e9e6c6abc
Mark python-mode abbrevs as system abbrevs.
...
* progmodes/python.el (python-skeleton-define): Mark abbrevs as
system abbrevs.
* ansi-color.el (ansi-color-apply-on-region): Doc fix.
2012-06-23 17:28:10 +08:00
Stefan Monnier
b68581e26c
* lisp/emacs-lisp/cl-macs.el (cl--make-usage-args): Handle improper lists.
...
Fixes: debbugs:11719
2012-06-23 00:24:06 -04:00
Stefan Monnier
e33c6771f6
* lisp/minibuffer.el (completion--twq-try): Try to fail more gracefully when
...
the requote function doesn't work properly.
Fixes: debbugs:11714
2012-06-22 23:48:18 -04:00
Glenn Morris
7117e105bb
* lisp/pcmpl-rpm.el (pcmpl-rpm-packages): Give status messages.
2012-06-22 21:02:17 -04:00
Stefan Monnier
36cec983d4
Further GV/CL cleanups.
...
* lisp/emacs-lisp/gv.el (gv-get): Autoload functions to find their
gv-expander.
(gv--defun-declaration): New function.
(defun-declarations-alist): Use it.
(gv-define-modify-macro, gv-pushnew!, gv-inc!, gv-dec!): Remove.
(gv-place): Autoload.
* lisp/emacs-lisp/cl.el (cl--dotimes, cl--dolist): Remember subr.el's
original definition of dotimes and dolist.
* lisp/emacs-lisp/cl-macs.el (cl-expr-access-order): Remove unused.
(cl-dolist, cl-dotimes): Use `dolist' and `dotimes'.
* lisp/emacs-lisp/cl-lib.el: Move gv handlers from cl-macs to here.
(cl-fifth, cl-sixth, cl-seventh, cl-eighth)
(cl-ninth, cl-tenth): Move gv handler to the function's definition.
* lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-get, cl-getf): Move gv handler
to the function's definition.
* lisp/Makefile.in (COMPILE_FIRST): Re-order to speed it up by about 50%.
* lisp/window.el:
* lisp/files.el:
* lisp/faces.el:
* lisp/env.el: Don't use CL.
2012-06-22 17:24:54 -04:00
Paul Eggert
d35af63cd6
Support higher-resolution time stamps.
...
Fixes: debbugs:9000
2012-06-22 14:17:42 -07:00
Stefan Monnier
f143bfe38b
* lisp/icomplete.el (icomplete-minibuffer-setup, icomplete-completions):
...
Move the non-essential binding to the post/pre-command-hook where it is
more obviously correct.
2012-06-22 13:37:28 -04:00
Stefan Monnier
ac77b21adb
* lisp/subr.el (read-passwd): Don't use a history at all.
...
* lisp/savehist.el (savehist-save): Remove password saved accidentally
because of the above bug.
2012-06-22 13:30:25 -04:00
Glenn Morris
b57b344b51
Improve pcmpl-rpm-query-options custom type
2012-06-22 09:00:34 -07:00
Bastien Guerry
76386c5a98
Fix bug #11726 -- send a message after `toggle-read-only'.
...
Thanks to Drew Adam for reporting this.
2012-06-22 16:12:42 +02:00
Stefan Monnier
2ee3d7f0aa
Provide generalized variables in core Elisp.
...
* lisp/emacs-lisp/gv.el: New file.
* lisp/subr.el (push, pop): Extend to generalized variables.
* lisp/loadup.el (macroexp): Unload if preloaded and uncompiled.
* lisp/emacs-lisp/cl-lib.el (cl-pop, cl-push, cl--set-nthcdr): Remove.
* lisp/emacs-lisp/cl-macs.el: Require gv. Use gv-define-setter,
gv-define-simple-setter, and gv-define-expander.
Remove setf-methods defined in gv. Rename cl-setf -> setf.
(cl-setf, cl-do-pop, cl-get-setf-method): Remove.
(cl-letf, cl-letf*, cl-define-modify-macro, cl-defsetf)
(cl-define-setf-expander, cl-struct-setf-expander): Move to cl.el.
(cl-remf, cl-shiftf, cl-rotatef, cl-callf, cl-callf2): Rewrite with
gv-letplace.
(cl-defstruct): Don't define setf-method any more.
* lisp/emacs-lisp/cl.el (flet): Don't autoload.
(cl--letf, letf, cl--letf*, letf*, cl--gv-adapt)
(define-setf-expander, defsetf, define-modify-macro)
(cl-struct-setf-expander): Move from cl-lib.el.
* lisp/emacs-lisp/syntax.el:
* lisp/emacs-lisp/ewoc.el:
* lisp/emacs-lisp/smie.el:
* lisp/emacs-lisp/cconv.el:
* lisp/emacs-lisp/timer.el: Rename cl-setf -> setf, cl-push -> push.
(timer--time): Use gv-define-simple-setter.
* lisp/emacs-lisp/macroexp.el (macroexp-let2): Rename from macroexp-let²
to avoid coding-system problems in subr.el. Adjust all users.
(macroexp--maxsize, macroexp-small-p): New functions.
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Don't use cl-letf.
* lisp/scroll-bar.el (scroll-bar-mode):
* lisp/simple.el (auto-fill-mode, overwrite-mode, binary-overwrite-mode)
(normal-erase-is-backspace-mode): Don't use the `eq' place.
* lisp/winner.el (winner-configuration, winner-make-point-alist)
(winner-set-conf, winner-get-point, winner-set): Don't abuse letf.
* lisp/files.el (locate-file-completion-table): Avoid list*.
Fixes: debbugs:11657
2012-06-22 09:42:38 -04:00
Glenn Morris
575db3f1a8
Further speed up rpm completion, by caching the installed packages
...
* lisp/pcmpl-rpm.el (pcmpl-rpm-cache): New option.
(pcmpl-rpm-cache-stamp-file): New constant.
(pcmpl-rpm-cache-time, pcmpl-rpm-packages): New variables.
(pcmpl-rpm-packages): Optionally cache list of packages.
2012-06-22 00:38:26 -07:00
Chong Yidong
c5695d1d09
Misc doc fixes for Dired.
...
* dired-aux.el (dired-do-create-files): Doc fix (Bug#11327).
(dired-create-files): Doc fix (Bug#11329).
(dired-do-copy): Doc fix (Bug#11334).
(dired-mark-read-string): Doc fix (Bug#11553).
* dired.el (dired-recursive-copies, dired-recursive-deletes): Doc
fix (Bug#11326).
(dired-make-relative): Doc fix (Bug#11332). Remove unused arg.
(dired-dwim-target): Doc fix.
* wdired.el (wdired-mode): Doc fix.
2012-06-22 15:30:33 +08:00
Glenn Morris
a4c8dd51c1
Try to speed up pcomplete's calling of rpm -qa
...
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-04/msg00174.html
* lisp/pcmpl-rpm.el (pcmpl-rpm): New group.
(pcmpl-rpm-query-options): New option.
(pcmpl-rpm-packages): No need to inline it. Use pcmpl-rpm-query-options.
2012-06-22 00:01:32 -07:00
Glenn Morris
89b5595ade
* calendar.el (calendar-in-read-only-buffer): Avoid some needless mode changes.
2012-06-21 21:50:35 -04:00
Chong Yidong
a3f10d3e4b
* url.el (url-retrieve-internal): Fix last change.
...
Fixes: debbugs:11627
2012-06-21 17:21:28 +08:00
Chong Yidong
6b67c0d4c9
* desktop.el (desktop-read): Use user-emacs-directory if desktop-path is nil.
2012-06-21 15:25:56 +08:00
Chong Yidong
e76f0800d2
Fixes to desktop reading logic.
...
* desktop.el (desktop-read): Don't prompt if daemon.
(desktop-path): Remove . from the default value.
2012-06-21 15:15:42 +08:00
Chong Yidong
297a8f1ddb
term.el (term-send-raw-meta): Make C-M-<char> keys work (Bug#8172).
...
-------------- This lime and the following will be ignored --------------
modified:
lisp/ChangeLog
lisp/term.el
2012-06-20 12:21:57 -04:00
David Röthlisberger
d34c18b1c9
* lisp/ido.el (ido-switch-buffer, ido-find-file): Fix up doc of C-j.
...
Fixes: debbugs:11201
2012-06-20 11:51:34 -04:00
Chong Yidong
6ff7caa835
Change term.el to use font-lock.
...
* term.el (term-mode): Set font-lock-defaults.
(term-move-columns, term-insert-char, term-emulate-terminal)
(term-erase-in-line, term-insert-spaces): Use font-lock-face.
Fixes: debbugs:7692
2012-06-20 17:21:06 +08:00
Chong Yidong
32f7f28e02
Fixes to window size calculations in term.el.
...
* term.el (term-window-width): Handle the case of a missing right
fringe.
(term-check-size): Use window-text-height.
(term-mode): Use define-derived-mode. Minor cleanups.
Fixes: debbugs:8837
2012-06-20 16:34:21 +08:00
Michael Albinus
493c66882d
* net/ange-ftp.el (ange-ftp-get-passwd): Bind
...
`enable-recursive-minibuffers'.
(ange-ftp-get-process): Throw if `non-essential' is non-nil.
2012-06-20 08:51:53 +02:00
David Röthlisberger
3f06ecf4f6
* lisp/ido.el (ido-find-file): Mention C-d binding in docstring.
...
Fixes: debbugs:11244
2012-06-19 14:17:14 -04:00
Glenn Morris
68f1241189
* lisp/progmodes/python.el (python-mode): Derive from prog-mode.
2012-06-19 09:04:47 -07:00
Kevin Gallagher
b382031894
In EDT emulator, allow updating of menu-bar Buffers menu.
...
* lisp/emulation/edt.el (edt-default-menu-bar-update-buffers)
(edt-user-menu-bar-update-buffers): New functions.
(edt-default-emulation-setup, edt-user-emulation-setup): Use them.
2012-06-19 15:05:44 +08:00
Chong Yidong
c6bf302224
Preserve tty top-frames under various window-changing operations.
...
* subr.el (with-selected-window): Preserve the selected window's
terminal's top-frame.
* window.el (save-selected-window): Likewise.
* frame.c (delete_frame): When selecting a frame on a different
text terminal, do not alter the terminal's top-frame.
* term.c (Ftty_top_frame): New function.
* xdisp.c (format_mode_line_unwind_data): Record the target
frame's selected window and its terminal's top-frame.
(unwind_format_mode_line): Restore them.
(x_consider_frame_title, display_mode_line, Fformat_mode_line):
Callers changed.
(x_consider_frame_title): Do not condition on HAVE_WINDOW_SYSTEM,
since tty frames can be explicitly named.
(prepare_menu_bars): Likewise.
Fixes: debbugs:4702
2012-06-19 14:49:50 +08:00
Nelson Ferreira
4e2cc2f31f
gnus-win.el (gnus-configure-frame): Pass an arg to window-dedicated-p
2012-06-18 23:12:10 +00:00
Stefan Monnier
25f09295fa
* lisp/progmodes/python.el (python-rx-constituents): Move backquote.
...
(python-skeleton-define, python-define-auxiliary-skeleton): Use `declare'.
2012-06-18 16:41:23 -04:00
Michael Albinus
6b11952a33
* minibuffer.el (read-file-name-default): Revert the patch from 2012-06-17.
2012-06-18 22:39:52 +02:00
Stefan Monnier
ee4b13300e
* lisp/emacs-lisp/pcase.el (pcase--expand): Warn for unused pattern.
...
(pcase--u1, pcase--q1): Don't use apply-partially.
2012-06-18 15:23:35 -04:00
Glenn Morris
35647f79fd
Fix python.el obsolescence versions
...
* lisp/progmodes/python.el (python-proc, python-buffer)
(python-send-receive, python-send-string): Fix obsolete versions.
2012-06-18 14:23:59 -04:00
Glenn Morris
a633e6a2b4
Add coding cookie
2012-06-18 14:04:21 -04:00
Stefan Monnier
1053a8716b
Fix return value of `defun' and un-define it.
...
* src/data.c (Fdefalias): Return `symbol'.
* doc/lispref/functions.texi (Defining Functions):
* doc/lispref/macros.texi (Defining Macros): Un-define the return value of
`defun', `defmacro' and `defalias'.
Fixes: debbugs:11686
2012-06-18 11:57:41 -04:00
Martin Rudalics
24b0cff0ba
Completely remove stringp check in special-display-p.
...
* window.el (special-display-p): Completely remove stringp
check. Suggested by Andreas Schwab <schwab@linux-m68k.org>.
2012-06-18 08:22:22 +02:00
Michael Albinus
298551496f
* minibuffer.el (read-file-name-default): Bind non-essential' to t'.
...
* net/tramp.el (tramp-file-name-handler): Catch 'non-essential.
* net/ange-ftp.el (ange-ftp-gwp-start, ange-ftp-start-process):
* net/tramp-sh.el (tramp-maybe-open-connection):
Throw if `non-essential' is non-nil.
2012-06-17 20:54:39 +02:00
Glenn Morris
ddfbf826bc
ChangeLog date fixes
2012-06-17 11:52:31 -07:00
Martin Rudalics
074633638d
In special-display-p signal an error if BUFFER-NAME is not a string (Bug#11713).
...
* window.el (special-display-p): Signal an error if BUFFER-NAME
is not a string (Bug#11713).
2012-06-17 12:43:50 +02:00
Paul Eggert
48d1354eb8
Spelling fixes.
2012-06-17 01:53:31 -07:00
Chong Yidong
eb4a8a9a88
Fix point motion bug in term-emulate-terminal.
...
* lisp/term.el (term-emulate-terminal): If term-check-size is called,
move point to the process mark without resetting point.
Fixes: debbugs:4635
2012-06-17 16:26:13 +08:00
Chong Yidong
41b7f8bc6c
Merge changes from emacs-24; up to 2012-04-26T02:03:19Z!ueno@unixuser.org
2012-06-17 13:13:40 +08:00
Alp Aker
9b0e3ebaef
Implement wave-style variant of underlining.
...
* doc/lispref/display.texi: Document new face attribute.
* lisp/cus-face.el (custom-face-attributes): Add wave-style underline
attribute.
* lisp/faces.el (set-face-attribute): Update docstring.
* src/dispextern.h (face_underline_type): New enum.
(face): Add field for underline type.
* src/nsterm.m (ns_draw_underwave): New function.
(ns_draw_text_decoration): Use it.
* src/w32term.c (w32_restore_glyph_string_clip, w32_draw_underwave):
New functions.
(x_draw_glyph_string): Use them.
* src/xfaces.c (Qline, Qwave): New Lisp objects.
(check_lface_attrs, merge_face_ref)
(Finternal_set_lisp_face_attribute, realize_x_face): Handle
wave-style underline face attributes.
* src/xterm.c (x_draw_underwave): New function.
(x_draw_glyph_string): Use it.
2012-06-16 20:32:36 -04:00
Glenn Morris
8826d473e6
ChangeLog position, case fixes
2012-06-16 10:45:09 -07:00
Chong Yidong
771e3eae1e
Fix for xterm reportBackground query.
...
* lisp/term/xterm.el (terminal-init-xterm): Discard input before
querying background mode.
Fixes: debbugs:10959
2012-06-16 17:56:15 +08:00
Stefan Merten
6665a6fd19
(rst-cvs-header, rst-svn-rev, rst-svn-timestamp)
...
(rst-official-version, rst-official-cvs-rev): Update version
information.
2012-06-16 11:48:23 +02:00
Stefan Merten
7ae2ea1075
Added and corrected some comments.
...
(rst-re-alist-def): Improve symbol syntax.
(rst-mode-syntax-table): Correct syntax entries.
2012-06-16 11:33:58 +02:00
Juanma Barranquero
b6974efa3b
lisp/makefile.w32-in (COMPILE_FIRST): Synch with changes in 2008-06-22T13:57:28Z!monnier@iro.umontreal.ca.
2012-06-15 23:47:39 +02:00
Julien Danjou
52f8337d71
erc: use auth-source
...
* erc.el (erc-open): Use `auth-source' for password retrieval when
possible.
2012-06-15 16:47:31 +02:00
Stefan Monnier
a64a94eddd
* macroexp.el (macroexp--compiler-macro): Fix paren typo.
2012-06-14 23:20:42 -04:00