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.
Stefan Monnier [Wed, 13 Jun 2012 13:16:34 +0000 (09:16 -0400)]
* lisp/emacs-lisp/byte-opt.el (featurep): Move compiler-macro...
* lisp/emacs-lisp/bytecomp.el (featurep): ...here.
Fixes: debbugs:11692
Stefan Monnier [Wed, 13 Jun 2012 12:46:33 +0000 (08:46 -0400)]
* lisp/emacs-lisp/autoload.el (make-autoload): Accept nil doc-string-elt.
Add cl-defun and cl-defmacro.
Fixes: debbugs:11649
Drew Adams [Wed, 13 Jun 2012 12:36:29 +0000 (08:36 -0400)]
* lisp/help-mode.el (help-bookmark-make-record, help-bookmark-jump):
Fix last change.
Michael Albinus [Wed, 13 Jun 2012 11:56:53 +0000 (13:56 +0200)]
* net/dbus.el (dbus-call-method): Use timeout for `read-event'.
Otherwise, it blocks in batch mode.
Juanma Barranquero [Wed, 13 Jun 2012 11:13:17 +0000 (13:13 +0200)]
lisp/help-mode.el (bookmark-make-record-default): Declare.
Glenn Morris [Wed, 13 Jun 2012 10:20:28 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.
Glenn Morris [Wed, 13 Jun 2012 10:17:27 +0000 (06:17 -0400)]
Auto-commit of generated files.
Deniz Dogan [Wed, 13 Jun 2012 09:10:01 +0000 (11:10 +0200)]
* tutorials/TUTORIAL.sv: Fix grammar and a couple of typos.
Chong Yidong [Wed, 13 Jun 2012 07:33:38 +0000 (15:33 +0800)]
In the Package Menu, indicate packages that are newly-available.
* lisp/emacs-lisp/package.el (list-packages): Compute a list of
packages that are newly-available since the last list-packages
invocation.
(package-menu--new-package-list): New var.
(package-menu--generate, package-menu--print-info)
(package-menu--status-predicate, package-menu-mark-install):
Handle new status label "new".
Glenn Morris [Wed, 13 Jun 2012 02:39:20 +0000 (22:39 -0400)]
Remove HAVE_SYSV_SIGPAUSE unused remnants
* src/s/usg5-4-common.h, src/s/unixware.h:
Remove define/undef of HAVE_SYSV_SIGPAUSE (not used since 2010-05-04).
* admin/CPP-DEFINES: Remove HAVE_SYSV_SIGPAUSE.
Glenn Morris [Wed, 13 Jun 2012 02:32:49 +0000 (22:32 -0400)]
* src/s/gnu.h (POSIX_SIGNALS): Remove (again).
This was added in 2012-01 in response to http://debbugs.gnu.org/10552 .
However, this issue had already been fixed in the trunk two years
earlier, by removing POSIX_SIGNALS altogether. Ref:
http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00002.html
Paul Eggert [Wed, 13 Jun 2012 00:26:40 +0000 (17:26 -0700)]
USE_LISP_UNION_TYPE + USE_LSB_TAG cleanup (Bug#11604)
* alloc.c (make_number) [!defined make_number]:
Remove, as lisp.h always defines this now.
(mark_maybe_pointer): Simplify since USE_LSB_TAG is always defined now.
(roundup_size): Verify that it is a power of 2.
* data.c (Fmake_variable_buffer_local, Fmake_local_variable):
* ftfont.c (ftfont_driver): Use LISP_INITIALLY_ZERO.
* lisp.h (USE_LSB_TAG): Allow the builder to compile with
-DUSE_LSB_TAG=0, to override the automatically-selected default.
USE_LSB_TAG now is always defined to be either 0 or 1.
All uses changed.
(union Lisp_Object): Don't worry about WORDS_BIGENDIAN; the
code works fine either way, and efficiency is not a concern here,
as the union type is for debugging, not for production.
(LISP_MAKE_RVALUE, make_number) [USE_LISP_UNION_TYPE]:
Use an inline function on all platforms when using the union type,
since this is simpler and 'static inline' can be used portably
within Emacs now.
(LISP_INITIALLY_ZERO): New macro.
(XFASTINT, XSETFASTINT) [USE_LISP_UNION_TYPE]: Remove.
(XSET) [USE_LISP_UNION_TYPE]: Don't overparenthesize.
Glenn Morris [Tue, 12 Jun 2012 19:15:47 +0000 (15:15 -0400)]
Combine adjacent case blocks.
Glenn Morris [Tue, 12 Jun 2012 19:03:32 +0000 (15:03 -0400)]
Remove src/s/sol2-10.h
* configure.in (HAVE_PROCFS, _STRUCTURED_PROC): New AC_DEFINEs.
(opsysfile): Set specially for sol2-10.
* src/s/gnu-linux.h (HAVE_PROCFS): Move to configure.
* src/s/sol2-10.h: Remove file.
Glenn Morris [Tue, 12 Jun 2012 18:44:31 +0000 (14:44 -0400)]
Remove src/s/hpux11.h
* configure.in (BROKEN_SA_RESTART, USG_SUBTTY_WORKS): New AC_DEFINEs.
(opsysfile): Set specially for hpux11.
* src/s/hpux11.h: Remove file.