aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * minibuffer.el (completion-table-subvert): Fix docstring. (bug#12347)Bastien Guerry2012-09-112-4/+9
|
* * help-fns.el (describe-variable): Fix typo. (bug#12346)Bastien Guerry2012-09-112-1/+5
|
* Auto-commit of generated files.Glenn Morris2012-09-112-9/+3
|
* gnus-notifications.el: add nil checksJulien Danjou2012-09-112-2/+9
|
* Be more explicit about some Makefile dependenciesGlenn Morris2012-09-112-3/+8
| | | | | | | | | * 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.
* Convenient macro to check whether the buffer is live.Dmitry Antipov2012-09-1113-40/+50
| | | | | | * 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.
* Fix wrong overhang display for gstring compositions (Bug#12364).YAMAMOTO Mitsuharu2012-09-114-2/+16
| | | | | | | | | | * 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.
* Simplify, document, and port floating-point.Paul Eggert2012-09-1012-236/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * xdisp.c (Qinhibit_debug_on_message): Now static.Paul Eggert2012-09-102-1/+5
|
* * nsterm.m (ns_update_begin): Set clip path to whole view by usingJan Djärv2012-09-102-0/+14
| | | | | | NSBezierPath. Fixes: debbugs:12131
* * progmodes/sql.el: Version 3.1Michael Mauger2012-09-103-13/+43
| | | | | (sql-db2-escape-newlines): New variable. (sql-escape-newlines-filter): Use it.
* lisp/custom.el (custom-theme-load-confirm): Remove unneeded assignment.Juanma Barranquero2012-09-102-1/+5
|
* * vc/diff-mode.el (diff-mode-menu): diff-remove-trailing-whitespace.Dan Nicolaescu2012-09-102-0/+7
|
* Mention diff-remove-trailing-whitespace.Dan Nicolaescu2012-09-101-0/+3
|
* nt/config.nt: Sync with autogen/config.in.Juanma Barranquero2012-09-102-16/+6
| | | | | (FLOAT_CHECK_DOMAIN, HAVE_FMOD, HAVE_FREXP) (HAVE_INVERSE_HYPERBOLIC, NO_MATHERR): Remove.
* Auto-commit of generated files.Glenn Morris2012-09-102-53/+1
|
* * fns.c (Fdelq, Fdelete): Doc fix.Chong Yidong2012-09-102-12/+25
|
* Parenthesize macro bodies.Paul Eggert2012-09-092-7/+12
| | | | | * lisp.h (XSETINT, XSETCONS, XSETVECTOR, XSETSTRING, XSETSYMBOL) (XSETFLOAT, XSETMISC): Parenthesize.
* New emacs-lisp-byte-code-mode; misc minor changes.Stefan Monnier2012-09-097-31/+101
| | | | | | | | | | | | | | | | * 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.
* Improve robustness of 'make bootstrap'.Paul Eggert2012-09-096-20/+45
| | | | | | | | | | | | | | | | | 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
* * lisp/replace.el (replace-regexp-lax-whitespace): New defcustom.Juri Linkov2012-09-103-12/+33
| | | | | | | | | | | | | | | (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
* * src/lisp.h (make_lisp_ptr): New macro to replace XSET.Stefan Monnier2012-09-092-68/+74
| | | | | (XSETCONS, XSETVECTOR, XSETSTRING, XSETSYMBOL, XSETFLOAT, XSETMISC): Use it.
* * lisp/eshell/em-unix.el (eshell/sudo): Explicitly drop return value.Stefan Monnier2012-09-093-10/+14
|
* Avoid leaving traces of cursor when entering linum-mode.Eli Zaretskii2012-09-092-1/+12
| | | | | | 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.
* Fix bug #12277 with incomplete redisplay of the vertical border between windows.Eli Zaretskii2012-09-092-0/+11
| | | | | | 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.
* Assume C89 or later for math functions.Paul Eggert2012-09-0913-416/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Correct the handling of two c-state-cache state variables.Alan Mackenzie2012-09-092-0/+11
| | | | | | | 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\)?.
* Remove debug printsJan Djärv2012-09-091-14/+0
|
* * lisp/register.el (register-separator): Rename fromAndreas Schwab2012-09-093-8/+15
| | | | | separator-register. All uses changed. Doc fix. (register): Fix version.
* Clarify descriptions of delq and delete in Lisp manual.Chong Yidong2012-09-092-12/+24
| | | | | * doc/lispref/lists.texi (Sets And Lists): Explain that the return value for delete should be used, like for delq.
* * minibuf.texi: Fix last change.Chong Yidong2012-09-091-1/+0
|
* Allow scrolling in y-or-n-p.Chong Yidong2012-09-0910-99/+105
| | | | | | | | | | | | | | | | | | | | | | | * 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
* Use quit-window for quitting the *Local Variables* buffer.Chong Yidong2012-09-092-33/+44
| | | | | * lisp/files.el (hack-local-variables-confirm): Use quit-window to kill the *Local Variables* buffer.
* * lisp/progmodes/ruby-mode.el (ruby-toggle-block): Guess the current block,Dmitry Gutov2012-09-094-47/+86
| | | | | | | | | | | | 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.
* * nsterm.m (ns_draw_fringe_bitmap, ns_dumpglyphs_image): Take backJan Djärv2012-09-082-4/+40
| | | | | | compositeToPoint for OSX < 10.6. Fixes: debbugs:12390
* * lisp/register.el (increment-register): Route it to `append-to-register',Jambunathan K2012-09-085-20/+94
| | | | | | | | | | | | | | 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
* AWK Mode: make auto-newline work when there's "==" in the pattern.Alan Mackenzie2012-09-083-9/+20
| | | | | | 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.
* * floatfns.c (Ftan): Use tan (x), not (sin (x) / cos (x)).Paul Eggert2012-09-082-2/+7
| | | | This produces more-accurate results.
* * nsterm.m (updateFrameSize): Call setFrame: on the view when sizeJan Djärv2012-09-082-0/+7
| | | | | | changes. Fixes: debbugs:12088
* * progmodes/ruby-mode.el (ruby-match-expression-expansion): ShortenDmitry Gutov2012-09-081-2/+1
| | | | previous change.
* * lisp/progmodes/ruby-mode.el (ruby-match-expression-expansion): OnlyDmitry Gutov2012-09-083-4/+13
| | | | fail when reached LIMIT.
* Don't bind M-= in Dired.Chong Yidong2012-09-084-38/+38
| | | | | | * lisp/dired.el (dired-mode-map): Don't bind M-=. * lisp/dired-aux.el (dired-diff): Use backup file as default.
* * subr.el (add-to-history): Fix delete usage.Drew Adams2012-09-082-1/+5
| | | | Fixes: debbugs:12314
* Introduce "raw syntax descriptor" terminology, and use it.Chong Yidong2012-09-086-32/+62
| | | | | | | | | | | | * 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
* Fix handling of debugger window. (Bug#8789)Martin Rudalics2012-09-084-80/+174
| | | | | | | | | | * 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)
* * nsterm.h (EmacsView): Add updateFrameSize.Jan Djärv2012-09-083-190/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix setting of environment variables by nt/configure.bat.Eli Zaretskii2012-09-082-0/+7
| | | | | nt/configure.bat <use_extensions>: Don't leave it set in the environment when the script exits.
* * lisp/emacs-lisp/byte-run.el (defun): Tweak message. Simplify code.Stefan Monnier2012-09-072-8/+11
|
* * progmodes/python.el (python-shell-send-string): WhenMatt McClure2012-09-072-3/+21
| | | | | | | 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)
* * src/textprop.c (Fget_text_property): Minor doc fix.Chong Yidong2012-09-072-1/+4
| | | | Fixes: debbugs:12323