1. 08 Sep, 2012 3 commits
    • Martin Rudalics's avatar
      Fix handling of debugger window. (Bug#8789) · fa2bcf43
      Martin Rudalics authored
      * 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)
    • Jan Djärv's avatar
      * nsterm.h (EmacsView): Add updateFrameSize. · aa7d57c5
      Jan Djärv authored
      * 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
      (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
    • Eli Zaretskii's avatar
      Fix setting of environment variables by nt/configure.bat. · a30cb5dd
      Eli Zaretskii authored
       nt/configure.bat <use_extensions>: Don't leave it set in the
       environment when the script exits.
  2. 07 Sep, 2012 26 commits
    • Stefan Monnier's avatar
    • Matt McClure's avatar
      * progmodes/python.el (python-shell-send-string): When · 9dd40b00
      Matt McClure authored
      default-directory is remote, create temp file on remote
      (python-shell-send-file): When file is remote, pass local view of
      file paths to remote Python interpreter.  (Bug#12340)
    • Chong Yidong's avatar
      * src/textprop.c (Fget_text_property): Minor doc fix. · b4f5313e
      Chong Yidong authored
      Fixes: debbugs:12323
    • Chong Yidong's avatar
      Fix doc of local-variable-if-set-p. · 1a5432bc
      Chong Yidong authored
      * doc/lispref/variables.texi (Creating Buffer-Local): Fix description of
      * src/data.c (Flocal_variable_if_set_p): Doc fix (Bug#10713).
    • Chong Yidong's avatar
      Minor doc fix for switch-to-buffer. · cee2e90d
      Chong Yidong authored
      * doc/lispref/windows.texi (Display Action Functions)
      (Choosing Window Options): Remove obsolete variable
      (Switching Buffers): Minor doc tweak for switch-to-buffer.
      * lisp/window.el (switch-to-buffer): Doc fix.
      Fixes: debbugs:12181
    • Juanma Barranquero's avatar
      nt/config.nt: Sync with autogen/config.in. · 4d64875a
      Juanma Barranquero authored
      (NO_ABORT, SIGNAL_H_AHB): Remove.
    • Chong Yidong's avatar
      Fix handling of require-final-newline in after-find-file. · 0d7eb2ea
      Chong Yidong authored
      * 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
    • Chong Yidong's avatar
      * doc/lispref/eval.texi (Intro Eval): Add index entry for sexp. · 0a6bdaa1
      Chong Yidong authored
      Fixes: debbugs:12233
    • Chong Yidong's avatar
      Remove obsolete display-buffer-reuse-frames from manuals. · 14ba4cf3
      Chong Yidong authored
      * doc/emacs/windows.texi (Window Choice): Don't mention obsolete
      * doc/lispref/windows.texi (Display Action Functions)
      (Choosing Window Options): Remove obsolete variable
    • Chong Yidong's avatar
      Let ESC ESC quit in read-char-choice, and use it in userlock.el. · 145823ec
      Chong Yidong authored
      * lisp/subr.el (read-char-choice): Allow quitting via ESC ESC.
      * lisp/userlock.el (ask-user-about-supersession-threat): Use
      Fixes: debbugs:12093
    • Glenn Morris's avatar
      Auto-commit of generated files. · 843f2634
      Glenn Morris authored
    • Chong Yidong's avatar
      Add a utility function buffer-narrowed-p, and use it. · e5c2edf7
      Chong Yidong authored
      * 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.
    • Paul Eggert's avatar
      * emacs.c (main): Convert three 'signal' calls to 'sigaction' calls. · eddb36a7
      Paul Eggert authored
      Problem introduced when merging patches.  Noted by Eli Zaretskii in
    • Paul Eggert's avatar
      More signal-handler cleanup. · 1a4f1e9b
      Paul Eggert authored
      * configure.ac (FLOAT_CHECK_DOMAIN): Comment fix (Bug#12327).
      * src/floatfns.c: Comment fix.
      * src/lisp.h (force_auto_save_soon): Declare regardless of SIGDANGER.
      SIGDANGER might not be in scope so "#ifdef SIGDANGER" is not right,
      and anyway the declaration is harmless even if SIGDANGER is not defined.
      * src/syssignal.h (SIGIO): Also #undef if (! defined FIONREAD ||
      defined BROKEN_FIONREAD).  systty.h formerly did this, but other
      source files not surprisingly expected syssignal.h to define, or
      not define, SIGIO, and it's cleaner to do it that way, for consistency.
      Include <sys/ioctl.h>, for FIONREAD.
      * src/systty.h (SIGIO): Do not #undef here; it's now syssignal.h's job.
      This eliminates a problem whereby other files mysteriously had
      to include "syssignal.h" before including "systty.h" if they
      wanted to use "#ifdef SIGIO".
    • Chong Yidong's avatar
    • Eli Zaretskii's avatar
      MS-Windows followup for 2012-09-07T01:27:44Z!eggert@cs.ucla.edu, signal-handler cleanup. · 3e6d6928
      Eli Zaretskii authored
       src/w32proc.c (sigaction): New function, emulates Posix 'sigaction'.
       src/w32.c (sigemptyset): Empty the set.
       (sigsetmask, sigmask, sigblock, sigunblock): Remove unused functions.
       nt/inc/ms-w32.h (struct sigaction): Declare sa_handler __cdecl.
      Fixes: debbugs:12327
    • Eli Zaretskii's avatar
      Fix compilation failure under ENABLE_CHECKING. · bc8000ff
      Eli Zaretskii authored
       src/alloc.c [ENABLE_CHECKING]: Include signal.h, since we need SIGABRT.
      Fixes: debbugs:12327
    • Dmitry Antipov's avatar
      * alloc.c (mark_buffer): Revert unsafe marking optimization. · b4fa72f2
      Dmitry Antipov authored
      (mark_object): Likewise for frame objects.
    • Paul Eggert's avatar
      * syssignal.h (handle_on_main_thread): Always declare, · 30730c93
      Paul Eggert authored
      even if FORWARD_SIGNAL_TO_MAIN_THREAD is not defined.
      This ports to platforms without HAVE_PTHREAD.
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el · 8f06acce
      Dmitry Gutov authored
      (ruby-beginning-of-defun): Only consider 3 keywords defun beginners.
      (ruby-end-of-defun): Expect that the point is at the beginning of
      the defun.
    • Chong Yidong's avatar
      Fix for invoking C-h c from the minibuffer. · 74c582e6
      Chong Yidong authored
      * help.el (describe-key-briefly): Allow the message to be seen
      when invoked from the minibuffer.
      Fixes: debbugs:7014
    • Chong Yidong's avatar
      Add a couple of xrefs to the Lisp manual. · 52404181
      Chong Yidong authored
      * markers.texi (Moving Markers): Add xref to Point.
      * syntax.texi (Low-Level Parsing): Add xref to Parser State.
      Fixes: debbugs:12269
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-end-of-defun) · d81ceaaf
      Dmitry Gutov authored
      (ruby-beginning-of-defun): Simplify, allow indentation before
      block beginning and end keywords.  Also, fix accidental change in the former.
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Add pieces from · 0ba2d4b6
      Dmitry Gutov authored
      ruby-beginning-of-indent, simplify, allow all keywords to have
      indentation before them.
      (ruby-beginning-of-indent): Adjust for above.  Search until the
      found point is not inside a string or comment.
      (ruby-font-lock-keywords): Allow symbols to start with "@"
      character, give them higher priority than variables.
      (ruby-font-lock-syntactic-keywords): Remove the "not comments"
      matchers.  Expression expansions are not comments when inside a
      string, and there comment syntax status is irrelevant.
      (ruby-match-expression-expansion): New function.  Check that
      expression expansion is inside a string, and it's not escaped.
      (ruby-font-lock-keywords): Use it.
      * test/automated/ruby-mode-tests.el: New tests (Bug#11613).
    • Chong Yidong's avatar
      Partially revert last Gnus merge. · 1d43a35f
      Chong Yidong authored
      The add-face function has been added gnus-compat.el, but is not in
      Emacs; this leaves Gnus in an unusable state.
      * lisp/gnus/gnus-salt.el (gnus-tree-highlight-node):
      * lisp/gnus/gnus-sum.el (gnus-summary-highlight-line):
      * lisp/gnus/gnus-group.el (gnus-group-highlight-line): Revert use of add-face.
      * lisp/gnus/gnus-util.el (gnus-put-text-property-excluding-characters-with-faces): Restore.
    • Paul Eggert's avatar
      Signal-handler cleanup. · 2fe28299
      Paul Eggert authored
      Emacs's signal handlers were written in the old 4.2BSD style with
      sigblock and sigmask and so forth, and this led to some
      inefficiencies and confusion.  Rewrite these to use
      pthread_sigmask etc. without copying signal sets around.  Also,
      get rid of the confusing macros 'SIGNAL_THREAD_CHECK' and
      'signal', and instead use functions that do not attempt to take
      over the system name space.  This patch causes Emacs's text
      segment to shrink by 0.7% on my platform, Fedora 17 x86-64.
      * configure.ac (PTY_OPEN, PTY_TTY_NAME_SPRINTF):
      Adjust to syssignal.h changes.
      (SIGNAL_H_AB): Remove; no longer needed.
      * src/alloc.c, src/emacsgtkfixed.c, src/nsfns.m, src/widget.c, src/xmenu.c:
      Do not include <signal.h> or "syssignal.h", as these
      modules do not use signals.
      * src/atimer.c, src/callproc.c, src/data.c, src/dispnew.c, src/emacs.c:
      * src/floatfns.c, src/gtkutil.c, src/keyboard.c, src/process.c, src/sound.c:
      * src/sysdep.c, src/term.c, src/xterm.c:
      Do not include <signal.h>, as "syssignal.h" does that for us now.
      * src/atimer.c (sigmask_atimers): New function.
      (block_atimers, unblock_atimers): New functions,
      replacing the old macros BLOCK_ATIMERS and UNBLOCK_ATIMERS.
      All uses replaced.
      * src/conf_post.h [SIGNAL_H_AHB]: Do not include <signal.h>;
      no longer needed here.
      * src/emacs.c (main): Inspect existing signal handler with sigaction,
      so that there's	no need to block and unblock SIGHUP.
      * src/sysdep.c (struct save_signal): New member 'action', replacing
      old member 'handler'.
      (save_signal_handlers, restore_signal_handlers):
      Use sigaction instead of 'signal' to save and restore.
      (get_set_sighandler, set_sighandler) [!WINDOWSNT]:
      New function.  All users of 'signal' modified to use set_sighandler
      if they're writeonly, and to use sys_signal if they're read+write.
      (emacs_sigaction_init, forwarded_signal): New functions.
      (sys_signal): Remove.  All uses replaced by calls to sigaction
      and emacs_sigaction_init, or by direct calls to 'signal'.
      (sys_sigmask) [!__GNUC__]: Remove; no longer needed.
      (sys_sigblock, sys_sigunblock, sys_sigsetmask): Remove;
      all uses replaced by pthread_sigmask etc. calls.
      * src/syssignal.h: Include <signal.h>.
      (emacs_sigaction_init, forwarded_signal): New decls.
      (SIGMASKTYPE): Remove.  All uses replaced by its definiens, sigset_t.
      (SIGEMPTYMASK): Remove; all uses replaced by its definiens, empty_mask.
      (sigmask, sys_sigmask): Remove; no longer needed.
      (sigpause): Remove.  All uses replaced by its definiens, sigsuspend.
      (sigblock, sigunblock, sigfree):
      (sigsetmask) [!defined sigsetmask]:
      Remove.  All uses replaced by pthread_sigmask.
      (signal): Remove.  Its remaining uses (with SIG_DFL and SIG_IGN)
      no longer need to be replaced, and its typical old uses
      are now done via emacs_sigaction_init and sigaction.
      (sys_sigblock, sys_sigunblock, sys_sigsetmask): Remove decls.
      (sys_sigdel): Remove; unused.
      (NSIG): Remove a FIXME; the code's fine.  Remove an unnecessary ifdef.
      Fixes: debbugs:12327
  3. 06 Sep, 2012 11 commits
    • Gnus developers's avatar
      Misc changes made in Gnus master · 845ce106
      Gnus developers authored
      Use combining faces for highlighting.
      Change ephemeral Gnus group names to be prettier.
      gnus-util.el: Fix compilation error on XEmacs 21.4.
    • Eli Zaretskii's avatar
      Fix bug #12327 with SIGCHLD handling on Windows and some other systems. · 0216c128
      Eli Zaretskii authored
       src/process.c (CAN_HANDLE_MULTIPLE_CHILDREN): Fix a typo that broke
       SIGCHLD handling on systems that don't have WNOHANG.
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-macs.el (cl--do-arglist): Understand _ on &key args. · d458ef98
      Stefan Monnier authored
      (cl--make-usage-args): Strip _ from argument names.
      Fixes: debbugs:12367
    • Chong Yidong's avatar
      Remove references to obsolete variable speedbar-key-map. · fcbfbdea
      Chong Yidong authored
      * speedbar.el (speedbar-update-flag, speedbar-mode): Remove
      references to obsolete variable speedbar-key-map.
    • Rüdiger Sonderfeld's avatar
      Fix use of obsolete variables in vhdl-mode.el. · 20367d28
      Rüdiger Sonderfeld authored
      * progmodes/vhdl-mode.el (vhdl-speedbar-initialize): Don't use
      obsolete alias speedbar-key-map.
      (vhdl-doc-variable, vhdl-doc-mode): Use called-interactively-p.
      (vhdl-index-menu-init): Don't use obsolete variable font-lock-maximum-size.
    • Chong Yidong's avatar
    • Dmitry Antipov's avatar
      Explicitly mark buffer_defaults and buffer_local_symbols. · c752cfa9
      Dmitry Antipov authored
      * alloc.c (Fgarbage_collect): Mark buffer_defaults and
      mark_local_symbols here.
      (mark_object): If GC_CHECK_MARKED_OBJECTS, simplify checking
      since special buffers aren't marked here any more.
      (allocate_buffer): Chain new buffer with all_buffers here...
      * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): ...and
      not here.
      (Vbuffer_defaults, Vbuffer_local_symbols): Remove.
      (syms_of_buffer): Remove staticpro of the above.
      (init_buffer_once): Set names for buffer_defaults and
    • Juri Linkov's avatar
      * lisp/replace.el (replace-lax-whitespace): New defcustom. · 826b3235
      Juri Linkov authored
      (query-replace, query-replace-regexp, query-replace-regexp-eval)
      (replace-string, replace-regexp): Mention it in docstrings.
      (perform-replace, replace-highlight): Let-bind
      isearch-lax-whitespace and isearch-regexp-lax-whitespace according
      to the values of replace-lax-whitespace and regexp-flag.
      Don't let-bind search-whitespace-regexp. 
      * lisp/isearch.el (isearch-query-replace): Let-bind
      replace-lax-whitespace instead of let-binding
      replace-search-function and replace-re-search-function.
      (isearch-lazy-highlight-search): Let-bind isearch-lax-whitespace
      and isearch-regexp-lax-whitespace to lazy-highlight variables.
      (isearch-toggle-symbol): Set isearch-regexp to nil
      in isearch-word mode (like in isearch-toggle-word).
      Fixes: debbugs:10885
    • Juri Linkov's avatar
      Use `isearch-search-fun' in `perform-replace' (bug#10885, bug#10887). · 1ec5e41d
      Juri Linkov authored
      * lisp/replace.el (replace-search-function)
      (replace-re-search-function): Set default values to nil.
      (perform-replace): Let-bind isearch-related variables based on
      replace-related values, call `isearch-search-fun' and let-bind
      the result to `search-function'.  Remove code that sets
      `search-function' and `search-string' separately for
      (replace-highlight): Add new argument `delimited-flag' and
      rename other arguments to the names used in `perform-replace'.
      Let-bind `isearch-word' to the argument `delimited-flag'.
    • Paul Eggert's avatar
      Use bool for booleans in font-related modules. · a864ef14
      Paul Eggert authored
      * font.c (font_intern_prop, font_style_to_value)
      (font_style_symbolic, font_parse_xlfd, font_parse_fcname)
      (generate_otf_features, font_check_otf_features, font_check_otf)
      (font_match_p, font_list_entities, font_at):
      * fontset.c (fontset_id_valid_p, reorder_font_vector
      (fontset_find_font, Fset_fontset_font)
      (face_suitable_for_char_p) [0]:
      * ftfont.c (fc_initialized, ftfont_get_open_type_spec)
      (ftfont_open, ftfont_text_extents, ftfont_check_otf):
      (m17n_flt_initialized, ftfont_shape_by_flt):
      * ftxfont.c (ftxfont_draw_bitmap, ftxfont_draw):
      * nsfont.m (nsfont_draw):
      * w32font.c (w32font_draw):
      * w32term.c (x_draw_glyphless_glyph_string_foreground):
      Use bool for booleans.
      * font.h: Adjust to above API changes.
      (struct font, struct font_driver, struct font_driver_list):
      Use bool for booleans.
      (struct font): Remove useless member encoding_type.
      All users removed.
      * fontset.c, xftfont.c: Omit unnecessary static decls.
    • Dmitry Antipov's avatar
      * alloc.c (mark_object): Revert window marking code · 0699fc18
      Dmitry Antipov authored
      since it's unsafe for the Fset_window_configuration.