1. 11 Sep, 2012 13 commits
    • Bastien Guerry's avatar
      9011078f
    • Jan Djärv's avatar
      * nsterm.h: Add delay parameter to updateFrameSize. · c4c9756b
      Jan Djärv authored
      * 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
      c4c9756b
    • Bastien Guerry's avatar
      * subr.el (set-temporary-overlay-map): Add a docstring. (bug#12346) · baa26ea0
      Bastien Guerry authored
      Bug #12346 is not closed as this commit does not document
      `set-temporary-overlay-map' in the manual.
      baa26ea0
    • Dmitry Antipov's avatar
      Discard killed buffers from deleted window and frame objects. · d73e321c
      Dmitry Antipov authored
      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.
      d73e321c
    • Bastien Guerry's avatar
    • Bastien Guerry's avatar
    • Glenn Morris's avatar
      Auto-commit of generated files. · 2c98a625
      Glenn Morris authored
      2c98a625
    • Julien Danjou's avatar
      gnus-notifications.el: add nil checks · 95729d50
      Julien Danjou authored
      95729d50
    • Glenn Morris's avatar
      Be more explicit about some Makefile dependencies · 9d9edd4b
      Glenn Morris authored
      * 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.
      9d9edd4b
    • Dmitry Antipov's avatar
      Convenient macro to check whether the buffer is live. · e578f381
      Dmitry Antipov authored
      * 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.
      e578f381
    • YAMAMOTO Mitsuharu's avatar
      Fix wrong overhang display for gstring compositions (Bug#12364). · 3057e615
      YAMAMOTO Mitsuharu authored
      * 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.
      3057e615
    • Paul Eggert's avatar
      Simplify, document, and port floating-point. · c990426a
      Paul Eggert authored
      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.
      c990426a
    • Paul Eggert's avatar
      6fda35f2
  2. 10 Sep, 2012 11 commits
  3. 09 Sep, 2012 13 commits
    • Juri Linkov's avatar
      * lisp/replace.el (replace-regexp-lax-whitespace): New defcustom. · 3231d532
      Juri Linkov authored
      (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
      3231d532
    • Stefan Monnier's avatar
      * src/lisp.h (make_lisp_ptr): New macro to replace XSET. · e7032e7c
      Stefan Monnier authored
      (XSETCONS, XSETVECTOR, XSETSTRING, XSETSYMBOL, XSETFLOAT, XSETMISC):
      Use it.
      e7032e7c
    • Stefan Monnier's avatar
    • Eli Zaretskii's avatar
      Avoid leaving traces of cursor when entering linum-mode. · aba05ce9
      Eli Zaretskii authored
       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.
      aba05ce9
    • Eli Zaretskii's avatar
      Fix bug #12277 with incomplete redisplay of the vertical border between windows. · e9957956
      Eli Zaretskii authored
       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.
      e9957956
    • Paul Eggert's avatar
      Assume C89 or later for math functions. · f6196b87
      Paul Eggert authored
      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.
      f6196b87
    • Alan Mackenzie's avatar
      Correct the handling of two c-state-cache state variables. · 8ed43f15
      Alan Mackenzie authored
      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\)?.
      8ed43f15
    • Jan Djärv's avatar
      Remove debug prints · c2cbbdd1
      Jan Djärv authored
      c2cbbdd1
    • Andreas Schwab's avatar
      * lisp/register.el (register-separator): Rename from · bfabf70a
      Andreas Schwab authored
      separator-register.  All uses changed.  Doc fix.
      (register): Fix version.
      bfabf70a
    • Chong Yidong's avatar
      Clarify descriptions of delq and delete in Lisp manual. · bb6b0efc
      Chong Yidong authored
      * doc/lispref/lists.texi (Sets And Lists): Explain that the return value for
      delete should be used, like for delq.
      bb6b0efc
    • Chong Yidong's avatar
      * minibuf.texi: Fix last change. · e4e55af1
      Chong Yidong authored
      e4e55af1
    • Chong Yidong's avatar
      Allow scrolling in y-or-n-p. · 011474aa
      Chong Yidong authored
      * 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
      011474aa
    • Chong Yidong's avatar
      Use quit-window for quitting the *Local Variables* buffer. · a8b7cd8d
      Chong Yidong authored
      * lisp/files.el (hack-local-variables-confirm): Use quit-window to kill
      the *Local Variables* buffer.
      a8b7cd8d
  4. 08 Sep, 2012 3 commits
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-toggle-block): Guess the current block, · c3268831
      Dmitry Gutov authored
      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.
      c3268831
    • Jan Djärv's avatar
      * nsterm.m (ns_draw_fringe_bitmap, ns_dumpglyphs_image): Take back · 9d7f1863
      Jan Djärv authored
      compositeToPoint for OSX < 10.6.
      
      Fixes: debbugs:12390
      9d7f1863
    • Jambunathan K's avatar
      * lisp/register.el (increment-register): Route it to `append-to-register', · 0979429b
      Jambunathan K authored
      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
      0979429b