bpt/emacs.git
11 years agoSupport higher-resolution time stamps.
Paul Eggert [Fri, 22 Jun 2012 21:17:42 +0000 (14:17 -0700)]
Support higher-resolution time stamps.

Fixes: debbugs:9000

11 years ago* lisp/icomplete.el (icomplete-minibuffer-setup, icomplete-completions):
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.

11 years ago* lisp/subr.el (read-passwd): Don't use a history at all.
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.

11 years agoMerge from gnulib.
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.

11 years agoImprove pcmpl-rpm-query-options custom type
Glenn Morris [Fri, 22 Jun 2012 16:00:34 +0000 (09:00 -0700)]
Improve pcmpl-rpm-query-options custom type

11 years agoFix bug #11726 -- send a message after `toggle-read-only'.
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.

11 years agoProvide generalized variables in core Elisp.
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

11 years agoFurther speed up rpm completion, by caching the installed packages
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.

11 years agoMisc doc fixes for Dired.
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.

11 years ago* xdisp.c (x_consider_frame_title): Revert last change.
Chong Yidong [Fri, 22 Jun 2012 07:28:28 +0000 (15:28 +0800)]
* xdisp.c (x_consider_frame_title): Revert last change.

11 years agoTry to speed up pcomplete's calling of rpm -qa
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.

11 years agoEnlarge NSTATICS to 0x650.
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.)

11 years ago* calendar.el (calendar-in-read-only-buffer): Avoid some needless mode changes.
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.

11 years ago* url.el (url-retrieve-internal): Fix last change.
Chong Yidong [Thu, 21 Jun 2012 09:21:28 +0000 (17:21 +0800)]
* url.el (url-retrieve-internal): Fix last change.

Fixes: debbugs:11627

11 years agoMerge from emacs-24; up to 2012-04-26T03:04:36Z!cyd@gnu.org
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

11 years ago* desktop.el (desktop-read): Use user-emacs-directory if desktop-path is nil.
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.

11 years agoFixes to desktop reading logic.
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.

11 years ago* fileio.c (Fdefault_file_modes): Block input while fiddling with umask.
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.

11 years agoterm.el (term-send-raw-meta): Make C-M-<char> keys work (Bug#8172).
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

11 years ago* lisp/ido.el (ido-switch-buffer, ido-find-file): Fix up doc of C-j.
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

11 years agoChange term.el to use font-lock.
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

11 years agoFixes to window size calculations in term.el.
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

11 years ago* net/ange-ftp.el (ange-ftp-get-passwd): Bind
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.

11 years agoFix misspelling of Dmitry's last name in ChangeLog.
Paul Eggert [Tue, 19 Jun 2012 18:57:39 +0000 (11:57 -0700)]
Fix misspelling of Dmitry's last name in ChangeLog.

11 years ago* lisp/ido.el (ido-find-file): Mention C-d binding in docstring.
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

11 years ago* src/minibuf.c (Fread_string): Bind minibuffer-completion-table.
Stefan Monnier [Tue, 19 Jun 2012 17:05:41 +0000 (13:05 -0400)]
* src/minibuf.c (Fread_string): Bind minibuffer-completion-table.

11 years ago* alloc.c, bytecode.c, ccl.c, coding.c, composite.c, data.c, dosfns.c:
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.

11 years ago* lisp/progmodes/python.el (python-mode): Derive from prog-mode.
Glenn Morris [Tue, 19 Jun 2012 16:04:47 +0000 (09:04 -0700)]
* lisp/progmodes/python.el (python-mode): Derive from prog-mode.

11 years agoIn EDT emulator, allow updating of menu-bar Buffers menu.
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.

11 years agoPreserve tty top-frames under various window-changing operations.
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

11 years agoRename infodir to buildinfodir in doc/*/Makefile.in (bug#11737)
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.

11 years agognus-win.el (gnus-configure-frame): Pass an arg to window-dedicated-p
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

11 years agoPort byte-code-meter to modern targets.
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.

11 years ago* lisp/progmodes/python.el (python-rx-constituents): Move backquote.
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'.

11 years ago* minibuffer.el (read-file-name-default): Revert the patch from 2012-06-17.
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.

11 years ago* lisp/emacs-lisp/pcase.el (pcase--expand): Warn for unused pattern.
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.

11 years agoFix python.el obsolescence versions
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.

11 years agoAdd coding cookie
Glenn Morris [Mon, 18 Jun 2012 18:04:21 +0000 (14:04 -0400)]
Add coding cookie

11 years agoFix return value of `defun' and un-define it.
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

11 years agoHandle cases where buffer gets killed while running Fkill_buffer (Bug#11665).
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.

11 years agoFix recently-introduced process.c problems found by static checking.
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.

11 years agoCompletely remove stringp check in special-display-p.
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>.

11 years ago* minibuffer.el (read-file-name-default): Bind `non-essential' to `t'.
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.

11 years agoChangeLog date fixes
Glenn Morris [Sun, 17 Jun 2012 18:52:31 +0000 (11:52 -0700)]
ChangeLog date fixes

11 years agoIn special-display-p signal an error if BUFFER-NAME is not a string (Bug#11713).
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).

11 years agoOptimization to avoid redisplaying hidden terminal frames.
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.

11 years agoEnsure correct ordering of process writes.
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

11 years agoSpelling fixes.
Paul Eggert [Sun, 17 Jun 2012 08:53:31 +0000 (01:53 -0700)]
Spelling fixes.

11 years agoFix point motion bug in term-emulate-terminal.
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

11 years ago* lisp.h (eassert): Assume C89 or later.
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.

11 years ago* coding.c (produce_chars): Use ptrdiff_t, not int.
Paul Eggert [Sun, 17 Jun 2012 07:57:28 +0000 (00:57 -0700)]
* coding.c (produce_chars): Use ptrdiff_t, not int.

11 years ago* xterm.c (x_draw_underwave): Check for integer overflow.
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.

11 years agoMerge changes from emacs-24; up to 2012-04-26T02:03:19Z!ueno@unixuser.org
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

11 years agoMinor edits for Face Attributes section of display.texi
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.

11 years agoMention face underwave
Glenn Morris [Sun, 17 Jun 2012 01:49:50 +0000 (18:49 -0700)]
Mention face underwave

11 years agoChangeLog fix
Glenn Morris [Sun, 17 Jun 2012 01:42:56 +0000 (18:42 -0700)]
ChangeLog fix

11 years agoImplement wave-style variant of underlining.
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.

11 years agoNEWS fixes: positioning, copyedits
Glenn Morris [Sat, 16 Jun 2012 17:56:44 +0000 (10:56 -0700)]
NEWS fixes: positioning, copyedits

11 years agoChangeLog position, case fixes
Glenn Morris [Sat, 16 Jun 2012 17:45:09 +0000 (10:45 -0700)]
ChangeLog position, case fixes

11 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Sat, 16 Jun 2012 13:44:20 +0000 (15:44 +0200)]
src/makefile.w32-in: Update dependencies.

11 years agoFix "make dist" on MS-Windows.
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.

11 years ago* buffer.h (FETCH_MULTIBYTE_CHAR): Define as inline.
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.

11 years agoFix bug #11720 with cursor positioning in outline-mode and Org buffers.
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.

11 years agoFix bug #11653 with a crash when more than 16 overlay strings are loaded.
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.

11 years agoFix bug #11653 with cursor positioning in a row that has only strings.
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.

11 years agoFix for xterm reportBackground query.
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

11 years ago(rst-cvs-header, rst-svn-rev, rst-svn-timestamp)
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.

11 years agoAdded and corrected some comments.
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.

11 years ago* category.h (CHAR_HAS_CATEGORY): Define as inline.
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.

11 years agoFix bug #11677 with segfault when deleting windows under -batch.
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.

11 years agolisp/makefile.w32-in (COMPILE_FIRST): Synch with changes in 2008-06-22T13:57:28Z...
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.

11 years agoerc: use auth-source
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.

11 years ago* macroexp.el (macroexp--compiler-macro): Fix paren typo.
Stefan Monnier [Fri, 15 Jun 2012 03:20:42 +0000 (23:20 -0400)]
* macroexp.el (macroexp--compiler-macro): Fix paren typo.

11 years ago* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Autoload inliner.
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

11 years agolisp/progmodes/python.el: Updated Copyright years.
Fabián Ezequiel Gallina [Fri, 15 Jun 2012 02:22:19 +0000 (23:22 -0300)]
lisp/progmodes/python.el: Updated Copyright years.

11 years agoMerge from trunk
Fabián Ezequiel Gallina [Fri, 15 Jun 2012 02:05:43 +0000 (23:05 -0300)]
Merge from trunk

11 years agoAdded python.el NEWS entry
Fabián Ezequiel Gallina [Fri, 15 Jun 2012 01:39:03 +0000 (22:39 -0300)]
Added python.el NEWS entry

11 years agoFixes to previous python.el ChangeLog entry.
Fabián Ezequiel Gallina [Fri, 15 Jun 2012 01:38:15 +0000 (22:38 -0300)]
Fixes to previous python.el ChangeLog entry.

11 years ago* lisp/progmodes/python.el: (python-indent, python-guess-indent,
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.

11 years ago* lisp/emacs-lisp/cl-macs.el (cl--transform-function-property): Remove.
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.

11 years agolisp/makefile.w32-in (COMPILE_FIRST): Remove subr.el.
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.

11 years ago* lisp/files.el (abort-if-file-too-large): Use `file-size-human-readable'.
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'.

11 years agoFixes: debbugs:11708
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.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 14 Jun 2012 10:20:32 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 14 Jun 2012 10:17:26 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago.gdbinit: Update to match recent lisp.h changes.
Paul Eggert [Thu, 14 Jun 2012 04:02:35 +0000 (21:02 -0700)]
.gdbinit: Update to match recent lisp.h changes.

11 years agoSimplify lisp.h in minor ways that should not affect code.
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.

11 years agosrc/makefile.w32-in ($(BLD)/data.$(O)): Update dependencies.
Juanma Barranquero [Wed, 13 Jun 2012 21:37:23 +0000 (23:37 +0200)]
src/makefile.w32-in ($(BLD)/data.$(O)): Update dependencies.

11 years ago* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Don't add print-func.
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.

11 years agoFurther mule-menu-keymap doc tweak
Glenn Morris [Wed, 13 Jun 2012 20:26:26 +0000 (16:26 -0400)]
Further mule-menu-keymap doc tweak

11 years agoNEWS tweak
Glenn Morris [Wed, 13 Jun 2012 20:09:42 +0000 (16:09 -0400)]
NEWS tweak

11 years agoDoc tweaks for mule-cmds .el
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.

11 years agoRemove some unused definitions from src/s
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.

11 years agolisp/url/url-handlers.el (url-handler-regexp): Declare.
Juanma Barranquero [Wed, 13 Jun 2012 16:25:03 +0000 (18:25 +0200)]
lisp/url/url-handlers.el (url-handler-regexp): Declare.

11 years ago* lisp/emacs-lisp/edebug.el (edebug-read-function): Remove old incorrect
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*.

11 years agoDo not set mark on single mouse-1 clicks.
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

11 years ago* lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB.
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

11 years agoUse a simple struct to implement compile time checks for the Lisp_Object type
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.

11 years ago* lisp/loadup.el: Count byte-code functions as well.
Stefan Monnier [Wed, 13 Jun 2012 13:18:59 +0000 (09:18 -0400)]
* lisp/loadup.el: Count byte-code functions as well.

11 years ago* lisp/emacs-lisp/byte-opt.el (featurep): Move compiler-macro...
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