1. 08 Sep, 2012 12 commits
  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
      filesystem.
      (python-shell-send-file): When file is remote, pass local view of
      file paths to remote Python interpreter.  (Bug#12340)
      9dd40b00
    • Chong Yidong's avatar
      * src/textprop.c (Fget_text_property): Minor doc fix. · b4f5313e
      Chong Yidong authored
      Fixes: debbugs:12323
      b4f5313e
    • 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
      local-variable-if-set-p.
      
      * src/data.c (Flocal_variable_if_set_p): Doc fix (Bug#10713).
      1a5432bc
    • 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
      display-buffer-reuse-frames.
      (Switching Buffers): Minor doc tweak for switch-to-buffer.
      
      * lisp/window.el (switch-to-buffer): Doc fix.
      
      Fixes: debbugs:12181
      cee2e90d
    • Juanma Barranquero's avatar
      nt/config.nt: Sync with autogen/config.in. · 4d64875a
      Juanma Barranquero authored
      (NO_ABORT, SIGNAL_H_AHB): Remove.
      4d64875a
    • 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
      0d7eb2ea
    • Chong Yidong's avatar
      * doc/lispref/eval.texi (Intro Eval): Add index entry for sexp. · 0a6bdaa1
      Chong Yidong authored
      Fixes: debbugs:12233
      0a6bdaa1
    • 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
      display-buffer-reuse-frames.
      
      * doc/lispref/windows.texi (Display Action Functions)
      (Choosing Window Options): Remove obsolete variable
      display-buffer-reuse-frames.
      14ba4cf3
    • 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
      read-char-choice.
      
      Fixes: debbugs:12093
      145823ec
    • Glenn Morris's avatar
      Auto-commit of generated files. · 843f2634
      Glenn Morris authored
      843f2634
    • 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.
      e5c2edf7
    • 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
      <http://bugs.gnu.org/12327#67>.
      eddb36a7
    • 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".
      1a4f1e9b
    • 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
      3e6d6928
    • 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
      bc8000ff
    • Dmitry Antipov's avatar
      * alloc.c (mark_buffer): Revert unsafe marking optimization. · b4fa72f2
      Dmitry Antipov authored
      (mark_object): Likewise for frame objects.
      b4fa72f2
    • 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.
      30730c93
    • 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.
      8f06acce
    • 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
      74c582e6
    • 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
      52404181
    • 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.
      d81ceaaf
    • 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-syntax-propertize-function)
      (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).
      0ba2d4b6
    • 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.
      1d43a35f
    • 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
      2fe28299
  3. 06 Sep, 2012 2 commits