]> git.eshelyaron.com Git - emacs.git/log
emacs.git
12 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Fri, 14 Sep 2012 01:09:22 +0000 (03:09 +0200)]
nt/config.nt: Sync with autogen/config.in.
(BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGIO, BROKEN_SIGPOLL)
(BROKEN_SIGPTY, HAVE_CBRT, HAVE_LOGB, NO_TERMIO): Remove.
(USABLE_FIONREAD, USABLE_SIGIO): New macros.

12 years ago* lisp/dired-aux.el (dired-do-chxxx): Use `eq' to detect empty input.
Juri Linkov [Thu, 13 Sep 2012 23:42:39 +0000 (02:42 +0300)]
* lisp/dired-aux.el (dired-do-chxxx): Use `eq' to detect empty input.

Fixes: debbugs:12399
12 years agoUpdate some function declarations
Glenn Morris [Thu, 13 Sep 2012 18:41:21 +0000 (14:41 -0400)]
Update some function declarations

* lisp/calc/calc-ext.el (math-compose-expr):
* lisp/calc/calc.el (math-compose-expr):
* lisp/progmodes/cc-defs.el (cl-macroexpand-all):
* lisp/progmodes/cc-langs.el (delete-duplicates, mapcan)
(cl-macroexpand-all): Update declarations.

12 years ago* lisp/vc/vc.el: No need to require ediff.
Glenn Morris [Thu, 13 Sep 2012 18:23:33 +0000 (14:23 -0400)]
* lisp/vc/vc.el: No need to require ediff.
(ediff-load-version-control): Declare.
(ediff-vc-internal): Fix declaration.
(vc-version-ediff): Require ediff.

12 years agoUse a more backwards-compatible timer format.
Paul Eggert [Thu, 13 Sep 2012 16:23:06 +0000 (09:23 -0700)]
Use a more backwards-compatible timer format.

* etc/NEWS: Document it.
* lisp/emacs-lisp/timer.el (timer): PSECS is now at the end, rather than
being right after USECS, as that better supports old code that
inadvisedly looked directly at the timer vector.
* src/keyboard.c (decode_timer): Get PSECS from the 8th (origin-0)
vector element, not from the 4th, since PSECS is now at the end.
(Fcurrent_idle_time): Doc fix.

Fixes: debbugs:12430
12 years agolanguage/chinese.el ("Chinese-GB", "Chinese-BIG5", "Chinese-CNS", "Chinese-EUC-TW...
Kenichi Handa [Thu, 13 Sep 2012 15:21:58 +0000 (00:21 +0900)]
language/chinese.el ("Chinese-GB", "Chinese-BIG5", "Chinese-CNS", "Chinese-EUC-TW"): Add chinese-gbk to coding-priority property of these language environment.

12 years ago* configure.ac: Report Gtk+ 3 as GTK.
Jan Djärv [Thu, 13 Sep 2012 12:02:00 +0000 (14:02 +0200)]
* configure.ac: Report Gtk+ 3 as GTK.

12 years agoFix typos in ChangeLogs.
Juanma Barranquero [Thu, 13 Sep 2012 11:42:18 +0000 (13:42 +0200)]
Fix typos in ChangeLogs.

12 years agognus-art.el (gnus-article-stop-animations): Use gnus-timer--function that is an alias...
Katsumi Yamaoka [Thu, 13 Sep 2012 11:14:30 +0000 (11:14 +0000)]
gnus-art.el (gnus-article-stop-animations): Use gnus-timer--function that is an alias to timer--function

12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 13 Sep 2012 10:17:31 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years ago* texinfo.tex: Merge from gnulib.
Paul Eggert [Thu, 13 Sep 2012 07:28:15 +0000 (00:28 -0700)]
* texinfo.tex: Merge from gnulib.

12 years ago* configure.ac: Reorder Xaw3d messages.
Jan Djärv [Thu, 13 Sep 2012 06:27:21 +0000 (08:27 +0200)]
* configure.ac: Reorder Xaw3d messages.

12 years ago* etc/NEWS (--with-x-toolkit): Mention Gtk+ 3 is now default.
Jan Djärv [Thu, 13 Sep 2012 06:13:26 +0000 (08:13 +0200)]
* etc/NEWS (--with-x-toolkit): Mention Gtk+ 3 is now default.

12 years agoFix glitches caused by addition of psec to timers.
Paul Eggert [Thu, 13 Sep 2012 06:09:45 +0000 (23:09 -0700)]
Fix glitches caused by addition of psec to timers.

* etc/NEWS: Document timer format change.
* lisp/image.el (image-animate-timer):
* lisp/time.el (display-time-world-timer):
Use timer--function and timer--args rather than raw access to
timer vector.
* lisp/gnus/gnus-art.el (gnus-article-stop-animations):
Use timer--function rather than raw access to timer vector.

Fixes: debbugs:12430
12 years agoFunction to mark objects and remove killed buffers at once.
Dmitry Antipov [Thu, 13 Sep 2012 05:18:26 +0000 (09:18 +0400)]
Function to mark objects and remove killed buffers at once.
* alloc.c (discard_killed_buffers): Rename to ...
(mark_discard_killed buffers) ... new name.  Add marking
of remaining objects.  Fix comment.  Adjust users.
(mark_object): Do not touch frame buffer lists here.
* frame.c (delete_frame): Reset frame buffer lists here.

12 years agoBetter workaround for GNOME bug when --enable-gcc-warnings.
Paul Eggert [Thu, 13 Sep 2012 04:14:33 +0000 (21:14 -0700)]
Better workaround for GNOME bug when --enable-gcc-warnings.

* emacsgtkfixed.c (G_STATIC_ASSERT): Remove, undoing last change.
Instead, disable -Wunused-local-typedefs.  See Dmitry Antipov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00335.html>.

12 years agobyte-compile-warning-prefix tweak
Glenn Morris [Thu, 13 Sep 2012 02:41:46 +0000 (22:41 -0400)]
byte-compile-warning-prefix tweak

* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-prefix): If not
compiling a file, try using load-file-name.

12 years ago* lisp/emacs-lisp/edebug.el (edebug-outside-unread-command-events):
Stefan Monnier [Thu, 13 Sep 2012 02:29:05 +0000 (22:29 -0400)]
* lisp/emacs-lisp/edebug.el (edebug-outside-unread-command-events):
Fix last change.
(edebug-update-eval-list): Use `push'.

12 years agoSimplify SIGIO usage.
Paul Eggert [Thu, 13 Sep 2012 02:21:28 +0000 (19:21 -0700)]
Simplify SIGIO usage.

The code that dealt with SIGIO was crufty and confusing, e.g., it
played tricks like "#undef SIGIO" but these tricks were not used
consistently.  Simplify mostly by not #undeffing standard symbols,
e.g., use "defined USABLE_SIGIO" (our symbol, which we can define
or not as we please) rather than "defined SIGIO" (standard symbol
that we probably shouldn't #undef).
* configure.ac (NO_TERMIO, BROKEN_FIONREAD, BROKEN_SIGAIO)
(BROKEN_SIGPOLL, BROKEN_SIGPTY): Remove.
(USABLE_FIONREAD, USABLE_SIGIO): New symbols.  All uses of
'defined SIGIO' replaced with 'defined USABLE_SIGIO', with no need
to #undef SIGIO now (which was error-prone).  Likewise, all uses
of 'defined FIONREAD' replaced with 'defined USABLE_FIONREAD'.
* src/admin/CPP_DEFINES (BROKEN_SIGAIO, BROKEN_SIGIO, BROKEN_SIGPOLL)
(BROKEN_SIGPTY, NO_TERMIO): Remove.
* src/conf_post.h [USG5_4]: Do not include <sys/wait.h> here.
Modules that need it can include it.
[USG5_4 && emacs]: Likewise, do not include the streams stuff here.
* src/dispextern.h (ignore_sigio): New decl.
* src/emacs.c (shut_down_emacs): Invoke unrequest_sigio
unconditionally, since it's now a no-op if !USABLE_SIGIO.
* src/emacs.c (shut_down_emacs):
* src/keyboard.c (kbd_buffer_store_event_hold):
Use ignore_sigio rather than invoking 'signal' directly.
* src/keyboard.c (USABLE_FIONREAD && USG5_4): Include <sys/filio.h>,
for FIONREAD.
(FIONREAD, SIGIO): Do not #undef.
(tty_read_avail_input): Use #error rather than a syntax error.
* src/process.c [USG5_4]: Include <sys/stream.h> and <sys/stropts.h>,
for I_PIPE, used by SETUP_SLAVE_PTY.
(DATAGRAM_SOCKETS): Simplify defn, based on USABLE_FIONREAD.
* src/sysdep.c (croak): Remove; no longer needed.  This bit of
temporary code, with Fred N. Fish's comment that it's temporary,
has been in Emacs since at least 1992!
(init_sigio, reset_sigio, request_sigio, unrequest_sigio):
Arrange for them to be no-ops in all cases when ! USABLE_SIGIO.
* src/syssignal.h (croak): Remove decl.
(SIGIO, SIGPOO, SIGAIO, SIGPTY): Do not #undef; that's too fragile.
* src/systty.h [!NO_TERMIO]: Do not include <termio.h>; no longer needed
now that we're termios-only.
(FIONREAD, ASYNC) [BROKEN_FIONREAD]: Do not #undef.
* src/term.c (dissociate_if_controlling_tty): Use #error rather than
a run-time error.

Fixes: debbugs:12408
12 years ago* lisp/emacs-lisp/edebug.el: Use lexical-binding.
Stefan Monnier [Thu, 13 Sep 2012 02:00:41 +0000 (22:00 -0400)]
* lisp/emacs-lisp/edebug.el: Use lexical-binding.
Remove the "edebug-" prefix from non-dynamically-scoped variables.
Mark unused args with underscore.
(edebug-save-restriction, edebug-outside-excursion): Use `declare'.
(edebug-form-data): Use defvar-local.
(edebug-make-before-and-after-form, edebug-make-after-form):
Use backquote.
(edebug-args, edebug-value, edebug-after-index, edebug-arg-mode):
Not dynamically scoped any more.
(edebug--enter-trace): Add arguments `function' and `args'.
Rename from edebug-enter-trace.
(edebug-enter): Call it accordingly.  Bind edebug-function explicitly.
(edebug--update-coverage): Add `after-index' and `value' args.
Rename from edebug-update-coverage.
(edebug-slow-after): Call it accordingly.
(edebug--recursive-edit): Add arg `arg-mode'.  Rename from
edebug-recursive-edit.
(edebug--display): Call it accordingly.  Add args `value',
`offset-index', and `arg-mode'.  Rename from edebug-display.
(edebug-debugger, edebug): Call it accordingly.
(edebug-eval-display-list): Use dolist.

12 years agoWork around GCC and GNOME bugs when --enable-gcc-warnings.
Paul Eggert [Thu, 13 Sep 2012 01:22:08 +0000 (18:22 -0700)]
Work around GCC and GNOME bugs when --enable-gcc-warnings.

* emacsgtkfixed.c (G_STATIC_ASSERT): Redefine to use 'verify',
to work around GNOME bug 683906.
* image.c (jpeg_load_body) [HAVE_JPEG && lint]: Pacify gcc -Wclobber.
(struct my_jpeg_error_mgr) [HAVE_JPEG && lint]: New member fp.
This works around GCC bug 54561.

12 years agoMore fixes for 'volatile' and setjmp/longjmp.
Paul Eggert [Wed, 12 Sep 2012 21:34:24 +0000 (14:34 -0700)]
More fixes for 'volatile' and setjmp/longjmp.

* eval.c (Fdefvar, Fcondition_case): Remove unnecessary 'volatile's.
* image.c (struct png_load_context) [HAVE_PNG]: New type.
(png_load_body) [HAVE_PNG]:
(jpeg_load_body) [HAVE_JPEG]:
New function, with most of the old parent function's body.
(png_load) [HAVE_PNG]:
(jpeg_load) [HAVE_JPEG]:
Invoke the new function, to avoid longjmp munging our locals.
(struct my_jpeg_error_mgr) [HAVE_JPEG]: New members cinfo, failure_code.
(my_error_exit) [HAVE_JPEG]: Don't trust 'setjmp' to return 2 when
longjmp is passed 2, as the C standard doesn't guarantee this.
Instead, store the failure code into mgr->failure_code.

12 years agoUse Isearch lax whitespace mode in Info.
Juri Linkov [Wed, 12 Sep 2012 20:51:46 +0000 (23:51 +0300)]
Use Isearch lax whitespace mode in Info.
http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00811.html

* lisp/info.el (Info-search): Don't check for isearch-mode and
isearch-regexp before let-binding search-spaces-regexp to
Info-search-whitespace-regexp.
(Info-isearch-search): Let-bind Info-search-whitespace-regexp to
search-whitespace-regexp if isearch-lax-whitespace or
isearch-regexp-lax-whitespace is non-nil.
(Info-mode): Don't set local variable search-whitespace-regexp.

12 years ago* configure.ac: No --with-x-toolkit given: Try gtk3 toolkit first
Jan Djärv [Wed, 12 Sep 2012 20:21:39 +0000 (22:21 +0200)]
* configure.ac: No --with-x-toolkit given: Try gtk3 toolkit first
and then gtk2 if not found.
--with-x-toolkit=gtk|yes: As above, but fail if gtk2 or gt3 not found.
--with-x-toolkit=gtk2: Only try gtk2, fail if not found.
--with-x-toolkit=gtk3: Only try gtk3, fail if not found.

12 years agoRemove unread-command-char.
Stefan Monnier [Wed, 12 Sep 2012 19:16:36 +0000 (15:16 -0400)]
Remove unread-command-char.
* src/keyboard.c (read_char, requeued_events_pending_p, Finput_pending_p)
(Fdiscard_input, quit_throw_to_read_char, init_keyboard)
(syms_of_keyboard): Remove support for unread-command-char.
* lisp/emacs-lisp/debug.el (debugger-outer-unread-command-char, debug)
(debugger-env-macro): Remove support for unread-command-char.

* lisp/ehelp.el (with-electric-help): Accept functions in
electric-help-form-to-execute.
(electric-help-execute-extended, electric-help-ctrl-x-prefix): Use it.
And replace unread-command-char -> unread-command-events.

* lisp/subr.el (set-temporary-overlay-map): Minimize slightly the impact of
the temporary map re-appearing on emulation-mode-map-alists.

* lisp/emacs-lisp/edebug.el (def-edebug-form-spec): Remove, it's been broken
since 22.1.

12 years agoFix silent exit upon assertion violation on MS-Windows.
Eli Zaretskii [Wed, 12 Sep 2012 19:14:02 +0000 (22:14 +0300)]
Fix silent exit upon assertion violation on MS-Windows.

 src/w32proc.c (sys_kill): If PID is our process ID and the signal is
 SIGABRT, call emacs_abort.  Avoids silently exiting upon assertion
 violation.  (Bug#12426)

12 years agoSync with Tramp 2.2.6.
Michael Albinus [Wed, 12 Sep 2012 16:39:10 +0000 (18:39 +0200)]
Sync with Tramp 2.2.6.

* tramp.texi (Bug Reports): Cleanup caches before a test run.

* trampver.texi: Update release number.

12 years agoSync with Tramp 2.2.6.
Michael Albinus [Wed, 12 Sep 2012 16:36:25 +0000 (18:36 +0200)]
Sync with Tramp 2.2.6.

* net/tramp.el (tramp-accept-process-output): Don't use
JUST-THIS-ONE in the XEmacs case.

* net/trampver.el: Update release number.

12 years agoHow to restore a mail from the mailman moderation message
Glenn Morris [Wed, 12 Sep 2012 16:00:11 +0000 (09:00 -0700)]
How to restore a mail from the mailman moderation message

12 years agoTry to keep height of debugger window consistent. (Bug#8789)
Martin Rudalics [Wed, 12 Sep 2012 15:49:17 +0000 (17:49 +0200)]
Try to keep height of debugger window consistent.  (Bug#8789)

* emacs-lisp/debug.el (debugger-previous-window-height): New
variable.
(debug): When debugger-jumping-flag is non-nil try to restore
height of debugger window.  (Bug#8789)

12 years ago* image.c (jpeg_memory_src): Don't assume string len fits in unsigned.
Paul Eggert [Wed, 12 Sep 2012 14:10:42 +0000 (07:10 -0700)]
* image.c (jpeg_memory_src): Don't assume string len fits in unsigned.

12 years ago* texinfo.tex: Merge from gnulib.
Paul Eggert [Wed, 12 Sep 2012 14:03:15 +0000 (07:03 -0700)]
* texinfo.tex: Merge from gnulib.

12 years ago* lisp/emacs-lisp/edebug.el (edebug-enter): Don't mess with
Stefan Monnier [Wed, 12 Sep 2012 13:12:48 +0000 (09:12 -0400)]
* lisp/emacs-lisp/edebug.el (edebug-enter): Don't mess with
overriding-local-map and pre/post-command-hook here.
(edebug-recursive-edit): Do it here instead.
(edebug-outside-unread-command-char): Remove all uses of
unread-command-char.

Fixes: debbugs:12345
12 years ago* src/eval.c: Add `inhibit-debugger'.
Stefan Monnier [Wed, 12 Sep 2012 00:14:50 +0000 (20:14 -0400)]
* src/eval.c: Add `inhibit-debugger'.
(Qinhibit_debugger): New symbol.
(call_debugger): Bind it instead of Qdebug_on_error.
(maybe_call_debugger): Test Vinhibit_debugger.
(syms_of_eval): Define inhibit-debugger.
* src/xdisp.c (set_message): Don't bind Qinhibit_debug_on_message.
(syms_of_xdisp): Remove inhibit-debug-on-message.
* lisp/emacs-lisp/debug.el (debug): Don't bind debug-on-error since
inhibit-debugger is bound instead.

12 years agoAvoid _setjmp/_longjmp problems with local nonvolatile variables.
Paul Eggert [Tue, 11 Sep 2012 23:50:28 +0000 (16:50 -0700)]
Avoid _setjmp/_longjmp problems with local nonvolatile variables.

If a nonvolatile local variable is written before a _longjmp to
the frame containing the variable, and is read after the _longjmp,
the value read is indeterminate.  Some local variables of type
'struct handler' and 'struct catchtag' are used in this way, so
mark each of their slots as volatile if the slot can be set before
_longjmp and read afterwards.
* lisp.h (struct handler): var and chosen_clause are now volatile.
(struct catchtag): val, next, and pdlcount are now volatile.

12 years agoPrefer assignment to memcpy when either will do.
Paul Eggert [Tue, 11 Sep 2012 22:59:50 +0000 (15:59 -0700)]
Prefer assignment to memcpy when either will do.

* lib-src/pop.c (socket_connection) [HAVE_GETADDRINFO]:
* src/bidi.c (bidi_push_it, bidi_pop_it):
* src/fns.c (copy_hash_table):
* src/image.c (define_image_type):
* src/keyboard.c (kbd_buffer_store_event_hold):
* src/process.c (Fprocess_send_eof):
* src/xfaces.c (x_create_gc) [HAVE_NS]:
* src/xgselect.c (xg_select):
Use assignment, not memcpy, as either will do here, and assignment is
more likely to catch type errors.

12 years ago* alloc.c (discard_killed_buffers): Tune and simplify a bit.
Paul Eggert [Tue, 11 Sep 2012 20:35:23 +0000 (13:35 -0700)]
* alloc.c (discard_killed_buffers): Tune and simplify a bit.

Use pointer-to-a-pointer to simplify and avoid a NILP check each
time an item is removed.  No need to mark this function 'inline';
the compiler knows better than we do.

12 years agoFix 2012-09-11T14:06:33Z!bastien1@free.fr.
Bastien Guerry [Tue, 11 Sep 2012 17:43:21 +0000 (19:43 +0200)]
Fix 2012-09-11T14:06:33Z!bastien1@free.fr.

12 years ago* nsterm.h: Add delay parameter to updateFrameSize.
Jan Djärv [Tue, 11 Sep 2012 17:08:02 +0000 (19:08 +0200)]
* nsterm.h: Add delay parameter to updateFrameSize.

* nsterm.m (ns_judge_scroll_bars): Pass NO to updateFrameSize.
(updateFrameSize:): Add delay parameter to updateFrameSize, send it
to change_frame_size.
(windowDidResize:): Pass YES to updateFrameSize.

Fixes: debbugs:12388
12 years ago* subr.el (set-temporary-overlay-map): Add a docstring. (bug#12346)
Bastien Guerry [Tue, 11 Sep 2012 16:45:31 +0000 (18:45 +0200)]
* subr.el (set-temporary-overlay-map): Add a docstring.  (bug#12346)

Bug #12346 is not closed as this commit does not document
`set-temporary-overlay-map' in the manual.

12 years agoDiscard killed buffers from deleted window and frame objects.
Dmitry Antipov [Tue, 11 Sep 2012 15:42:50 +0000 (19:42 +0400)]
Discard killed buffers from deleted window and frame objects.
This reduces an amount of references to killed buffers and
helps GC to reclaim them faster.
* alloc.c (discard_killed_buffers): New function.
(mark_object): Use it for deleted windows and frames.
(mark_object): If symbol's value is set up for a killed buffer
or deleted frame, restore it's global binding.
* data.c (swap_in_global_binding): Add GC notice.
(swap_in_symval_forwarding): Use convenient set_blv_where.
* window.c (wset_next_buffers, wset_prev_buffers): Move ...
* window.h: ... to here.

12 years ago* minibuffer.el (completion-table-subvert): Fix docstring. (bug#12347)
Bastien Guerry [Tue, 11 Sep 2012 14:06:33 +0000 (16:06 +0200)]
* minibuffer.el (completion-table-subvert): Fix docstring.  (bug#12347)

12 years ago* help-fns.el (describe-variable): Fix typo. (bug#12346)
Bastien Guerry [Tue, 11 Sep 2012 13:43:06 +0000 (15:43 +0200)]
* help-fns.el (describe-variable): Fix typo. (bug#12346)

12 years agoAuto-commit of generated files.
Glenn Morris [Tue, 11 Sep 2012 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agognus-notifications.el: add nil checks
Julien Danjou [Tue, 11 Sep 2012 10:08:59 +0000 (10:08 +0000)]
gnus-notifications.el: add nil checks

12 years agoBe more explicit about some Makefile dependencies
Glenn Morris [Tue, 11 Sep 2012 07:45:38 +0000 (00:45 -0700)]
Be more explicit about some Makefile dependencies

* Makefile.in (install-arch-dep, install-arch-indep, install-doc):
Be more explicit about dependencies, for parallel `make install'.

It is not so unreasonable to run `make -j# install' from a clean state
for a self-contained NS build, where the "installation" happens within
the build tree.

12 years agoConvenient macro to check whether the buffer is live.
Dmitry Antipov [Tue, 11 Sep 2012 04:22:03 +0000 (08:22 +0400)]
Convenient macro to check whether the buffer is live.
* buffer.h (BUFFER_LIVE_P): New macro.
* alloc.c, buffer.c, editfns.c, insdel.c, lread.c, marker.c:
* minibuf.c, print.c, process.c, window.c, xdisp.c: Use it.

12 years agoFix wrong overhang display for gstring compositions (Bug#12364).
YAMAMOTO Mitsuharu [Tue, 11 Sep 2012 03:32:41 +0000 (12:32 +0900)]
Fix wrong overhang display for gstring compositions (Bug#12364).

* xdisp.c (right_overwritten, right_overwriting): Also handle gstring
composition cases (Bug#12364).

* xterm.c (x_draw_glyph_string): Avoid overwriting inverted left
overhang of succeeding glyphs overlapping box cursor.

* w32term.c (x_draw_glyph_string): Likewise.

12 years agoSimplify, document, and port floating-point.
Paul Eggert [Tue, 11 Sep 2012 02:28:27 +0000 (19:28 -0700)]
Simplify, document, and port floating-point.

The porting part of this patch fixes bugs on non-IEEE platforms
with frexp, ldexp, logb.
* admin/CPP-DEFINES (HAVE_CBRT, HAVE_LOGB, logb): Remove.
* configure.ac (logb, cbrt): Do not check for these functions,
as they are not being used.
* doc/lispref/numbers.texi (Float Basics, Arithmetic Operations, Math Functions):
Document that / and mod (with floating point arguments), along
with asin, acos, log, log10, expt and sqrt, return special values
instead of signaling exceptions.
(Float Basics): Document that logb operates on the absolute value
of its argument.
(Math Functions): Document that (log ARG BASE) also returns NaN if
BASE is negative.  Document that (expt X Y) returns NaN if X is a
finite negative number and Y a finite non-integer.
* etc/NEWS: Document NaNs versus signaling-error change.
* src/data.c, src/lisp.h (Qdomain_error, Qsingularity_error, Qunderflow_error):
Now static.
* src/floatfns.c: Simplify discussion of functions that Emacs doesn't
support, by removing commented-out code and briefly listing the
C89 functions excluded.  The commented-out stuff was confusing
maintenance, e.g., we thought we needed cbrt but it was commented out.
(logb): Remove decl; no longer needed.
(isfinite): New macro, if not already supplied.
(isnan): Don't replace any existing macro.
(Ffrexp, Fldexp): Define even if !HAVE_COPYSIGN, as frexp and ldexp
are present on all C89 platforms.
(Ffrexp): Do not special-case zero, as frexp does the right thing
for that case.
(Flogb): Do not use logb, as it doesn't have the desired meaning
on hosts that use non-base-2 floating point.  Instead, stick with
frexp, which is C89 anyway.  Do not pass an infinity or a NaN to
frexp, to avoid getting an unspecified result.

12 years ago* xdisp.c (Qinhibit_debug_on_message): Now static.
Paul Eggert [Tue, 11 Sep 2012 01:20:56 +0000 (18:20 -0700)]
* xdisp.c (Qinhibit_debug_on_message): Now static.

12 years ago* nsterm.m (ns_update_begin): Set clip path to whole view by using
Jan Djärv [Mon, 10 Sep 2012 21:01:45 +0000 (23:01 +0200)]
* nsterm.m (ns_update_begin): Set clip path to whole view by using
NSBezierPath.

Fixes: debbugs:12131
12 years ago* progmodes/sql.el: Version 3.1
Michael Mauger [Mon, 10 Sep 2012 19:22:53 +0000 (15:22 -0400)]
* progmodes/sql.el: Version 3.1
(sql-db2-escape-newlines): New variable.
(sql-escape-newlines-filter): Use it.

12 years agolisp/custom.el (custom-theme-load-confirm): Remove unneeded assignment.
Juanma Barranquero [Mon, 10 Sep 2012 15:52:15 +0000 (17:52 +0200)]
lisp/custom.el (custom-theme-load-confirm): Remove unneeded assignment.

12 years ago* vc/diff-mode.el (diff-mode-menu): diff-remove-trailing-whitespace.
Dan Nicolaescu [Mon, 10 Sep 2012 14:40:13 +0000 (10:40 -0400)]
* vc/diff-mode.el (diff-mode-menu): diff-remove-trailing-whitespace.

12 years agoMention diff-remove-trailing-whitespace.
Dan Nicolaescu [Mon, 10 Sep 2012 14:33:08 +0000 (10:33 -0400)]
Mention diff-remove-trailing-whitespace.

12 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Mon, 10 Sep 2012 13:37:53 +0000 (09:37 -0400)]
nt/config.nt: Sync with autogen/config.in.
(FLOAT_CHECK_DOMAIN, HAVE_FMOD, HAVE_FREXP)
(HAVE_INVERSE_HYPERBOLIC, NO_MATHERR): Remove.

12 years agoAuto-commit of generated files.
Glenn Morris [Mon, 10 Sep 2012 10:18:11 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* fns.c (Fdelq, Fdelete): Doc fix.
Chong Yidong [Mon, 10 Sep 2012 03:25:10 +0000 (11:25 +0800)]
* fns.c (Fdelq, Fdelete): Doc fix.

12 years agoParenthesize macro bodies.
Paul Eggert [Mon, 10 Sep 2012 01:17:23 +0000 (18:17 -0700)]
Parenthesize macro bodies.

* lisp.h (XSETINT, XSETCONS, XSETVECTOR, XSETSTRING, XSETSYMBOL)
(XSETFLOAT, XSETMISC): Parenthesize.

12 years agoNew emacs-lisp-byte-code-mode; misc minor changes.
Stefan Monnier [Mon, 10 Sep 2012 01:16:13 +0000 (21:16 -0400)]
New emacs-lisp-byte-code-mode; misc minor changes.
* lisp/emacs-lisp/lisp-mode.el (emacs-list-byte-code-comment-re): New var.
(emacs-lisp-byte-code-comment)
(emacs-lisp-byte-code-syntax-propertize, emacs-lisp-byte-code-mode):
New functions.
(eval-sexp-add-defvars): Don't skip defvars in column >0.
(eval-defun-2): Remove bogus interactive spec.
(lisp-indent-line): Remove redundant whole-exp code, now done in
indent-according-to-mode.
(save-match-data): Remove redundant indent data.
* lisp/emacs-lisp/benchmark.el (benchmark-run, benchmark-run-compiled):
Use `declare'.
* lisp/gnus/qp.el (quoted-printable-decode-region):
Inline+CSE+strength-reduction.

12 years agoImprove robustness of 'make bootstrap'.
Paul Eggert [Mon, 10 Sep 2012 01:03:27 +0000 (18:03 -0700)]
Improve robustness of 'make bootstrap'.

Run autogen.sh after bootstrap-clean, to avoid bzr pull issues.
* INSTALL, README: Document autogen.sh.
* Makefile.in (Makefile): Mark it as precious, since it's updated
atomically.
(MAKE_CONFIG_STATUS): New macro.
(config.status, bootstrap): Use it.  This causes 'make bootstrap'
to run config.status with the --recheck option, which is more
appropriate for a bootstrap.
(bootstrap): Run autogen.sh right after cleaning.  Don't worry
about failures due to missing tools.
* autogen.sh: Exit with status 101 when failing due to missing tools.
* make-dist: Distribute autogen.sh.

Fixes: debbugs:12376
12 years ago* lisp/replace.el (replace-regexp-lax-whitespace): New defcustom.
Juri Linkov [Sun, 9 Sep 2012 22:15:24 +0000 (01:15 +0300)]
* lisp/replace.el (replace-regexp-lax-whitespace): New defcustom.
(replace-lax-whitespace, query-replace-regexp)
(query-replace-regexp-eval, replace-regexp): Doc fix.
(perform-replace, replace-highlight): Let-bind
isearch-lax-whitespace to replace-lax-whitespace and
isearch-regexp-lax-whitespace to replace-regexp-lax-whitespace.

* lisp/isearch.el (isearch-query-replace): Let-bind
replace-lax-whitespace to isearch-lax-whitespace and
replace-regexp-lax-whitespace to
isearch-regexp-lax-whitespace.

Fixes: debbugs:10885
12 years ago* src/lisp.h (make_lisp_ptr): New macro to replace XSET.
Stefan Monnier [Sun, 9 Sep 2012 21:24:04 +0000 (17:24 -0400)]
* src/lisp.h (make_lisp_ptr): New macro to replace XSET.
(XSETCONS, XSETVECTOR, XSETSTRING, XSETSYMBOL, XSETFLOAT, XSETMISC):
Use it.

12 years ago* lisp/eshell/em-unix.el (eshell/sudo): Explicitly drop return value.
Stefan Monnier [Sun, 9 Sep 2012 21:11:14 +0000 (17:11 -0400)]
* lisp/eshell/em-unix.el (eshell/sudo): Explicitly drop return value.

12 years agoAvoid leaving traces of cursor when entering linum-mode.
Eli Zaretskii [Sun, 9 Sep 2012 20:10:36 +0000 (23:10 +0300)]
Avoid leaving traces of cursor when entering linum-mode.

 src/fringe.c (draw_fringe_bitmap_1): Don't reduce the width of the
 left fringe if the window has a left margin.  This avoids leaving
 traces of the cursor because its leftmost pixel is not drawn over.

12 years agoFix bug #12277 with incomplete redisplay of the vertical border between windows.
Eli Zaretskii [Sun, 9 Sep 2012 17:59:50 +0000 (20:59 +0300)]
Fix bug #12277 with incomplete redisplay of the vertical border between windows.

 src/dispnew.c (update_window_line): When the left margin area of a
 screen line is updated, set the redraw_fringe_bitmaps_p flag of
 that screen line.

12 years agoAssume C89 or later for math functions.
Paul Eggert [Sun, 9 Sep 2012 16:06:33 +0000 (09:06 -0700)]
Assume C89 or later for math functions.

This simplifies the code, and makes it a bit smaller and faster,
and (most important) makes it easier to clean up signal handling
since we can stop worring about floating-point exceptions in
library code.  That was a problem before C89, but the problem
went away many years ago on all practical Emacs targets.
* configure.ac (frexp, fmod): Remove checks for these functions,
as we now assume them.
(FLOAT_CHECK_DOMAIN, HAVE_INVERSE_HYPERBOLIC, NO_MATHERR)
(HAVE_EXCEPTION):
Remove; no longer needed.
* admin/CPP-DEFINES (HAVE_FMOD, HAVE_FREXP, FLOAT_CHECK_DOMAIN)
(HAVE_INVERSE_HYPERBOLIC, NO_MATHERR): Remove.
* src/data.c, src/image.c, src/lread.c, src/print.c:
Don't include <math.h>; no longer needed.
* src/data.c, src/floatfns.c (IEEE_FLOATING_POINT): Don't worry that it
might be autoconfigured, as that never happens.
* src/data.c (fmod):
* src/doprnt.c (DBL_MAX_10_EXP):
* src/print.c (DBL_DIG):
Remove.  C89 or later always defines these.
* src/floatfns.c (HAVE_MATHERR, FLOAT_CHECK_ERRNO, FLOAT_CHECK_DOMAIN)
(in_float, float_error_arg, float_error_arg2, float_error_fn_name)
(arith_error, domain_error, domain_error2):
Remove all this pre-C89 cruft.  Do not include <errno.h> as that's
no longer needed -- we simply return what C returns.  All uses removed.
(IN_FLOAT, IN_FLOAT2): Remove.  All uses replaced with
the wrapped code.
(FLOAT_TO_INT, FLOAT_TO_INT2, range_error, range_error2):
Remove.  All uses expanded, as these macros are no longer used
more than once and are now more trouble than they're worth.
(Ftan): Use tan, not sin / cos.
(Flogb): Assume C89 frexp.
(fmod_float): Assume C89 fmod.
(matherr) [HAVE_MATHERR]: Remove; no longer needed.
(init_floatfns): Remove.  All uses removed.

12 years agoCorrect the handling of two c-state-cache state variables.
Alan Mackenzie [Sun, 9 Sep 2012 11:03:37 +0000 (11:03 +0000)]
Correct the handling of two c-state-cache state variables.
cc-engine.el (c-state-cache-init): Initialise
c-state-semi-nonlit-pos-cache\(-limit\)? properly.
(c-record-parse-state-state): record
c-state-semi-nonlit-pos-cache\(-limit\)?.

12 years agoRemove debug prints
Jan Djärv [Sun, 9 Sep 2012 08:44:22 +0000 (10:44 +0200)]
Remove debug prints

12 years ago* lisp/register.el (register-separator): Rename from
Andreas Schwab [Sun, 9 Sep 2012 08:10:56 +0000 (10:10 +0200)]
* lisp/register.el (register-separator): Rename from
separator-register.  All uses changed.  Doc fix.
(register): Fix version.

12 years agoClarify descriptions of delq and delete in Lisp manual.
Chong Yidong [Sun, 9 Sep 2012 07:50:45 +0000 (15:50 +0800)]
Clarify descriptions of delq and delete in Lisp manual.

* doc/lispref/lists.texi (Sets And Lists): Explain that the return value for
delete should be used, like for delq.

12 years ago* minibuf.texi: Fix last change.
Chong Yidong [Sun, 9 Sep 2012 07:09:03 +0000 (15:09 +0800)]
* minibuf.texi: Fix last change.

12 years agoAllow scrolling in y-or-n-p.
Chong Yidong [Sun, 9 Sep 2012 06:43:47 +0000 (14:43 +0800)]
Allow scrolling in y-or-n-p.

* lisp/replace.el (query-replace-map): Bind four new symbols for
requesting window scrolling.

* lisp/subr.el (y-or-n-p): Handle the window-scrolling bindings in
query-replace-map.

* lisp/custom.el (custom-theme-load-confirm): Use y-or-n-p.

* lisp/window.el (scroll-other-window-down): Make the arg optional.

* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Don't bind scrolling keys
since they are now in query-replace-map.

* doc/lispref/minibuf.texi (Yes-or-No Queries): Document recentering and
scrolling in y-or-n-p.  Remove gratuitous example.

* doc/lispref/searching.texi (Search and Replace): Document window scrolling
entries in query-replace-map.

Fixes: debbugs:8948
12 years agoUse quit-window for quitting the *Local Variables* buffer.
Chong Yidong [Sun, 9 Sep 2012 05:50:43 +0000 (13:50 +0800)]
Use quit-window for quitting the *Local Variables* buffer.

* lisp/files.el (hack-local-variables-confirm): Use quit-window to kill
the *Local Variables* buffer.

12 years ago* lisp/progmodes/ruby-mode.el (ruby-toggle-block): Guess the current block,
Dmitry Gutov [Sat, 8 Sep 2012 23:32:25 +0000 (03:32 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-toggle-block): Guess the current block,
not just expect to be at its beginning.  Adjust callees.
Succeed when do-end block has no space before the pipe character.
(ruby-brace-to-do-end): When the original block is one-liner,
convert to multiline.  Reindent the result.

* test/automated/ruby-mode-tests.el:
(ruby-toggle-block-to-multiline): New test.
(ruby-should-indent-buffer, ruby-toggle-block-to-do-end)
(ruby-toggle-block-to-brace): Use buffer-string.

12 years ago* nsterm.m (ns_draw_fringe_bitmap, ns_dumpglyphs_image): Take back
Jan Djärv [Sat, 8 Sep 2012 20:16:39 +0000 (22:16 +0200)]
* nsterm.m (ns_draw_fringe_bitmap, ns_dumpglyphs_image): Take back
compositeToPoint for OSX < 10.6.

Fixes: debbugs:12390
12 years ago* lisp/register.el (increment-register): Route it to `append-to-register',
Jambunathan K [Sat, 8 Sep 2012 20:09:06 +0000 (16:09 -0400)]
* lisp/register.el (increment-register): Route it to `append-to-register',
if register contains text so that `C-x r +' can now be
used for appending to a text register.
(register): New group.
(register-separator): New user option.
(append-to-register, prepend-to-register): Add separator based on
`register-separator.
* doc/emacs/regs.texi (Text Registers): `C-x r +' can now be used instead of
M-x append-to-register.  New option `register-separator'.
(Number Registers): Mention that `C-x r +' is polymorphic.

Fixes: debbugs:12217
12 years agoAWK Mode: make auto-newline work when there's "==" in the pattern.
Alan Mackenzie [Sat, 8 Sep 2012 20:00:13 +0000 (20:00 +0000)]
AWK Mode: make auto-newline work when there's "==" in the pattern.
cc-cmds.el (c-point-syntax): Handle virtual semicolons correctly.
cc-engine.el (c-guess-basic-syntax CASE 5A.3): Test more rigorously for
"=" token.

12 years ago* floatfns.c (Ftan): Use tan (x), not (sin (x) / cos (x)).
Paul Eggert [Sat, 8 Sep 2012 19:57:32 +0000 (12:57 -0700)]
* floatfns.c (Ftan): Use tan (x), not (sin (x) / cos (x)).

This produces more-accurate results.

12 years ago* nsterm.m (updateFrameSize): Call setFrame: on the view when size
Jan Djärv [Sat, 8 Sep 2012 17:22:15 +0000 (19:22 +0200)]
* nsterm.m (updateFrameSize): Call setFrame: on the view when size
changes.

Fixes: debbugs:12088
12 years ago* progmodes/ruby-mode.el (ruby-match-expression-expansion): Shorten
Dmitry Gutov [Sat, 8 Sep 2012 15:34:41 +0000 (19:34 +0400)]
* progmodes/ruby-mode.el (ruby-match-expression-expansion): Shorten
  previous change.

12 years ago* lisp/progmodes/ruby-mode.el (ruby-match-expression-expansion): Only
Dmitry Gutov [Sat, 8 Sep 2012 15:13:14 +0000 (19:13 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-match-expression-expansion): Only
fail when reached LIMIT.

12 years agoDon't bind M-= in Dired.
Chong Yidong [Sat, 8 Sep 2012 14:48:26 +0000 (22:48 +0800)]
Don't bind M-= in Dired.

* lisp/dired.el (dired-mode-map): Don't bind M-=.

* lisp/dired-aux.el (dired-diff): Use backup file as default.

12 years ago* subr.el (add-to-history): Fix delete usage.
Drew Adams [Sat, 8 Sep 2012 14:30:09 +0000 (22:30 +0800)]
* subr.el (add-to-history): Fix delete usage.

Fixes: debbugs:12314
12 years agoIntroduce "raw syntax descriptor" terminology, and use it.
Chong Yidong [Sat, 8 Sep 2012 14:23:01 +0000 (22:23 +0800)]
Introduce "raw syntax descriptor" terminology, and use it.

* syntax.texi (Syntax Table Internals): Define "raw syntax
descriptor" terminology.
(Syntax Descriptors): Mention raw syntax descriptors.

* lisp/subr.el (syntax-after, syntax-class): Doc fix.

* syntax.c (Fstring_to_syntax): Doc fix.

Fixes: debbugs:12383
12 years agoFix handling of debugger window. (Bug#8789)
Martin Rudalics [Sat, 8 Sep 2012 13:28:11 +0000 (15:28 +0200)]
Fix handling of debugger window.  (Bug#8789)

* window.el (display-buffer-in-previous-window): New buffer
display action function.

* emacs-lisp/debug.el (debugger-bury-or-kill): New option.
(debugger-previous-window): New variable.
(debug): Rewrite using display-buffer-in-previous-window,
quit-restore-window and debugger-bury-or-kill.  (Bug#8789)

12 years ago* nsterm.h (EmacsView): Add updateFrameSize.
Jan Djärv [Sat, 8 Sep 2012 12:48:33 +0000 (14:48 +0200)]
* nsterm.h (EmacsView): Add updateFrameSize.

* nsterm.m (ns_clip_to_row): Remove code that deals with drawing fringe
in the internal border.
(x_set_window_size): Remove static variables and their usage.
(ns_redraw_scroll_bars): Fix NSTRACE arg.
(ns_after_update_window_line, ns_draw_fringe_bitmap): Remove
fringe/internal border adjustment.
(ns_draw_fringe_bitmap): Make code more like other terms (xterm.c).
(ns_draw_window_cursor): Remove fringe/internal border adjustment.
(ns_fix_rect_ibw): Remove.
(ns_get_glyph_string_clip_rect): Remove call to ns_fix_rect_ibw.
(ns_dumpglyphs_box_or_relief): Ditto.
(ns_maybe_dumpglyphs_background): Remove fringe/internal border
adjustment.
(ns_dumpglyphs_image): Ditto.
(ns_dumpglyphs_stretch): Fix coding style. Remove fringe/internal
border adjustment.
(ns_set_vertical_scroll_bar): Remove variables barOnVeryLeft/Right and
their usage.  Add fringe_extended_p and its use as in other terms.
(ns_judge_scroll_bars): Code style fix.  Call updateFrameSize if
scroll bar was removed.
(updateFrameSize): New function.
(windowDidResize): Move code to updateFrameSize and call it.

Fixes: debbugs:11052
12 years agoFix setting of environment variables by nt/configure.bat.
Eli Zaretskii [Sat, 8 Sep 2012 11:20:32 +0000 (14:20 +0300)]
Fix setting of environment variables by nt/configure.bat.

 nt/configure.bat <use_extensions>: Don't leave it set in the
 environment when the script exits.

12 years ago* lisp/emacs-lisp/byte-run.el (defun): Tweak message. Simplify code.
Stefan Monnier [Fri, 7 Sep 2012 20:14:55 +0000 (16:14 -0400)]
* lisp/emacs-lisp/byte-run.el (defun): Tweak message.  Simplify code.

12 years ago* progmodes/python.el (python-shell-send-string): When
Matt McClure [Fri, 7 Sep 2012 14:53:15 +0000 (16:53 +0200)]
* progmodes/python.el (python-shell-send-string): When
default-directory is remote, create temp file on remote
filesystem.
(python-shell-send-file): When file is remote, pass local view of
file paths to remote Python interpreter.  (Bug#12340)

12 years ago* src/textprop.c (Fget_text_property): Minor doc fix.
Chong Yidong [Fri, 7 Sep 2012 14:45:28 +0000 (22:45 +0800)]
* src/textprop.c (Fget_text_property): Minor doc fix.

Fixes: debbugs:12323
12 years agoFix doc of local-variable-if-set-p.
Chong Yidong [Fri, 7 Sep 2012 14:15:59 +0000 (22:15 +0800)]
Fix doc of local-variable-if-set-p.

* doc/lispref/variables.texi (Creating Buffer-Local): Fix description of
local-variable-if-set-p.

* src/data.c (Flocal_variable_if_set_p): Doc fix (Bug#10713).

12 years agoMinor doc fix for switch-to-buffer.
Chong Yidong [Fri, 7 Sep 2012 13:53:21 +0000 (21:53 +0800)]
Minor doc fix for switch-to-buffer.

* doc/lispref/windows.texi (Display Action Functions)
(Choosing Window Options): Remove obsolete variable
display-buffer-reuse-frames.
(Switching Buffers): Minor doc tweak for switch-to-buffer.

* lisp/window.el (switch-to-buffer): Doc fix.

Fixes: debbugs:12181
12 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Fri, 7 Sep 2012 12:15:08 +0000 (14:15 +0200)]
nt/config.nt: Sync with autogen/config.in.
(NO_ABORT, SIGNAL_H_AHB): Remove.

12 years agoFix handling of require-final-newline in after-find-file.
Chong Yidong [Fri, 7 Sep 2012 10:53:29 +0000 (18:53 +0800)]
Fix handling of require-final-newline in after-find-file.

* files.el (after-find-file): Don't fail on a read-only buffer if
require-final-newline is `visit' or `visit-save'.

Fixes: debbugs:11156
12 years ago* doc/lispref/eval.texi (Intro Eval): Add index entry for sexp.
Chong Yidong [Fri, 7 Sep 2012 10:36:39 +0000 (18:36 +0800)]
* doc/lispref/eval.texi (Intro Eval): Add index entry for sexp.

Fixes: debbugs:12233
12 years agoRemove obsolete display-buffer-reuse-frames from manuals.
Chong Yidong [Fri, 7 Sep 2012 10:27:11 +0000 (18:27 +0800)]
Remove obsolete display-buffer-reuse-frames from manuals.

* doc/emacs/windows.texi (Window Choice): Don't mention obsolete
display-buffer-reuse-frames.

* doc/lispref/windows.texi (Display Action Functions)
(Choosing Window Options): Remove obsolete variable
display-buffer-reuse-frames.

12 years agoLet ESC ESC quit in read-char-choice, and use it in userlock.el.
Chong Yidong [Fri, 7 Sep 2012 10:19:58 +0000 (18:19 +0800)]
Let ESC ESC quit in read-char-choice, and use it in userlock.el.

* lisp/subr.el (read-char-choice): Allow quitting via ESC ESC.

* lisp/userlock.el (ask-user-about-supersession-threat): Use
read-char-choice.

Fixes: debbugs:12093
12 years agoAuto-commit of generated files.
Glenn Morris [Fri, 7 Sep 2012 10:17:37 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoAdd a utility function buffer-narrowed-p, and use it.
Chong Yidong [Fri, 7 Sep 2012 08:58:31 +0000 (16:58 +0800)]
Add a utility function buffer-narrowed-p, and use it.

* lisp/subr.el (buffer-narrowed-p): New function.

* lisp/ses.el (ses-widen):
* lisp/simple.el (count-words--buffer-message):
* lisp/net/browse-url.el (browse-url-of-buffer): Use it

* lisp/simple.el (count-words-region): Don't signal an error if there
is a non-nil prefix arg and the mark is not set.

* doc/lispref/positions.texi (Narrowing): Document buffer-narrowed-p.