bpt/emacs.git
12 years ago* doc/misc/rcirc.texi (Configuration): Bug-fix: `rcirc-default-user-full-name' is...
Deniz Dogan [Tue, 28 Jun 2011 10:18:02 +0000 (12:18 +0200)]
* doc/misc/rcirc.texi (Configuration): Bug-fix: `rcirc-default-user-full-name' is now `rcirc-default-full-name'. Reported by Elias Pipping <pipping@exherbo.org>.

12 years ago* eshell/em-ls.el: Display `ls -l' dates in ISO format (Bug#8440).
Jari Aalto [Mon, 27 Jun 2011 21:47:39 +0000 (17:47 -0400)]
* eshell/em-ls.el: Display `ls -l' dates in ISO format (Bug#8440).
(eshell-ls-date-format): New defcustom.
(eshell-ls-file): Use it.

12 years ago* lisp/help-fns.el (describe-variable): Fix message for terminal-local vars.
Stefan Monnier [Mon, 27 Jun 2011 21:39:03 +0000 (17:39 -0400)]
* lisp/help-fns.el (describe-variable): Fix message for terminal-local vars.

12 years ago* lisp/net/ange-ftp.el: Allow loading .gz files (Bug#6923).
Katsumi Yamaoka [Mon, 27 Jun 2011 21:30:37 +0000 (17:30 -0400)]
* lisp/net/ange-ftp.el: Allow loading .gz files (Bug#6923).
(ange-ftp-make-tmp-name): New arg.
(ange-ftp-file-local-copy): Use it.

12 years agoRemove incorrect ChangeLog entry from last commit.
Chong Yidong [Mon, 27 Jun 2011 21:15:35 +0000 (17:15 -0400)]
Remove incorrect ChangeLog entry from last commit.

12 years agoCoding system fix for tar-untar-buffer (Bug#8870).
Jambunathan K [Mon, 27 Jun 2011 21:12:17 +0000 (17:12 -0400)]
Coding system fix for tar-untar-buffer (Bug#8870).

* lisp/tar-mode.el (tar-untar-buffer): Set coding-system-for-write
to no-conversion.

12 years agoUse window- prefix more consistently. Fix two buffer display bugs.
Martin Rudalics [Mon, 27 Jun 2011 18:32:56 +0000 (20:32 +0200)]
Use window- prefix more consistently.  Fix two buffer display bugs.

* window.c (resize_window_check): Rename to window_resize_check.
(resize_window_apply): Rename to window_resize_apply.
(Fresize_window_apply): Rename to Fwindow_resize_apply.
(Fdelete_other_windows_internal, resize_frame_windows)
(Fsplit_window_internal, Fdelete_window_internal)
(grow_mini_window, shrink_mini_window)
(Fresize_mini_window_internal): Fix callers accordingly.

* window.el (resize-window-reset): Rename to window-resize-reset.
(resize-window-reset-1): Rename to window-resize-reset-1.
(resize-window): Rename to window-resize.
(window-min-height, window-min-width)
(resize-mini-window, resize-this-window, resize-root-window)
(resize-root-window-vertically, adjust-window-trailing-edge)
(enlarge-window, shrink-window, maximize-window)
(minimize-window, delete-window, quit-restore-window)
(split-window, balance-windows, balance-windows-area-adjust)
(balance-windows-area, window-state-put-2)
(display-buffer-even-window-sizes, display-buffer-set-height)
(display-buffer-set-width, set-window-text-height)
(fit-window-to-buffer): Rename all "resize-window" prefixed
calls to use the "window-resize" prefix convention.
(display-buffer-alist): Fix symbol for label specifier.
(display-buffer-reuse-window): Set reuse-dedicated to cdr of
corresponding specifier.
Reported by Juanma Barranquero <lekktu@gmail.com>.

12 years agosrc/makefile.w32-in: Redesign dependencies.
Juanma Barranquero [Mon, 27 Jun 2011 14:59:12 +0000 (16:59 +0200)]
src/makefile.w32-in: Redesign dependencies.

12 years agoUse better names for window-next/-prev and window-vchild/-hchild.
Martin Rudalics [Mon, 27 Jun 2011 14:05:55 +0000 (16:05 +0200)]
Use better names for window-next/-prev and window-vchild/-hchild.

* window.c (Fwindow_vchild): Rename to Fwindow_top_child.
(Fwindow_hchild): Rename to Fwindow_left_child.
(Fwindow_next): Rename to Fwindow_next_sibling.
(Fwindow_prev): Rename to Fwindow_prev_sibling.

* window.el (window-right, window-left, window-child)
(window-child-count, window-last-child)
(window-iso-combination-p, walk-window-tree-1)
(window-atom-check-1, window-tree-1, delete-window)
(window-state-get-1, display-buffer-even-window-sizes): Adapt to
new naming conventions - window-vchild, window-hchild,
window-next and window-prev are now called window-top-child,
window-left-child, window-next-sibling and window-prev-sibling
respectively.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 27 Jun 2011 10:23:19 +0000 (06:23 -0400)]
Auto-commit of loaddefs files.

12 years agoHave overlays with window property respect clone numbers.
Martin Rudalics [Mon, 27 Jun 2011 09:27:44 +0000 (11:27 +0200)]
Have overlays with window property respect clone numbers.

* buffer.c (Qclone_number): Declare static and DEFSYM it.
(sort_overlays, overlay_strings): When an overlay's clone number
matches the window's clone number process the overlay even if
the overlay's window property doesn't match the current window.

12 years ago(ses-destroy-cell-variable-range): Fix heading comment convention.
Vincent Belaïche [Mon, 27 Jun 2011 08:14:10 +0000 (10:14 +0200)]
(ses-destroy-cell-variable-range): Fix heading comment convention.
(ses-call-printer): Does not pass an empty string to formatter when the cell is empty to keep from barking printer Calc math-format-value.

12 years agoImplement battery-mode-line-limit option.
Richard M. Stallman [Mon, 27 Jun 2011 08:04:55 +0000 (04:04 -0400)]
Implement battery-mode-line-limit option.

12 years agormailmm: Handle truncated messages.
Richard M. Stallman [Mon, 27 Jun 2011 08:01:30 +0000 (04:01 -0400)]
rmailmm: Handle truncated messages.

12 years agoflymake.el fix for bug#8866.
Glenn Morris [Mon, 27 Jun 2011 07:23:27 +0000 (00:23 -0700)]
flymake.el fix for bug#8866.

* lisp/progmodes/flymake.el (flymake-err-line-patterns):
Allow for column numbers in the ant/javac pattern.

12 years agoUpdate default value of `vc-revert-show-diff'.
Romain Francoise [Mon, 27 Jun 2011 06:33:51 +0000 (08:33 +0200)]
Update default value of `vc-revert-show-diff'.

12 years ago(ses-relocate-range): Keep rest of arguments for ses-range.
Vincent Belaïche [Mon, 27 Jun 2011 06:18:45 +0000 (08:18 +0200)]
(ses-relocate-range): Keep rest of arguments for ses-range.
(ses--clean-!, ses--clean-_): New functions.
(ses-range): Add configurability of readout order, and conversion to Calc vector.

12 years ago(ses-repair-cell-reference-all): New function.
Vincent Belaïche [Mon, 27 Jun 2011 06:11:36 +0000 (08:11 +0200)]
(ses-repair-cell-reference-all): New function.
(ses-cell-symbol): Set macro as safe, so that it can be used in
formulas.

12 years agoUpdate cycle detection algorithm.
Vincent Belaïche [Mon, 27 Jun 2011 06:02:27 +0000 (08:02 +0200)]
Update cycle detection algorithm.
(ses-localvars): Add ses--Dijkstra-attempt-nb and
ses--Dijkstra-weight-bound, and initial values thereof when
applicable.
(ses-set-localvars): New function.
(ses-make-cell): Add property-list as a cell element.
(ses-cell-property-get-fun, ses-cell-property-get)
(ses-cell-property-delq-fun, ses-cell-property-set-fun)
(ses-cell-property-pop-fun, ses-cell-property-get-handle-fun): New
functions.
(ses-cell-property-set, ses-cell-property-pop)
(ses-cell-property-get-handle): New macro.
(ses-cell-property-handle-car, ses-cell-property-handle-setcar):
New aliases, used for code readability.
(ses-calculate-cell, ses-update-cells): Use Dijkstra algorithm for
cycle detection.
(ses-self-reference-early-detection): New defcustom.
(ses-formula-references): Robustify against self-refering cells.
(ses-mode): Use ses-set-localvars.
(ses-command-hook): Add call to ses-initialize-Dijkstra-attempt
before lauching the update processing.
(ses-initialize-Dijkstra-attempt): New function.
(ses-recalculate-cell): Update for cycle detection based on
Dijkstra algorithm.

12 years agoFix commenting and indenting convention.
Vincent Belaïche [Mon, 27 Jun 2011 05:41:58 +0000 (07:41 +0200)]
Fix commenting and indenting convention.

12 years ago* .bzrignore: Add lisp/mh-e/mh-autoloads.el and lisp/mh-e/mh-cus-load.el.
Bill Wohler [Mon, 27 Jun 2011 04:31:43 +0000 (21:31 -0700)]
* .bzrignore: Add lisp/mh-e/mh-autoloads.el and lisp/mh-e/mh-cus-load.el.

12 years agolwlib/Makefile.in (ALL_CFLAGS): Add -I../lib for generated header files in out-of...
YAMAMOTO Mitsuharu [Mon, 27 Jun 2011 03:00:16 +0000 (12:00 +0900)]
lwlib/Makefile.in (ALL_CFLAGS): Add -I../lib for generated header files in out-of-tree build.

12 years ago* lisp/bs.el (bs-cycle-next): Complete last change.
Stefan Monnier [Mon, 27 Jun 2011 01:52:37 +0000 (21:52 -0400)]
* lisp/bs.el (bs-cycle-next): Complete last change.

12 years agoFix typos in lisp/ChangeLog.
Juanma Barranquero [Mon, 27 Jun 2011 00:37:54 +0000 (02:37 +0200)]
Fix typos in lisp/ChangeLog.

12 years agolisp/faces.el (list-faces-display): Add help-mode-map to output.
Drew Adams [Mon, 27 Jun 2011 00:29:55 +0000 (02:29 +0200)]
lisp/faces.el (list-faces-display): Add help-mode-map to output.

Fixes: debbugs:8939

12 years agoFix stupid typo with gnutls-clii.
Lars Magne Ingebrigtsen [Mon, 27 Jun 2011 00:11:22 +0000 (02:11 +0200)]
Fix stupid typo with gnutls-clii.
Don't re-get capabilities unless we're reconnecting.

12 years agoBind coding-system-for-* to binary to possibly avoid line encoding
Lars Magne Ingebrigtsen [Mon, 27 Jun 2011 00:02:15 +0000 (02:02 +0200)]
Bind coding-system-for-* to binary to possibly avoid line encoding
issues on Windows (among other things).

12 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Sun, 26 Jun 2011 22:21:48 +0000 (22:21 +0000)]
Merge changes made in Gnus trunk.

gnus-art.el (gnus-article-stop-animations): New function to stop any animations going on at article exit time.
gnus-registry.el (gnus-registry-user-format-function-M): Reinstate, since removing it breaks people upgrading.
shr.el (shr-put-image): Use the new interface for animating images.
 (shr-put-image): Animate for 60 seconds.

12 years agoIf the SMTP server supports STARTTLS, but Emacs has no built-in or
Lars Magne Ingebrigtsen [Sun, 26 Jun 2011 21:05:06 +0000 (23:05 +0200)]
If the SMTP server supports STARTTLS, but Emacs has no built-in or
external STARTTLS support, then report this in a sensible fashion to
the user.

12 years agoAdd global-hl-line-sticky-flag (Bug#8323).
Chong Yidong [Sun, 26 Jun 2011 20:25:53 +0000 (16:25 -0400)]
Add global-hl-line-sticky-flag (Bug#8323).

* lisp/hl-line.el (hl-line-sticky-flag): Doc fix.
(global-hl-line-sticky-flag): New option.
(global-hl-line-highlight): Obey it.

12 years ago* lisp/vc/vc.el (vc-revert-show-diff): Default to t.
Chong Yidong [Sun, 26 Jun 2011 19:34:17 +0000 (15:34 -0400)]
* lisp/vc/vc.el (vc-revert-show-diff): Default to t.

12 years agoFix wm_size-hints race between KDE/KWin and Gtk+ 3.
Jan Djärv [Sun, 26 Jun 2011 18:47:07 +0000 (20:47 +0200)]
Fix wm_size-hints race between KDE/KWin and Gtk+ 3.

* emacsgtkfixed.c: State that this is only used with Gtk+3.
(_EmacsFixedPrivate): Remove minwidth/height.
Add struct frame *f.
(emacs_fixed_init): Initialize priv->f.
(get_parent_class, emacs_fixed_set_min_size): Remove.
(emacs_fixed_new): Set priv->f to argument.
(emacs_fixed_get_preferred_width)
(emacs_fixed_get_preferred_height): Use min_width/height from
frames size_hint to set minimum and natural.
(XSetWMSizeHints, XSetWMNormalHints): Override these functions
and use min_width/height from frames size_hint to set
min_width/height (Bug#8919).

* emacsgtkfixed.h: State that this is only used with Gtk+3.
(emacs_fixed_set_min_size): Remove.
(emacs_fixed_new): Take frame as argument.

* gtkutil.c (xg_create_frame_widgets): Pass f to emacs_fixed_new.
(x_wm_set_size_hint): Remove call to emacs_fixed_set_min_size. Fix
indentation.

12 years agoChangeLog fix.
Glenn Morris [Sun, 26 Jun 2011 18:10:51 +0000 (11:10 -0700)]
ChangeLog fix.

12 years agoAvoid bidi-related crashes in Cperl Mode.
Eli Zaretskii [Sun, 26 Jun 2011 17:23:40 +0000 (20:23 +0300)]
Avoid bidi-related crashes in Cperl Mode.

 src/bidi.c (bidi_paragraph_init): Test for ZV_BYTE before calling
 bidi_at_paragraph_end, since fast_looking_at doesn't like to be
 called at ZV.

12 years ago* allout-widgets.el (allout-widgets-post-command-business): Stop decorating
Ken Manheimer [Sun, 26 Jun 2011 16:47:39 +0000 (12:47 -0400)]
* allout-widgets.el (allout-widgets-post-command-business): Stop decorating
intermediate isearch matches.  They're not being undecorated when an
isearch is continued past, and isearch automatically collapses them.  This
leads to "widget leaks", where decorated items accumulate in collapsed
areas.  Lines with lots of hidden widgets can slow down cursor travel,
substantially.  Too much complicated machinery would be needed to ensure
undecoration, so we're doing without this nicety.

(allout-widgets-tally-string): Don't try to do a hash-table-count of
allout-widgets-tally when it's nil.  This eliminates spurious "Error during
redisplay: (wrong-type-argument hash-table-p nil)" warnings in *Messages*
when allout-widgets-maintain-tally is t.

12 years agoFix some more display-buffer related bugs.
Martin Rudalics [Sun, 26 Jun 2011 16:17:30 +0000 (18:17 +0200)]
Fix some more display-buffer related bugs.

* window.el (display-buffer-normalize-argument): Rename to
display-buffer-normalize-arguments.  Handle special meaning of
LABEL argument.  Respect special-display-function when popping
up a new frame.  Fix code searching for a window showing the
buffer on another frame.
(display-buffer-normalize-specifiers): Call
display-buffer-normalize-arguments.
(display-buffer-in-window): Don't undedicate the window if its
buffer remains the same.
Reported by Drew Adams <drew.adams@oracle.com>.
(display-buffer-alist): Add choice for same-window macro
specfier.
(display-buffer): Mention special meaning of LABEL argument in
doc-string.  Fix quoting.  Don't pop up a new frame even as
fallback.

12 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 26 Jun 2011 12:41:14 +0000 (12:41 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Summary Mail Commands): Document `gnus-summary-reply-to-list-with-original'.
auth-source.el (with-auth-source-epa-overrides): Fix compilation error with `find-file-hooks' on Emacs 22.
 (with-auth-source-epa-overrides): Ugly hack to Wrap the `find-file-hook' things in `symbol-value' to avoid compilation warnings on all architectures.
spam.el (spam-stat): Require in a normal fashion without binding `spam-stat-install-hooks' to avoid compilation warnings.
spam-stat.el (spam-stat-install-hooks): Removed.
 (spam-stat-install-hooks): Don't run automatically.
gnus-msg.el (gnus-summary-reply-to-list-with-original): New command and keystroke.

12 years agolisp/bs.el (bs-cycle-next): Pass current buffer to `bury-buffer'.
Juanma Barranquero [Sun, 26 Jun 2011 11:23:23 +0000 (13:23 +0200)]
lisp/bs.el (bs-cycle-next): Pass current buffer to `bury-buffer'.

Fixes: debbugs:8911

12 years agoAuto-commit of generated files.
Glenn Morris [Sun, 26 Jun 2011 10:21:22 +0000 (06:21 -0400)]
Auto-commit of generated files.

12 years ago* lisp/emacs-lisp/smie.el (smie-bnf->prec2): Fix last change.
Andreas Schwab [Sun, 26 Jun 2011 08:43:52 +0000 (10:43 +0200)]
* lisp/emacs-lisp/smie.el (smie-bnf->prec2): Fix last change.
(Bug#8934)

12 years agoUse built-in TLS support if `gnutls-available-p' is true.
Lars Magne Ingebrigtsen [Sun, 26 Jun 2011 08:13:07 +0000 (10:13 +0200)]
Use built-in TLS support if `gnutls-available-p' is true.

12 years agoExtend emacs register to accept value from registerv-make
Leo Liu [Sun, 26 Jun 2011 06:37:04 +0000 (14:37 +0800)]
Extend emacs register to accept value from registerv-make

A value object returned by `registerv-make' has slots to control
jump-to-register, describe-register-1 and insert-register.

12 years agoNew option for showing a diff in vc-revert (Bug#8927).
Chong Yidong [Sun, 26 Jun 2011 04:05:39 +0000 (00:05 -0400)]
New option for showing a diff in vc-revert (Bug#8927).

* vc/vc.el (vc-revert-show-diff): New defcustom.
(vc-diff-internal): New arg specifying diff buffer.
(vc-revert): Obey vc-revert-show-diff.  If we show a diff, don't
reuse an existing *vc-diff* buffer.

12 years ago* lisp/progmodes/cperl-mode.el (cperl-mode): Derive from prog-mode.
Chong Yidong [Sun, 26 Jun 2011 03:42:22 +0000 (23:42 -0400)]
* lisp/progmodes/cperl-mode.el (cperl-mode): Derive from prog-mode.

12 years agoFix handling of pending signals in wait_reading_process_output (Bug#8869).
Chong Yidong [Sun, 26 Jun 2011 03:40:40 +0000 (23:40 -0400)]
Fix handling of pending signals in wait_reading_process_output (Bug#8869).

* process.c (wait_reading_process_output): Bypass select if
waiting for a cell while ignoring keyboard input, and input is
pending.  Suggested by Jan Djärv.

12 years ago* lisp/progmodes/f90.el (f90-looking-at-critical): Doc fix.
Glenn Morris [Sun, 26 Jun 2011 01:37:36 +0000 (18:37 -0700)]
* lisp/progmodes/f90.el (f90-looking-at-critical): Doc fix.

12 years ago* doc/emacs/fortran-xtra.texi (Fortran): F90 mode is also for F2008.
Glenn Morris [Sun, 26 Jun 2011 01:25:53 +0000 (18:25 -0700)]
* doc/emacs/fortran-xtra.texi (Fortran): F90 mode is also for F2008.

* etc/NEWS: Mention this.

12 years agoAdd support for block and critical blocks to f90.el.
Glenn Morris [Sun, 26 Jun 2011 01:22:45 +0000 (18:22 -0700)]
Add support for block and critical blocks to f90.el.

* lisp/progmodes/f90.el (f90-critical-indent): New option.
(f90-font-lock-keywords-2, f90-blocks-re, f90-end-block-re)
(f90-start-block-re, f90-mode-abbrev-table): Add block, critical.
(f90-mode): Doc fix.
(f90-looking-at-critical, f90-looking-at-end-critical): New funcs.
(f90-no-block-limit, f90-calculate-indent, f90-end-of-block)
(f90-beginning-of-block, f90-next-block, f90-indent-region)
(f90-match-end): Handle block, critical.

12 years agoAdd some co-array stuff to f90.el.
Glenn Morris [Sun, 26 Jun 2011 00:23:44 +0000 (17:23 -0700)]
Add some co-array stuff to f90.el.

* lisp/progmodes/f90.el (f90-keywords-re, f90-keywords-level-3-re):
(f90-procedures-re, f90-constants-re): Add some co-array stuff.

12 years agoAdd some more F2008 font-locking for f90.el.
Glenn Morris [Sun, 26 Jun 2011 00:01:36 +0000 (17:01 -0700)]
Add some more F2008 font-locking for f90.el.

* lisp/progmodes/f90.el (f90-keywords-re, f90-keywords-level-3-re):
Add some F2008 stuff.

12 years ago* lisp/calendar/diary-lib.el: Comment fix.
Glenn Morris [Sat, 25 Jun 2011 22:33:29 +0000 (15:33 -0700)]
* lisp/calendar/diary-lib.el: Comment fix.

12 years agoAvoid some code duplication in diary-lib.el.
Glenn Morris [Sat, 25 Jun 2011 22:22:47 +0000 (15:22 -0700)]
Avoid some code duplication in diary-lib.el.

* lisp/calendar/diary-lib.el (diary-included-files): Doc fix.
(diary-include-files): New function, extracted from
diary-include-other-diary-files and diary-mark-included-diary-files.
(diary-include-other-diary-files, diary-mark-included-diary-files):
Just call diary-include-files.
(diary-mark-entries): Reset diary-included-files on first call.

12 years agoWhen marking, visit included diary-files in temp buffers.
Glenn Morris [Sat, 25 Jun 2011 22:10:21 +0000 (15:10 -0700)]
When marking, visit included diary-files in temp buffers.

Ref: bug#8920, but not a bug.

* lisp/calendar/diary-lib.el (diary-mark-entries)
(diary-mark-included-diary-files):
Visit included diary-files in temp buffers.

12 years ago* lisp/progmodes/f90.el (f90-procedures-re): Add F2008 "is_contiguous".
Glenn Morris [Sat, 25 Jun 2011 21:28:24 +0000 (14:28 -0700)]
* lisp/progmodes/f90.el (f90-procedures-re): Add F2008 "is_contiguous".

12 years agoAdd submodule support to f90.el.
Glenn Morris [Sat, 25 Jun 2011 21:21:45 +0000 (14:21 -0700)]
Add submodule support to f90.el.

* lisp/progmodes/f90.el (f90-keywords-re, f90-font-lock-keywords-1)
(f90-blocks-re, f90-program-block-re, f90-end-block-re)
(f90-start-block-re, f90-imenu-generic-expression)
(f90-looking-at-program-block-start, f90-no-block-limit):
Add support for submodules.

12 years agoChangeLog fix.
Glenn Morris [Sat, 25 Jun 2011 20:53:24 +0000 (13:53 -0700)]
ChangeLog fix.

12 years agoAdd missing ChangeLog for previous commit.
Glenn Morris [Sat, 25 Jun 2011 20:51:40 +0000 (13:51 -0700)]
Add missing ChangeLog for previous commit.

12 years agoAdd some F2008 keywords to f90.el font-locking.
Glenn Morris [Sat, 25 Jun 2011 20:49:56 +0000 (13:49 -0700)]
Add some F2008 keywords to f90.el font-locking.

* lisp/progmodes/f90.el (f90-keywords-re, f90-procedures-re)
(f90-constants-re): Add some F2008 stuff.

12 years ago* lib-src/emacsclient.c (print_help_and_exit): More fixing of previous.
Glenn Morris [Sat, 25 Jun 2011 19:52:34 +0000 (12:52 -0700)]
* lib-src/emacsclient.c (print_help_and_exit): More fixing of previous.

12 years ago* lib-src/emacsclient.c (print_help_and_exit): Fix previous change.
Glenn Morris [Sat, 25 Jun 2011 19:33:07 +0000 (12:33 -0700)]
* lib-src/emacsclient.c (print_help_and_exit): Fix previous change.

12 years agoMerge from trunk.
Paul Eggert [Sat, 25 Jun 2011 18:31:36 +0000 (11:31 -0700)]
Merge from trunk.

12 years agoMerge from emacs-23; up to 2010-06-15T03:34:12Z!rgm@gnu.org.
Glenn Morris [Sat, 25 Jun 2011 18:21:00 +0000 (11:21 -0700)]
Merge from emacs-23; up to 2010-06-15T03:34:12Z!rgm@gnu.org.

12 years agoMinor additions for previous emacsclient change.
Glenn Morris [Sat, 25 Jun 2011 18:13:14 +0000 (11:13 -0700)]
Minor additions for previous emacsclient change.

* lib-src/emacsclient.c (decode_options) <opt>: Add `F:'.
(print_help_and_exit): Mention --frame-parameters.

12 years agoSimplify unloading functions after 2011-06-25T17:42:18Z!lekktu@gmail.com.
Juanma Barranquero [Sat, 25 Jun 2011 18:08:41 +0000 (20:08 +0200)]
Simplify unloading functions after 2011-06-25T17:42:18Z!lekktu@gmail.com.

* allout.el (allout-unload-function): Pass -1 to `allout-mode'.

* proced.el (proced-unload-function):
* progmodes/cperl-mode.el (cperl-mode-unload-function): Remove.

* ses.el (ses-unload-function):
* emacs-lisp/re-builder.el (re-builder-unload-function): Simplify.

12 years agoAllow emacsclient to set parameters of new graphical frames (bug#5864)
Andreas Rottmann [Sat, 25 Jun 2011 18:05:48 +0000 (11:05 -0700)]
Allow emacsclient to set parameters of new graphical frames (bug#5864)

* lib-src/emacsclient.c (longopts, decode_options, main): Add frame-parameters.

* lisp/server.el (server-create-window-system-frame): Add parameters arg.
(server-process-filter): Doc fix.  Handle frame-parameters.

* doc/emacs/misc.texi (emacsclient Options): Mention --frame-parameters.
* doc/man/emacsclient.1: Mention --frame-parameters.

* etc/NEWS: Mention this.

12 years agoemacs-buildstatus means reports of build failures are unlikely to be needed.
Glenn Morris [Sat, 25 Jun 2011 17:51:03 +0000 (10:51 -0700)]
emacs-buildstatus means reports of build failures are unlikely to be needed.

12 years ago* loadhist.el (unload--set-major-mode): New function.
Juanma Barranquero [Sat, 25 Jun 2011 17:42:18 +0000 (19:42 +0200)]
* loadhist.el (unload--set-major-mode): New function.
  (unload-feature): Use it.

* progmodes/python.el (python-after-info-look): Add autoload cookie.
  (python-unload-function): New function.

Fixes: debbugs:8781 debbugs:8730

12 years ago* lisp/mail/rmail.el (rmail-show-message-1): Use restore-buffer-modified-p.
Stefan Monnier [Sat, 25 Jun 2011 13:38:32 +0000 (09:38 -0400)]
* lisp/mail/rmail.el (rmail-show-message-1): Use restore-buffer-modified-p.

12 years agoAdd icecat to the firefox candidates list.
Giuseppe Scrivano [Sat, 25 Jun 2011 09:31:24 +0000 (11:31 +0200)]
Add icecat to the firefox candidates list.

12 years agoUse gnulib's dup2 module instead of rolling our own.
Paul Eggert [Sat, 25 Jun 2011 08:40:38 +0000 (01:40 -0700)]
Use gnulib's dup2 module instead of rolling our own.

* Makefile.in (GNULIB_MODULES): Add dup2.
* configure.in: Do not check for dup2; gnulib does that now.
* lib/dup2.c, m4/dup2.m4: New files, from gnulib.
* src/sysdep.c (dup2) [!HAVE_DUP2]: Remove; gnulib now does this.

12 years agoMove DEFSYM to lisp.h and use everywhere.
Juanma Barranquero [Fri, 24 Jun 2011 21:25:22 +0000 (23:25 +0200)]
Move DEFSYM to lisp.h and use everywhere.

12 years agolisp/progmodes/verilog-mode.el (verilog-mode): Fix test for bound variable.
Juanma Barranquero [Fri, 24 Jun 2011 12:13:35 +0000 (14:13 +0200)]
lisp/progmodes/verilog-mode.el (verilog-mode): Fix test for bound variable.

12 years ago* gnutls.c (syms_of_gnutls): Use the DEFSYM macro from character.h.
Ted Zlatanov [Fri, 24 Jun 2011 10:29:19 +0000 (05:29 -0500)]
* gnutls.c (syms_of_gnutls): Use the DEFSYM macro from character.h.

12 years agoauth-source.el (auth-source-netrc-cache): Move forward.
Katsumi Yamaoka [Thu, 23 Jun 2011 23:17:26 +0000 (23:17 +0000)]
auth-source.el (auth-source-netrc-cache): Move forward.

12 years agoGoing to grep hit in Rmail buffer finds the message.
Richard M. Stallman [Thu, 23 Jun 2011 17:08:15 +0000 (13:08 -0400)]
Going to grep hit in Rmail buffer finds the message.

12 years agoWork with changes in mail-bury.
Richard M. Stallman [Thu, 23 Jun 2011 17:03:59 +0000 (13:03 -0400)]
Work with changes in mail-bury.

12 years ago* lisp/emacs-lisp/smie.el (smie-bnf->prec2): Give more understandable error
Stefan Monnier [Thu, 23 Jun 2011 16:55:59 +0000 (12:55 -0400)]
* lisp/emacs-lisp/smie.el (smie-bnf->prec2): Give more understandable error
messages for adjacent non-terminals.

12 years agoMarking message as "seen" should not mark buffer as changed.
Richard M. Stallman [Thu, 23 Jun 2011 16:38:40 +0000 (12:38 -0400)]
Marking message as "seen" should not mark buffer as changed.

12 years agoDon't reuse previous Message-id when resending.
Richard M. Stallman [Thu, 23 Jun 2011 16:33:05 +0000 (12:33 -0400)]
Don't reuse previous Message-id when resending.

12 years ago* net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether
Michael Albinus [Thu, 23 Jun 2011 13:03:04 +0000 (15:03 +0200)]
* net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether
SIZE is a number.

12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 23 Jun 2011 10:18:34 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years agoFix display-buffer related bugs reported by Thierry Volpiatto.
Martin Rudalics [Thu, 23 Jun 2011 08:58:45 +0000 (10:58 +0200)]
Fix display-buffer related bugs reported by Thierry Volpiatto.

* window.el (get-lru-window, get-mru-window)
(get-largest-window): Never return a minibuffer window.
(display-buffer-pop-up-window): Fix a bug that could lead to
reusing the minibuffer window.
(display-buffer): Pass original specifier argument to
display-buffer-function instead of the normalized one.
Reported by Thierry Volpiatto <thierry.volpiatto@gmail.com>.

12 years ago* lib/getopt.c, lib/stat.c, m4/gl-comp.m4: Merge from gnulib.
Paul Eggert [Thu, 23 Jun 2011 08:10:57 +0000 (01:10 -0700)]
* lib/getopt.c, lib/stat.c, m4/gl-comp.m4: Merge from gnulib.

12 years agoMerge from trunk.
Paul Eggert [Thu, 23 Jun 2011 07:37:31 +0000 (00:37 -0700)]
Merge from trunk.

12 years ago* print.c (printchar, strout): Check for string overflow.
Paul Eggert [Thu, 23 Jun 2011 07:33:28 +0000 (00:33 -0700)]
* print.c (printchar, strout): Check for string overflow.

(PRINTPREPARE, printchar, strout):
Don't set size unless allocation succeeds.

12 years ago* minibuf.c (read_minibuf_noninteractive): Use ptrdiff_t, not int,
Paul Eggert [Thu, 23 Jun 2011 06:45:38 +0000 (23:45 -0700)]
* minibuf.c (read_minibuf_noninteractive): Use ptrdiff_t, not int,

for sizes.  Check for string overflow more accurately.
Simplify newline removal at end; this suppresses a GCC 4.6.0 warning.

12 years ago* macros.c: Integer and buffer overflow fixes.
Paul Eggert [Thu, 23 Jun 2011 06:31:41 +0000 (23:31 -0700)]
* macros.c: Integer and buffer overflow fixes.

* keyboard.h (struct keyboard.kbd_macro_bufsize):
* macros.c (Fstart_kbd_macro, store_kbd_macro_char):
Use ptrdiff_t, not int, for sizes.
Don't increment bufsize until after realloc succeeds.
Check for size-calculation overflow.
(Fstart_kbd_macro): Use EMACS_INT, not int, for XINT result.

12 years ago* lread.c (read1): Check for size overflow.
Paul Eggert [Thu, 23 Jun 2011 05:41:40 +0000 (22:41 -0700)]
* lread.c (read1): Check for size overflow.

12 years ago* lisp.h (DEFVAR_KBOARD): Use offsetof instead of char * finagling.
Paul Eggert [Thu, 23 Jun 2011 05:35:51 +0000 (22:35 -0700)]
* lisp.h (DEFVAR_KBOARD): Use offsetof instead of char * finagling.

12 years ago* lread.c (read_escape): Avoid int overflow.
Paul Eggert [Thu, 23 Jun 2011 05:34:52 +0000 (22:34 -0700)]
* lread.c (read_escape): Avoid int overflow.

(Fload, openp, read_buffer_size, read1)
(substitute_object_recurse, read_vector, read_list, map_obarray):
Use ptrdiff_t, not int, for sizes.
(read1): Use EMACS_INT, not int, for sizes.

12 years agoMove completing-read-function and completing-read-default to elisp
Leo Liu [Thu, 23 Jun 2011 03:35:05 +0000 (11:35 +0800)]
Move completing-read-function and completing-read-default to elisp

12 years ago* lread.c: Integer overflow fixes.
Paul Eggert [Thu, 23 Jun 2011 00:55:55 +0000 (17:55 -0700)]
* lread.c: Integer overflow fixes.

(read_integer): Radix is now EMACS_INT, not int,
to improve quality of diagnostics for out-of-range radices.
Calculate buffer size correctly for out-of-range radices.
(read1): Check for integer overflow in radices, and in
read-circle numbers.

12 years ago* image.c (cache_image): Check for size arithmetic overflow.
Paul Eggert [Thu, 23 Jun 2011 00:46:41 +0000 (17:46 -0700)]
* image.c (cache_image): Check for size arithmetic overflow.

12 years agoFix typo in last check-in.
Lars Magne Ingebrigtsen [Thu, 23 Jun 2011 00:18:46 +0000 (02:18 +0200)]
Fix typo in last check-in.

12 years agoClean up the ssl/tls support to be able to use the built-in support, too.
Lars Magne Ingebrigtsen [Thu, 23 Jun 2011 00:17:41 +0000 (02:17 +0200)]
Clean up the ssl/tls support to be able to use the built-in support, too.

12 years agonnimap.el (nnimap-open-connection-1): Fix indentation.
Lars Magne Ingebrigtsen [Thu, 23 Jun 2011 00:00:38 +0000 (00:00 +0000)]
nnimap.el (nnimap-open-connection-1): Fix indentation.

12 years agoMake mail exit more nicely when Rmail is in use.
Richard M. Stallman [Wed, 22 Jun 2011 23:39:29 +0000 (19:39 -0400)]
Make mail exit more nicely when Rmail is in use.

12 years agoFix bug: Rmail f copied the entire Rmail file into *mail*.
Richard M. Stallman [Wed, 22 Jun 2011 23:35:21 +0000 (19:35 -0400)]
Fix bug: Rmail f copied the entire Rmail file into *mail*.

12 years ago* lread.c (read_escape): Check for hex character overflow.
Paul Eggert [Wed, 22 Jun 2011 22:39:06 +0000 (15:39 -0700)]
* lread.c (read_escape): Check for hex character overflow.

12 years ago* lread.c: Integer overflow issues.
Paul Eggert [Wed, 22 Jun 2011 22:36:19 +0000 (15:36 -0700)]
* lread.c: Integer overflow issues.

(saved_doc_string_size, saved_doc_string_length)
(prev_saved_doc_string_size, prev_saved_doc_string_length):
Now ptrdiff_t, not int.
(read1): Don't assume doc string length fits in int.  Check for
out-of-range doc string lengths.
(read_list): Don't assume file position fits in int.