Stefan Monnier [Fri, 22 Jun 2012 21:24:54 +0000 (17:24 -0400)]
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.
Paul Eggert [Fri, 22 Jun 2012 21:17:42 +0000 (14:17 -0700)]
Support higher-resolution time stamps.
Fixes: debbugs:9000
Stefan Monnier [Fri, 22 Jun 2012 17:37:28 +0000 (13:37 -0400)]
* 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.
Stefan Monnier [Fri, 22 Jun 2012 17:30:25 +0000 (13:30 -0400)]
* 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.
Paul Eggert [Fri, 22 Jun 2012 17:20:00 +0000 (10:20 -0700)]
Merge from gnulib.
* lib/filemode.h, lib/signal.in.h, lib/stat.c, lib/stdint.in.h:
* lib/stdlib.in.h, lib/unistd.in.h, m4/extensions.m4, m4/getloadavg.m4:
* m4/getopt.m4, m4/gnulib-common.m4, m4/largefile.m4, m4/mktime.m4:
* m4/multiarch.m4, m4/nocrash.m4, m4/stdio_h.m4, m4/time_r.m4:
Copy new versions from gnulib, incorporating the following changes:
2012-06-22 time_r: fix typo that always overrode localtime_r decl
2012-06-22 Write "Mac OS X" instead of "MacOS X".
2012-06-21 mktime: fix integer overflow in 'configure'-time test
2012-06-21 nonblocking: Avoid compilation error on mingw64.
2012-06-19 stat, fstat: Avoid warnings on mingw64.
2012-06-19 getopt-gnu: Fix exit code overflow in autoconf test.
Glenn Morris [Fri, 22 Jun 2012 16:00:34 +0000 (09:00 -0700)]
Improve pcmpl-rpm-query-options custom type
Bastien Guerry [Fri, 22 Jun 2012 14:12:42 +0000 (16:12 +0200)]
Fix bug #11726 -- send a message after `toggle-read-only'.
Thanks to Drew Adam for reporting this.
Stefan Monnier [Fri, 22 Jun 2012 13:42:38 +0000 (09:42 -0400)]
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
Glenn Morris [Fri, 22 Jun 2012 07:38:26 +0000 (00:38 -0700)]
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.
Chong Yidong [Fri, 22 Jun 2012 07:30:33 +0000 (15:30 +0800)]
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.
Chong Yidong [Fri, 22 Jun 2012 07:28:28 +0000 (15:28 +0800)]
* xdisp.c (x_consider_frame_title): Revert last change.
Glenn Morris [Fri, 22 Jun 2012 07:01:32 +0000 (00:01 -0700)]
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.
Eli Zaretskii [Fri, 22 Jun 2012 06:51:06 +0000 (09:51 +0300)]
Enlarge NSTATICS to 0x650.
src/alloc.c (NSTATICS): Enlarge to 0x650. Otherwise, Emacs compiled
with -DENABLE_CHECKING -DXASSERTS -DGLYPH_DEBUG=1 -DBYTE_CODE_METER
aborts in staticpro during startup. (Without -DBYTE_CODE_METER,
staticidx goes up to 1597 out of 1600 = 0x640.)
Glenn Morris [Fri, 22 Jun 2012 01:50:35 +0000 (21:50 -0400)]
* calendar.el (calendar-in-read-only-buffer): Avoid some needless mode changes.
Chong Yidong [Thu, 21 Jun 2012 09:21:28 +0000 (17:21 +0800)]
* url.el (url-retrieve-internal): Fix last change.
Fixes: debbugs:11627
Glenn Morris [Thu, 21 Jun 2012 07:34:27 +0000 (00:34 -0700)]
Merge from emacs-24; up to 2012-04-26T03:04:36Z!cyd@gnu.org
Chong Yidong [Thu, 21 Jun 2012 07:25:56 +0000 (15:25 +0800)]
* desktop.el (desktop-read): Use user-emacs-directory if desktop-path is nil.
Chong Yidong [Thu, 21 Jun 2012 07:15:42 +0000 (15:15 +0800)]
Fixes to desktop reading logic.
* desktop.el (desktop-read): Don't prompt if daemon.
(desktop-path): Remove . from the default value.
Paul Eggert [Wed, 20 Jun 2012 21:20:06 +0000 (14:20 -0700)]
* fileio.c (Fdefault_file_modes): Block input while fiddling with umask.
Otherwise, the umask might be mistakenly 0 while handling input signals.
Chong Yidong [Wed, 20 Jun 2012 16:21:57 +0000 (12:21 -0400)]
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
David Röthlisberger [Wed, 20 Jun 2012 15:51:34 +0000 (11:51 -0400)]
* lisp/ido.el (ido-switch-buffer, ido-find-file): Fix up doc of C-j.
Fixes: debbugs:11201
Chong Yidong [Wed, 20 Jun 2012 09:21:06 +0000 (17:21 +0800)]
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
Chong Yidong [Wed, 20 Jun 2012 08:34:21 +0000 (16:34 +0800)]
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
Michael Albinus [Wed, 20 Jun 2012 06:51:53 +0000 (08:51 +0200)]
* net/ange-ftp.el (ange-ftp-get-passwd): Bind
`enable-recursive-minibuffers'.
(ange-ftp-get-process): Throw if `non-essential' is non-nil.
Paul Eggert [Tue, 19 Jun 2012 18:57:39 +0000 (11:57 -0700)]
Fix misspelling of Dmitry's last name in ChangeLog.
David Röthlisberger [Tue, 19 Jun 2012 18:17:14 +0000 (14:17 -0400)]
* lisp/ido.el (ido-find-file): Mention C-d binding in docstring.
Fixes: debbugs:11244
Stefan Monnier [Tue, 19 Jun 2012 17:05:41 +0000 (13:05 -0400)]
* src/minibuf.c (Fread_string): Bind minibuffer-completion-table.
Dmitry Antipov [Tue, 19 Jun 2012 16:56:28 +0000 (20:56 +0400)]
* alloc.c, bytecode.c, ccl.c, coding.c, composite.c, data.c, dosfns.c:
* font.c, image.c, keyboard.c, lread.c, menu.c, minibuf.c, msdos.c:
* print.c, syntax.c, window.c, xmenu.c, xselect.c: Replace direct
access to `contents' member of Lisp_Vector objects with AREF and ASET
where appropriate.
Glenn Morris [Tue, 19 Jun 2012 16:04:47 +0000 (09:04 -0700)]
* lisp/progmodes/python.el (python-mode): Derive from prog-mode.
Kevin Gallagher [Tue, 19 Jun 2012 07:05:44 +0000 (15:05 +0800)]
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.
Chong Yidong [Tue, 19 Jun 2012 06:49:50 +0000 (14:49 +0800)]
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
Glenn Morris [Tue, 19 Jun 2012 01:59:38 +0000 (21:59 -0400)]
Rename infodir to buildinfodir in doc/*/Makefile.in (bug#11737)
This also makes it clearer that it has no relation to the "infodir"
used by install.
Nelson Ferreira [Mon, 18 Jun 2012 23:12:10 +0000 (23:12 +0000)]
gnus-win.el (gnus-configure-frame): Pass an arg to window-dedicated-p
Paul Eggert [Mon, 18 Jun 2012 22:53:53 +0000 (15:53 -0700)]
Port byte-code-meter to modern targets.
* bytecode.c (METER_CODE) [BYTE_CODE_METER]: Don't assume
!CHECK_LISP_OBJECT_TYPE && !USE_LSB_TAG. Problem with
CHECK_LISP_OBJECT_TYPE reported by Dmitry Andropov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00282.html>.
(METER_1, METER_2): Simplify.
Stefan Monnier [Mon, 18 Jun 2012 20:41:23 +0000 (16:41 -0400)]
* lisp/progmodes/python.el (python-rx-constituents): Move backquote.
(python-skeleton-define, python-define-auxiliary-skeleton): Use `declare'.
Michael Albinus [Mon, 18 Jun 2012 20:39:52 +0000 (22:39 +0200)]
* minibuffer.el (read-file-name-default): Revert the patch from 2012-06-17.
Stefan Monnier [Mon, 18 Jun 2012 19:23:35 +0000 (15:23 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--expand): Warn for unused pattern.
(pcase--u1, pcase--q1): Don't use apply-partially.
Glenn Morris [Mon, 18 Jun 2012 18:23:59 +0000 (14:23 -0400)]
Fix python.el obsolescence versions
* lisp/progmodes/python.el (python-proc, python-buffer)
(python-send-receive, python-send-string): Fix obsolete versions.
Glenn Morris [Mon, 18 Jun 2012 18:04:21 +0000 (14:04 -0400)]
Add coding cookie
Stefan Monnier [Mon, 18 Jun 2012 15:57:41 +0000 (11:57 -0400)]
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
Martin Rudalics [Mon, 18 Jun 2012 07:20:19 +0000 (09:20 +0200)]
Handle cases where buffer gets killed while running Fkill_buffer (Bug#11665).
* buffer.c (Fkill_buffer): Don't throw an error when the buffer
gets killed during executing of this function (Bug#11665). Try
to always return Qt when the buffer has been actually killed.
(Vkill_buffer_query_functions): In doc-string say that functions
run by this hook should not change the current buffer.
Paul Eggert [Mon, 18 Jun 2012 06:58:00 +0000 (23:58 -0700)]
Fix recently-introduced process.c problems found by static checking.
* process.c (write_queue_push, write_queue_pop, send_process):
Use ptrdiff_t, not int or EMACS_INT, for buffer lengths and offsets.
(write_queue_pop): Fix pointer signedness problem.
(send_process): Remove unused local.
Martin Rudalics [Mon, 18 Jun 2012 06:22:22 +0000 (08:22 +0200)]
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>.
Michael Albinus [Sun, 17 Jun 2012 18:54:39 +0000 (20:54 +0200)]
* 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.
Glenn Morris [Sun, 17 Jun 2012 18:52:31 +0000 (11:52 -0700)]
ChangeLog date fixes
Martin Rudalics [Sun, 17 Jun 2012 10:43:50 +0000 (12:43 +0200)]
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).
Chong Yidong [Sun, 17 Jun 2012 10:11:39 +0000 (18:11 +0800)]
Optimization to avoid redisplaying hidden terminal frames.
* xdisp.c (redisplay_internal): No need to redisplay terminal
frames that are not on top.
Troels Nielsen [Sun, 17 Jun 2012 09:00:37 +0000 (17:00 +0800)]
Ensure correct ordering of process writes.
* process.c (make_process): Initialize write_queue.
(write_queue_push, write_queue_pop): New functions.
(send_process): Use them to maintain correct ordering of process writes.
Fixes: debbugs:10815
Paul Eggert [Sun, 17 Jun 2012 08:53:31 +0000 (01:53 -0700)]
Spelling fixes.
Chong Yidong [Sun, 17 Jun 2012 08:26:13 +0000 (16:26 +0800)]
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
Paul Eggert [Sun, 17 Jun 2012 08:21:25 +0000 (01:21 -0700)]
* lisp.h (eassert): Assume C89 or later.
This removes the need for CHECK.
(CHECK): Remove. Its comments about always evaluating its
argument were confusing, as 'eassert' typically does not evaluate
its argument.
Paul Eggert [Sun, 17 Jun 2012 07:57:28 +0000 (00:57 -0700)]
* coding.c (produce_chars): Use ptrdiff_t, not int.
Paul Eggert [Sun, 17 Jun 2012 07:39:50 +0000 (00:39 -0700)]
* xterm.c (x_draw_underwave): Check for integer overflow.
This pacifies gcc 4.7.0 -Wunsafe-loop-optimizations on x86-64.
Chong Yidong [Sun, 17 Jun 2012 05:13:40 +0000 (13:13 +0800)]
Merge changes from emacs-24; up to 2012-04-26T02:03:19Z!ueno@unixuser.org
Glenn Morris [Sun, 17 Jun 2012 02:07:26 +0000 (19:07 -0700)]
Minor edits for Face Attributes section of display.texi
* display.texi (Face Attributes): Copyedits. Add a few cindex entries.
Overlining no longer behaves exactly like underlining.
Glenn Morris [Sun, 17 Jun 2012 01:49:50 +0000 (18:49 -0700)]
Mention face underwave
Glenn Morris [Sun, 17 Jun 2012 01:42:56 +0000 (18:42 -0700)]
ChangeLog fix
Alp Aker [Sun, 17 Jun 2012 00:32:36 +0000 (20:32 -0400)]
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.
Glenn Morris [Sat, 16 Jun 2012 17:56:44 +0000 (10:56 -0700)]
NEWS fixes: positioning, copyedits
Glenn Morris [Sat, 16 Jun 2012 17:45:09 +0000 (10:45 -0700)]
ChangeLog position, case fixes
Juanma Barranquero [Sat, 16 Jun 2012 13:44:20 +0000 (15:44 +0200)]
src/makefile.w32-in: Update dependencies.
Eli Zaretskii [Sat, 16 Jun 2012 13:17:14 +0000 (16:17 +0300)]
Fix "make dist" on MS-Windows.
nt/makefile.w32-in (install-addpm): New target.
(dist): Depend on it.
(install-shortcuts): Depend on install-addpm instead of copying
addpm.exe as part of the recipe. See
http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00171.html
for the related problem and discussions.
Andreas Schwab [Sat, 16 Jun 2012 12:24:15 +0000 (14:24 +0200)]
* buffer.h (FETCH_MULTIBYTE_CHAR): Define as inline.
(BUF_FETCH_MULTIBYTE_CHAR): Likewise.
* character.c (_fetch_multibyte_char_p): Remove.
* alloc.c: Include "character.h" before "buffer.h".
* bidi.c: Likewise.
* buffer.c: Likewise.
* bytecode.c: Likewise.
* callint.c: Likewise.
* callproc.c: Likewise.
* casefiddle.c: Likewise.
* casetab.c: Likewise.
* category.c: Likewise.
* cmds.c: Likewise.
* coding.c: Likewise.
* composite.c: Likewise.
* dired.c: Likewise.
* dispnew.c: Likewise.
* doc.c: Likewise.
* dosfns.c: Likewise.
* editfns.c: Likewise.
* emacs.c: Likewise.
* fileio.c: Likewise.
* filelock.c: Likewise.
* font.c: Likewise.
* fontset.c: Likewise.
* fringe.c: Likewise.
* indent.c: Likewise.
* insdel.c: Likewise.
* intervals.c: Likewise.
* keyboard.c: Likewise.
* keymap.c: Likewise.
* lread.c: Likewise.
* macros.c: Likewise.
* marker.c: Likewise.
* minibuf.c: Likewise.
* nsfns.m: Likewise.
* nsmenu.m: Likewise.
* print.c: Likewise.
* process.c: Likewise.
* regex.c: Likewise.
* region-cache.c: Likewise.
* search.c: Likewise.
* syntax.c: Likewise.
* term.c: Likewise.
* textprop.c: Likewise.
* undo.c: Likewise.
* unexsol.c: Likewise.
* w16select.c: Likewise.
* w32fns.c: Likewise.
* w32menu.c: Likewise.
* window.c: Likewise.
* xdisp.c: Likewise.
* xfns.c: Likewise.
* xmenu.c: Likewise.
* xml.c: Likewise.
* xselect.c: Likewise.
Eli Zaretskii [Sat, 16 Jun 2012 11:47:44 +0000 (14:47 +0300)]
Fix bug #11720 with cursor positioning in outline-mode and Org buffers.
src/xdisp.c (set_cursor_from_row): Use the leftmost glyph as GLYPH_BEFORE, not
the rightmost.
Eli Zaretskii [Sat, 16 Jun 2012 10:18:21 +0000 (13:18 +0300)]
Fix bug #11653 with a crash when more than 16 overlay strings are loaded.
src/xdisp.c (handle_face_prop): Use chunk-relative overlay string index when
indexing into it->string_overlays array.
Eli Zaretskii [Sat, 16 Jun 2012 09:57:56 +0000 (12:57 +0300)]
Fix bug #11653 with cursor positioning in a row that has only strings.
src/xdisp.c (set_cursor_from_row): Don't dereference glyphs_end. If
all the glyphs of the glyph row came from strings, and we have no
cursor positioning clues, put the cursor on the first glyph of the
row.
Chong Yidong [Sat, 16 Jun 2012 09:56:15 +0000 (17:56 +0800)]
Fix for xterm reportBackground query.
* lisp/term/xterm.el (terminal-init-xterm): Discard input before
querying background mode.
Fixes: debbugs:10959
Stefan Merten [Sat, 16 Jun 2012 09:48:23 +0000 (11:48 +0200)]
(rst-cvs-header, rst-svn-rev, rst-svn-timestamp)
(rst-official-version, rst-official-cvs-rev): Update version
information.
Stefan Merten [Sat, 16 Jun 2012 09:33:58 +0000 (11:33 +0200)]
Added and corrected some comments.
(rst-re-alist-def): Improve symbol syntax.
(rst-mode-syntax-table): Correct syntax entries.
Andreas Schwab [Sat, 16 Jun 2012 08:20:19 +0000 (10:20 +0200)]
* category.h (CHAR_HAS_CATEGORY): Define as inline.
(CATEGORY_MEMBER): Enforce 1/0 value.
* category.c (_temp_category_set): Remove.
Eli Zaretskii [Sat, 16 Jun 2012 07:18:44 +0000 (10:18 +0300)]
Fix bug #11677 with segfault when deleting windows under -batch.
src/window.c (Fdelete_other_windows_internal)
(Fdelete_window_internal): Don't access frame's mouse highlight
info of the initial frame.
Juanma Barranquero [Fri, 15 Jun 2012 21:47:39 +0000 (23:47 +0200)]
lisp/makefile.w32-in (COMPILE_FIRST): Synch with changes in 2008-06-22T13:57:28Z!monnier@iro.umontreal.ca.
Julien Danjou [Fri, 15 Jun 2012 14:47:31 +0000 (16:47 +0200)]
erc: use auth-source
* erc.el (erc-open): Use `auth-source' for password retrieval when
possible.
Stefan Monnier [Fri, 15 Jun 2012 03:20:42 +0000 (23:20 -0400)]
* macroexp.el (macroexp--compiler-macro): Fix paren typo.
Stefan Monnier [Fri, 15 Jun 2012 03:18:14 +0000 (23:18 -0400)]
* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Autoload inliner.
* lisp/emacs-lisp/macroexp.el (macroexp--compiler-macro): New function.
(macroexp--expand-all): Use it.
Fixes: debbugs:11649
Fabián Ezequiel Gallina [Fri, 15 Jun 2012 02:22:19 +0000 (23:22 -0300)]
lisp/progmodes/python.el: Updated Copyright years.
Fabián Ezequiel Gallina [Fri, 15 Jun 2012 02:05:43 +0000 (23:05 -0300)]
Merge from trunk
Fabián Ezequiel Gallina [Fri, 15 Jun 2012 01:39:03 +0000 (22:39 -0300)]
Added python.el NEWS entry
Fabián Ezequiel Gallina [Fri, 15 Jun 2012 01:38:15 +0000 (22:38 -0300)]
Fixes to previous python.el ChangeLog entry.
Fabián Ezequiel Gallina [Fri, 15 Jun 2012 01:33:57 +0000 (22:33 -0300)]
* lisp/progmodes/python.el: (python-indent, python-guess-indent,
python-use-skeletons): New obsolete variable aliases.
(python-indent-guess-indent-offset): Make interactive.
Stefan Monnier [Fri, 15 Jun 2012 01:07:03 +0000 (21:07 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl--transform-function-property): Remove.
(cl-define-setf-expander, cl-deftype, cl-define-compiler-macro):
Use `cl-function' instead.
Juanma Barranquero [Thu, 14 Jun 2012 23:53:41 +0000 (01:53 +0200)]
lisp/makefile.w32-in (COMPILE_FIRST): Remove subr.el.
Suggested by Stefan Monnier while discussing bug#11657.
Sam Steingold [Thu, 14 Jun 2012 19:55:28 +0000 (15:55 -0400)]
* lisp/files.el (abort-if-file-too-large): Use `file-size-human-readable'.
Andreas Schwab [Thu, 14 Jun 2012 14:22:37 +0000 (16:22 +0200)]
Fixes: debbugs:11708
* play/doctor.el (doctor-doc): Remove parameter and use
doctor-sent instead of sent.
(doctor-read-print): Use doctor-sent instead of sent.
Glenn Morris [Thu, 14 Jun 2012 10:20:32 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.
Glenn Morris [Thu, 14 Jun 2012 10:17:26 +0000 (06:17 -0400)]
Auto-commit of generated files.
Paul Eggert [Thu, 14 Jun 2012 04:02:35 +0000 (21:02 -0700)]
.gdbinit: Update to match recent lisp.h changes.
Paul Eggert [Thu, 14 Jun 2012 02:27:39 +0000 (19:27 -0700)]
Simplify lisp.h in minor ways that should not affect code.
* lisp.h (USE_2_TAGS_FOR_INTS): Remove, as it was always defined.
(LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P)
(LISP_INT1_TAG, enum Lisp_Type, XINT, XUINT, make_number):
Simplify under the assumption that USE_2_TAGS_FOR_INTS is defined.
(INTTYPEBITS): New macro, for clarity.
(INTMASK, MOST_POSITIVE_FIXNUM): Use it.
(LISP_INT1_TAG, LISP_STRING_TAG, LISP_INT_TAG_P): Simplify
now that USE_LSB_TAG is always defined.
(TYPEMASK, XINT) [USE_LSB_TAG]: Remove unnecessary cast.
(make_number) [!USE_LSB_TAG]: Use INTMASK; that's simpler.
Juanma Barranquero [Wed, 13 Jun 2012 21:37:23 +0000 (23:37 +0200)]
src/makefile.w32-in ($(BLD)/data.$(O)): Update dependencies.
Stefan Monnier [Wed, 13 Jun 2012 20:52:25 +0000 (16:52 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Don't add print-func.
* lisp/files.el: Require cl-lib.
(file-name-non-special): Replace case -> cl-case.
Glenn Morris [Wed, 13 Jun 2012 20:26:26 +0000 (16:26 -0400)]
Further mule-menu-keymap doc tweak
Glenn Morris [Wed, 13 Jun 2012 20:09:42 +0000 (16:09 -0400)]
NEWS tweak
Glenn Morris [Wed, 13 Jun 2012 20:08:10 +0000 (16:08 -0400)]
Doc tweaks for mule-cmds .el
* lisp/international/mule-cmds.el (mule-menu-keymap)
(set-language-environment, set-locale-environment): Doc tweaks.
Glenn Morris [Wed, 13 Jun 2012 18:11:05 +0000 (14:11 -0400)]
Remove some unused definitions from src/s
* src/s/bsd-common.h (BSD4_3):
* src/s/usg5-4-common.h (USG5_4): No longer define; unused.
* admin/CPP-DEFINES, src/s/template.h: Related edits.
Juanma Barranquero [Wed, 13 Jun 2012 16:25:03 +0000 (18:25 +0200)]
lisp/url/url-handlers.el (url-handler-regexp): Declare.
Stefan Monnier [Wed, 13 Jun 2012 15:46:29 +0000 (11:46 -0400)]
* lisp/emacs-lisp/edebug.el (edebug-read-function): Remove old incorrect
mapping from #' to function*.
Chong Yidong [Wed, 13 Jun 2012 15:28:10 +0000 (23:28 +0800)]
Do not set mark on single mouse-1 clicks.
* mouse.el (mouse-drag-track): Do not set the mark if the user
releases the mouse without selecting anything.
Fixes: debbugs:11588
Stefan Monnier [Wed, 13 Jun 2012 13:56:57 +0000 (09:56 -0400)]
* lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB.
Fixes: debbugs:11646
Andreas Schwab [Wed, 13 Jun 2012 13:40:48 +0000 (15:40 +0200)]
Use a simple struct to implement compile time checks for the Lisp_Object type
* configure.in: Rename --enable-use-lisp-union-type to
--enable-check-lisp-object-type and define CHECK_LISP_OBJECT_TYPE
instead of USE_LISP_UNION_TYPE.
* admin/make-emacs: Rename --union-type to --check-lisp-type. Define
CHECK_LISP_OBJECT_TYPE insted of USE_LISP_UNION_TYPE.
* admin/CPP-DEFINES (DEBUG_LISP_OBJECT_TYPE): Renamed from
USE_LISP_UNION_TYPE.
* src/lisp.h (Lisp_Object) [CHECK_LISP_OBJECT_TYPE]: Define as struct
instead of union.
(XLI, XIL): Define.
(XHASH, XTYPE, XINT, XUINT, make_number, XSET, XPNTR, XUNTAG): Use
them.
* src/emacs.c (gdb_use_struct): Renamed from gdb_use_union.
* src/.gdbinit: Check gdb_use_struct instead of gdb_use_union.
* src/alloc.c (widen_to_Lisp_Object): Removed.
(mark_memory): Use XIL instead of widen_to_Lisp_Object.
* src/frame.c (delete_frame): Remove outdated comment.
* src/w32fns.c (Fw32_register_hot_key): Use XLI instead of checking
USE_LISP_UNION_TYPE.
(Fw32_unregister_hot_key): Likewise.
(Fw32_toggle_lock_key): Likewise.
* src/w32menu.c (add_menu_item): Likewise.
(w32_menu_display_help): Use XIL instead of checking
USE_LISP_UNION_TYPE.
* src/w32heap.c (allocate_heap): Don't check USE_LISP_UNION_TYPE.
(init_heap): Likewise.
* src/w32term.c (w32_read_socket): Update comment.
Stefan Monnier [Wed, 13 Jun 2012 13:18:59 +0000 (09:18 -0400)]
* lisp/loadup.el: Count byte-code functions as well.