]> code.delx.au - gnu-emacs/log
gnu-emacs
11 years agoMerge from emacs-24; up to 2012-05-07T21:26:08Z!rgm@gnu.org
Glenn Morris [Fri, 28 Sep 2012 16:02:31 +0000 (09:02 -0700)]
Merge from emacs-24; up to 2012-05-07T21:26:08Z!rgm@gnu.org

11 years ago* lisp/type-break.el: Use lexical-binding.
Stefan Monnier [Fri, 28 Sep 2012 15:17:08 +0000 (11:17 -0400)]
* lisp/type-break.el: Use lexical-binding.
(type-break-mode): Use define-minor-mode.

11 years agoRename "Automatic Redisplay" entry in Lisp backtrace.
Eli Zaretskii [Fri, 28 Sep 2012 14:10:41 +0000 (16:10 +0200)]
Rename "Automatic Redisplay" entry in Lisp backtrace.

 src/xdisp.c (syms_of_xdisp) <Qredisplay_internal>: Rename from
 Qautomatic_redisplay and change the symbol name.  All users changed.

11 years agoUse minibuffer-message in pcomplete-show-completions
Leo Liu [Fri, 28 Sep 2012 13:42:19 +0000 (21:42 +0800)]
Use minibuffer-message in pcomplete-show-completions

11 years agoido.el (ido-set-matches-1): Fix 2012-09-11 change
Leo Liu [Fri, 28 Sep 2012 13:38:26 +0000 (21:38 +0800)]
ido.el (ido-set-matches-1): Fix 2012-09-11 change

11 years ago* lisp/emacs-lisp/pcase.el (pcase--mark-used): New.
Stefan Monnier [Fri, 28 Sep 2012 12:18:38 +0000 (08:18 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--mark-used): New.
(pcase--u1): Use it.
* lisp/custom.el (load-theme): Set buffer-file-name so the load is recorded
in load-history with the right file name.

Fixes: debbugs:12512
11 years ago* doc-view.el (doc-view-current-cache-doc-pdf): New function.
Tassilo Horn [Fri, 28 Sep 2012 10:05:46 +0000 (12:05 +0200)]
* doc-view.el (doc-view-current-cache-doc-pdf): New function.
(doc-view-doc->txt, doc-view-convert-current-doc): Use it.
(doc-view-get-bounding-box): Make bounding box slicing work for
ODF and DVI documents.

11 years ago* profiler.c (sigprof_handler): Fix race condition.
Tomohiro Matsuyama [Fri, 28 Sep 2012 09:34:20 +0000 (18:34 +0900)]
* profiler.c (sigprof_handler): Fix race condition.

11 years agoDon't autoload defcustoms in type-break.el
Glenn Morris [Fri, 28 Sep 2012 08:01:08 +0000 (01:01 -0700)]
Don't autoload defcustoms in type-break.el

* type-break.el (type-break-mode, type-break-interval)
(type-break-good-rest-interval, type-break-keystroke-threshold):
No need to autoload.
(type-break-good-rest-interval, type-break-keystroke-threshold):
Add :set-after.

11 years agoComment
Glenn Morris [Fri, 28 Sep 2012 07:45:18 +0000 (00:45 -0700)]
Comment

11 years ago* src/lread.c (lisp_file_lexically_bound_p): Handle #! lines.
Glenn Morris [Fri, 28 Sep 2012 07:40:42 +0000 (00:40 -0700)]
* src/lread.c (lisp_file_lexically_bound_p): Handle #! lines.

Fixes: debbugs:12528
11 years ago* verilog-mode.el (verilog-auto-inst-interfaced-ports): Add :version tag.
Chong Yidong [Fri, 28 Sep 2012 05:19:55 +0000 (13:19 +0800)]
* verilog-mode.el (verilog-auto-inst-interfaced-ports): Add :version tag.

11 years agoLink with LIB_TIMER_TIME as needed.
Paul Eggert [Thu, 27 Sep 2012 23:02:23 +0000 (16:02 -0700)]
Link with LIB_TIMER_TIME as needed.

11 years ago* lisp/json.el (json-encode-char): Codes 127 isn't "ASCII printable" either.
Stefan Monnier [Thu, 27 Sep 2012 22:55:03 +0000 (18:55 -0400)]
* lisp/json.el (json-encode-char): Codes 127 isn't "ASCII printable" either.

11 years ago* lisp/json.el (json-encode-char): Codes 128-160 aren't "ASCII printable".
Stefan Monnier [Thu, 27 Sep 2012 13:10:54 +0000 (09:10 -0400)]
* lisp/json.el (json-encode-char): Codes 128-160 aren't "ASCII printable".

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

11 years ago* lisp/faces.el (x-display-name): Declare (for without-x builds).
Glenn Morris [Thu, 27 Sep 2012 07:28:48 +0000 (00:28 -0700)]
* lisp/faces.el (x-display-name): Declare (for without-x builds).

11 years ago* lisp/linum.el (linum-format): Don't autoload it. Improve :type.
Glenn Morris [Thu, 27 Sep 2012 07:26:22 +0000 (00:26 -0700)]
* lisp/linum.el (linum-format): Don't autoload it.  Improve :type.

11 years agoRemove unnecessary require when compiling tcl.el
Glenn Morris [Thu, 27 Sep 2012 07:23:10 +0000 (00:23 -0700)]
Remove unnecessary require when compiling tcl.el

* lisp/progmodes/tcl.el: Don't require outline when compiling.
(outline-regexp, outline-level): Declare.

11 years agoRemove unnecessary require when compiling sgml-mode.el
Glenn Morris [Thu, 27 Sep 2012 07:21:51 +0000 (00:21 -0700)]
Remove unnecessary require when compiling sgml-mode.el

* lisp/textmodes/sgml-mode.el: Don't require outline when compiling.
(outline-regexp, outline-heading-end-regexp, outline-level): Declare.

11 years ago* term.el (term-ansi-reset): Try setting term-ansi-face-already-done to nil.
Glenn Morris [Thu, 27 Sep 2012 07:05:37 +0000 (00:05 -0700)]
* term.el (term-ansi-reset): Try setting term-ansi-face-already-done to nil.

Fixes: debbugs:11785
11 years agoDon't bother making files writable for commit with modern VCS
Glenn Morris [Thu, 27 Sep 2012 06:59:21 +0000 (23:59 -0700)]
Don't bother making files writable for commit with modern VCS

* lisp/vc/vc.el (vc-next-action):
Only gripe about committing read-only files for RCS and SCCS.

Fixes: debbugs:9781
11 years agoRename a section in doc/emacs/cal-xtra.texi
Glenn Morris [Thu, 27 Sep 2012 06:51:35 +0000 (23:51 -0700)]
Rename a section in doc/emacs/cal-xtra.texi

* doc/emacs/cal-xtra.texi (Advanced Calendar/Diary Usage):
Rename the section to be more general.
* doc/emacs/emacs.texi: Update menu.

11 years agoComment fix
Glenn Morris [Thu, 27 Sep 2012 06:47:12 +0000 (23:47 -0700)]
Comment fix

11 years ago* admin/admin.el (set-version): Set msdos.c's Vwindow_system_version.
Glenn Morris [Thu, 27 Sep 2012 06:45:38 +0000 (23:45 -0700)]
* admin/admin.el (set-version): Set msdos.c's Vwindow_system_version.

11 years agoFix last commit.
Chong Yidong [Thu, 27 Sep 2012 03:31:58 +0000 (11:31 +0800)]
Fix last commit.

11 years agoFix last change in verilog-mode.el.
Chong Yidong [Thu, 27 Sep 2012 03:30:46 +0000 (11:30 +0800)]
Fix last change in verilog-mode.el.

* progmodes/verilog-mode.el (verilog-mode-release-emacs): Fix last
change; value should be t.

11 years ago* lisp/image-mode.el: Use lexical-binding.
Stefan Monnier [Thu, 27 Sep 2012 03:16:35 +0000 (23:16 -0400)]
* lisp/image-mode.el: Use lexical-binding.
(image-mode-winprops): Use t to stand for the window of a buffer that's
not displayed.
* lisp/doc-view.el (doc-view-new-window-function): Handle t in winprops.
(doc-view-enlarge): Make it a real nop if the size is not changed.
(doc-view-display): Handle the case where the buffer is not (yet?)
displayed in any window.
(doc-view-saved-settings): New var.
(doc-view-mode): Use it.
(doc-view-fallback-mode): Set it.

11 years ago* lisp/minibuf-eldef.el: Make it possible to replace (default ...) with [...].
Stefan Monnier [Thu, 27 Sep 2012 02:10:54 +0000 (22:10 -0400)]
* lisp/minibuf-eldef.el: Make it possible to replace (default ...) with [...].
Set lexical-binding.
(minibuffer-eldef-shorten-default): New var.
(minibuffer-default-in-prompt-regexps): Use it for new default.
(minibuf-eldef-setup-minibuffer): Add replacement functionality.

11 years agoCheck more robustly for timer_settime.
Paul Eggert [Thu, 27 Sep 2012 01:06:23 +0000 (18:06 -0700)]
Check more robustly for timer_settime.

This should fix an OS X build problem reported by Ivan Andrus in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00671.html>.
* admin/merge-gnulib (GNULIB_MODULES): Add timer-time.
* configure.ac (gl_THREADLIB): Define to empty, since Emacs
does threads its own way.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* m4/timer_time.m4: New file, from gnulib.
* src/atimer.c (alarm_timer, alarm_timer_ok, set_alarm, init_atimer):
Use HAVE_TIMER_SETTIME, not SIGEV_SIGNAL, to decide whether to
call timer_settime.

11 years ago* profiler.c (Fprofiler_cpu_start): Remove unnecessary flag SA_SIGINFO.
Tomohiro Matsuyama [Wed, 26 Sep 2012 23:14:13 +0000 (08:14 +0900)]
* profiler.c (Fprofiler_cpu_start): Remove unnecessary flag SA_SIGINFO.

11 years agoFix ChangeLog typos.
Juanma Barranquero [Wed, 26 Sep 2012 22:42:54 +0000 (00:42 +0200)]
Fix ChangeLog typos.

11 years agoUpdate to Unicode 6.2.
Juanma Barranquero [Wed, 26 Sep 2012 22:21:16 +0000 (00:21 +0200)]
Update to Unicode 6.2.

* admin/unidata/BidiMirroring.txt:
* admin/unidata/UnicodeData.txt: Update to Unicode 6.2.

* lisp/international/uni-bidi.el:
* lisp/international/uni-category.el:
* lisp/international/uni-name.el:
* lisp/international/uni-numeric.el: Regenerate.

11 years agoFix some profiler stuff on Windows (follow-up to 1995-03-15T21:55:37Z!kwzh@gnu.org).
Juanma Barranquero [Wed, 26 Sep 2012 22:04:10 +0000 (00:04 +0200)]
Fix some profiler stuff on Windows (follow-up to 1995-03-15T21:55:37Z!kwzh@gnu.org).

* lib-src/makefile.w32-in (obj): Add profiler.o.
* src/makefile.w32-in ($(BLD)/profiler.$(O)): Update dependencies.

11 years ago* character.h (MAYBE_UNIFY_CHAR): Remove.
Paul Eggert [Wed, 26 Sep 2012 20:00:29 +0000 (13:00 -0700)]
* character.h (MAYBE_UNIFY_CHAR): Remove.

* charset.c, charset.h (maybe_unify_char): Now static.
* charset.c (decode_char): Use maybe_unify_char, not MAYBE_UNIFY_CHAR.
Since this stuff is now private to charset.c, there's no need for
a public macro and no need to inline by hand.

11 years agoMerge profiler branch
Stefan Monnier [Wed, 26 Sep 2012 15:19:10 +0000 (11:19 -0400)]
Merge profiler branch

11 years agoFix a typo in a recent entry in src/ChangeLog.
Eli Zaretskii [Wed, 26 Sep 2012 14:44:22 +0000 (16:44 +0200)]
Fix a typo in a recent entry in src/ChangeLog.

11 years ago* lisp/emacs-lisp/testcover.el (testcover-after): Add gv-expander.
Stefan Monnier [Wed, 26 Sep 2012 14:41:05 +0000 (10:41 -0400)]
* lisp/emacs-lisp/testcover.el (testcover-after): Add gv-expander.
(testcover-reinstrument): Simplify with CSE.

11 years agolisp/window.el (temp-buffer-window-setup): Fix typo in docstring.
Juanma Barranquero [Wed, 26 Sep 2012 14:11:18 +0000 (16:11 +0200)]
lisp/window.el (temp-buffer-window-setup): Fix typo in docstring.

11 years agoFix bug ref
Glenn Morris [Wed, 26 Sep 2012 07:07:32 +0000 (00:07 -0700)]
Fix bug ref

11 years ago* lisp/profiler.el (profiler-start): Don't prompt for choice when there origin/old-branches/profiler
Stefan Monnier [Wed, 26 Sep 2012 04:02:21 +0000 (00:02 -0400)]
* lisp/profiler.el (profiler-start): Don't prompt for choice when there
isn't any.
(profiler-stop): Use new semantics of profiler-*-stop.
(profiler-reset, profiler--report-cpu): Don't signal an error if the
cpu profiler is not available.
* src/profiler.c (Fprofiler_cpu_stop, Fprofiler_memory_stop):
Return whether the profiler was running, instead of signaling an error
if it wasn't.

11 years ago* src/makefile.w32-in (OBJ2, GLOBAL_SOURCES): Add profiler.c.
Juanma Barranquero [Wed, 26 Sep 2012 03:43:26 +0000 (23:43 -0400)]
* src/makefile.w32-in (OBJ2, GLOBAL_SOURCES): Add profiler.c.
($(BLD)/profiler.$(O)): New target.

11 years agoSynch verilog-mode.el to latest upstream version.
Wilson Snyder [Wed, 26 Sep 2012 03:32:51 +0000 (11:32 +0800)]
Synch verilog-mode.el to latest upstream version.

* verilog-mode.el (verilog-auto-ascii-enum, verilog-auto-inout)
(verilog-auto-input, verilog-auto-insert-lisp)
(verilog-auto-output, verilog-auto-output-every, verilog-auto-reg)
(verilog-auto-reg-input, verilog-auto-tieoff, verilog-auto-undef)
(verilog-auto-unused, verilog-auto-wire)
(verilog-forward-or-insert-line): Fix AUTOs with no trailing
newline.  Reported by Andrew Jones.
(verilog-auto-inst) Support expanding $clog2 in AUTOINST.
Reported by Brad Dobbie.
(verilog-batch-delete-trailing-whitespace): Create
verilog-batch-delete-trailing-whitespace.  Reported by Brad
Dobbie.
(verilog-auto-inout-param): Support AUTOINOUTPARAM for copying
parameters from another module.  Reported by Dan Katz.
(verilog-auto, verilog-auto-assign-modport)
(verilog-auto-inout-modport): Add AUTOASSIGNMODPORT and
AUTOINOUTMODPORT for UVM interface module shell generation.
Reported by Brad Dobbie.
(verilog-auto-inst-interfaced-ports): Make default nil, as more
standard behavior.
(verilog-auto): Fix AUTO parameters with parenthesis arguments.
Reported by Matt Martin.

11 years agognus-art.el (gnus-article-browse-delete-temp-files): Fix previous commit
Katsumi Yamaoka [Tue, 25 Sep 2012 23:57:37 +0000 (23:57 +0000)]
gnus-art.el (gnus-article-browse-delete-temp-files): Fix previous commit

11 years agognus-art.el (gnus-article-browse-delete-temp-files): Never ask again a user about...
Katsumi Yamaoka [Tue, 25 Sep 2012 23:39:44 +0000 (23:39 +0000)]
gnus-art.el (gnus-article-browse-delete-temp-files): Never ask again a user about whether to delete files if once a user answered as n

11 years agosrc/makefile.w32-in ($(BLD)/callproc.$(O)): Update dependencies.
Juanma Barranquero [Tue, 25 Sep 2012 22:07:22 +0000 (00:07 +0200)]
src/makefile.w32-in ($(BLD)/callproc.$(O)): Update dependencies.

11 years agoPrefer POSIX timers if available.
Paul Eggert [Tue, 25 Sep 2012 19:18:05 +0000 (12:18 -0700)]
Prefer POSIX timers if available.

They avoid a race if the timer is too close to the current time.
* atimer.c (alarm_timer, alarm_timer_ok) [SIGEV_SIGNAL]: New static vars.
(set_alarm) [SIGEV_SIGNAL]: Use POSIX timers if available.
(init_atimer) [SIGEV_SIGAL]: Initialize them.

11 years agoFix typo in files.texi
Leo Liu [Tue, 25 Sep 2012 14:40:20 +0000 (22:40 +0800)]
Fix typo in files.texi

11 years agoFollowup to not using maybe_unify_char in processing buffers and strings.
Eli Zaretskii [Tue, 25 Sep 2012 12:44:13 +0000 (14:44 +0200)]
Followup to not using maybe_unify_char in processing buffers and strings.

 src/coding.c (CHAR_STRING_ADVANCE_NO_UNIFY): Make it an alias of
 CHAR_STRING_ADVANCE.
 (STRING_CHAR_ADVANCE_NO_UNIFY): Make it an alias of
 STRING_CHAR_ADVANCE.

11 years agoMove Vlibrary_cache to emacs.c and reset before dumping.
Juanma Barranquero [Tue, 25 Sep 2012 11:57:30 +0000 (13:57 +0200)]
Move Vlibrary_cache to emacs.c and reset before dumping.

* src/lisp.h (reset_image_types): Declare.
[WINDOWSNT] (Vlibrary_cache): Declare.

* src/image.c (reset_image_types): New function.

* src/emacs.c [WINDOWSNT] (Vlibrary_cache): Move from w32.c.
(syms_of_emacs) [WINDOWSNT] <Vlibrary_cache>: Initialize and staticpro.
(Fdump_emacs): Reset Vlibrary_cache and image_types.

* src/w32.c (Vlibrary_cache): Do not define; moved to emacs.c
(globals_of_w32) <Vlibrary_cache>: Do not initialize.

* src/w32.h (Vlibrary_cache): Do not declare.

11 years agoFix handling of fatal signals and exceptions on MS-Windows.
Eli Zaretskii [Tue, 25 Sep 2012 11:50:01 +0000 (13:50 +0200)]
Fix handling of fatal signals and exceptions on MS-Windows.

 src/w32proc.c (sys_signal): Handle all signals defined by the
 MS-Windows runtime, not just SIGCHLD.  Actually install the signal
 handlers for signals supported by Windows.  Don't override
 term_ntproc as the handler for SIGABRT.
 (sigaction): Rewrite to call sys_signal instead of duplicating its
 code.
 (sys_kill): Improve commentary.
 src/w32.c (term_ntproc): Accept (and ignore) one argument, for
 consistency with a signature of a signal handler.  All callers
 changed.
 (init_ntproc): Accept an argument DUMPING.  If dumping, don't
 install term_ntproc as a signal handler for SIGABRT, as that
 should be done by the dumped Emacs.
 src/w32.h (init_ntproc, term_ntproc): Adjust prototypes.
 src/w32select.c (term_w32select): Protect against repeated
 invocation by setting clipboard_owner to NULL after calling
 DestroyWindow.
 src/emacs.c (shut_down_emacs, main): Adapt the calls to init_ntproc
 and term_ntproc to their modified signatures.

11 years agoImprove resizing of minibuffer windows (Bug#12419).
Martin Rudalics [Tue, 25 Sep 2012 08:20:05 +0000 (10:20 +0200)]
Improve resizing of minibuffer windows (Bug#12419).

* window.el (window--resize-child-windows): When resizing child
windows proportionally, process them in reverse order to
preserve the "when splitting a window the new one gets the odd
line" behavior.
(window--resize-root-window-vertically): When resizing the
minibuffer window try to affect only windows at the bottom of the
frame.  (Bug#12419)

11 years agoDon't call MAYBE_UNIFY_CHAR while processing buffers and strings.
Eli Zaretskii [Tue, 25 Sep 2012 07:01:52 +0000 (09:01 +0200)]
Don't call MAYBE_UNIFY_CHAR while processing buffers and strings.

 src/character.c (char_string, string_char): Remove calls to
 MAYBE_UNIFY_CHAR.  See the discussion starting at
 http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00433.html
 for the details.

11 years agoMinor fixes for the function obsolescence feature.
Chong Yidong [Tue, 25 Sep 2012 05:33:43 +0000 (13:33 +0800)]
Minor fixes for the function obsolescence feature.

* lisp/help-fns.el (help-fns--obsolete): Handle macros properly.

* lisp/subr.el (declare): Doc fix.

11 years agoUse declare forms, where possible, to mark obsolete functions.
Chong Yidong [Tue, 25 Sep 2012 04:13:02 +0000 (12:13 +0800)]
Use declare forms, where possible, to mark obsolete functions.

* lisp/allout.el (allout-passphrase-hint-string): Likewise.
(allout-init): Use a declare form to mark obsolete.

* lisp/calendar/calendar.el (calendar-version):
* lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
(icalendar-convert-diary-to-ical):
* lisp/cus-edit.el (custom-mode):
* lisp/ansi-color.el (ansi-color-unfontify-region):
* lisp/international/latin1-disp.el (latin1-char-displayable-p):
* lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
* lisp/progmodes/which-func.el (which-func-update-1): Use
define-obsolete-function-alias.

* lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
this function obsolete.

* lisp/calendar/cal-x.el (calendar-two-frame-setup)
(calendar-only-one-frame-setup, calendar-one-frame-setup):
* lisp/calendar/calendar.el (american-calendar, european-calendar)
(calendar-for-loop):
* lisp/comint.el (comint-dynamic-simple-complete)
(comint-dynamic-complete-as-filename, comint-unquote-filename):
* lisp/desktop.el (desktop-load-default):
* lisp/dired-x.el (dired-omit-here-always)
(dired-hack-local-variables, dired-default-directory):
* lisp/emacs-lisp/derived.el (derived-mode-class):
* lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
* lisp/emacs-lock.el (toggle-emacs-lock):
* lisp/epa.el (epa-display-verify-result):
* lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
(epg-passphrase-callback-function):
* lisp/eshell/esh-util.el (eshell-for):
* lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
(eshell-add-to-window-buffer-names):
* lisp/files.el (locate-file-completion):
* lisp/imenu.el (imenu-example--create-c-index)
(imenu-example--create-lisp-index)
(imenu-example--lisp-extract-index-name)
(imenu-example--name-and-position):
* lisp/international/mule-cmds.el (princ-list):
* lisp/international/mule-diag.el (decode-codepage-char):
* lisp/international/mule-util.el (detect-coding-with-priority):
* lisp/iswitchb.el (iswitchb-read-buffer):
* lisp/mail/mailalias.el (mail-complete):
* lisp/mail/sendmail.el (mail-sent-via):
* lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
(mouse-major-mode-menu):
* lisp/password-cache.el (password-read-and-add):
* lisp/pcomplete.el (pcomplete-parse-comint-arguments):
* lisp/progmodes/sh-script.el (sh-maybe-here-document):
* lisp/replace.el (query-replace-regexp-eval):
* lisp/savehist.el (savehist-load):
* lisp/simple.el (choose-completion-delete-max-match):
* lisp/term.el (term-dynamic-simple-complete):
* lisp/vc/ediff-init.el (ediff-check-version):
* lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
* lisp/vc/vc.el (vc-diff-switches-list):
* lisp/view.el (view-return-to-alist-update): Likewise.

* lisp/iswitchb.el (iswitchb-read-buffer): Move code of
iswitchb-define-mode-map here, and delete that obsolete function.

* lisp/subr.el (eval-next-after-load, makehash, insert-string)
(assoc-ignore-representation, assoc-ignore-case): Use declare to
mark obsolete.
(mode-line-inverse-video): Variable deleted.

* lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
this applies to functions.

* lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.

* lisp/international/mule-util.el (string-to-sequence): Remove.

* lisp/net/newst-backend.el (newsticker-cache-filename):
* lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
incorrect obsolescence declaration.

* lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
font-lock-reference-face.

* lisp/url/url-parse.el (url-recreate-url-attributes):
* lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
obsolete.

* src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.

11 years ago* src/profiler.c: Rename sample_profiler_* to profiler_cpu_* and
Stefan Monnier [Tue, 25 Sep 2012 02:30:46 +0000 (22:30 -0400)]
* src/profiler.c: Rename sample_profiler_* to profiler_cpu_* and
memory_profiler_* to profiler_memory_*.  Move sigprof_handler before
its first use, inside the PROFILER_CPU_SUPPORT conditional.

11 years ago* buff-menu.el (Buffer-menu-name-width, Buffer-menu-size-width): Doc fixes.
Glenn Morris [Tue, 25 Sep 2012 01:18:50 +0000 (21:18 -0400)]
* buff-menu.el (Buffer-menu-name-width, Buffer-menu-size-width): Doc fixes.

11 years ago* em-term.el (eshell-term-name): Default to term-term-name. (Bug#12485)
Glenn Morris [Tue, 25 Sep 2012 01:15:24 +0000 (21:15 -0400)]
* em-term.el (eshell-term-name): Default to term-term-name.  (Bug#12485)

11 years ago* progmodes/python.el:
Fabián Ezequiel Gallina [Mon, 24 Sep 2012 23:15:40 +0000 (20:15 -0300)]
* progmodes/python.el:
(python-shell-send-buffer): Better handling of "if __name__ ==
'__main__':" conditionals when sending the buffer.

11 years ago* src/bytecode.c (exec_byte_code): Signal an error instead of aborting,
Stefan Monnier [Mon, 24 Sep 2012 22:47:51 +0000 (18:47 -0400)]
* src/bytecode.c (exec_byte_code): Signal an error instead of aborting,
when encountering an unknown bytecode.

11 years agoimage.c, indent.c: Use bool for booleans.
Paul Eggert [Mon, 24 Sep 2012 21:38:23 +0000 (14:38 -0700)]
image.c, indent.c: Use bool for booleans.

* dispextern.h (struct image_type): Members valid_p, load, init
now return bool, not int.  All uses changed.
* image.c: Omit unnecessary static decls.
(x_create_bitmap_mask, x_build_heuristic_mask):
Return void, not int, since callers don't care about the return value.
(x_create_bitmap_mask, define_image_type, valid_image_p)
(struct image_keyword, parse_image_spec, image_spec_value)
(check_image_size, image_background)
(image_background_transparent, x_clear_image_1)
(postprocess_image, lookup_image, x_check_image_size)
(x_create_x_image_and_pixmap, xbm_image_p)
(Create_Pixmap_From_Bitmap_Data, xbm_read_bitmap_data)
(xbm_load_image, xbm_file_p, xbm_load, xpm_lookup_color)
(init_xpm_functions, xpm_valid_color_symbols_p, xpm_image_p)
(xpm_load, xpm_load_image, lookup_rgb_color, lookup_pixel_color)
(x_to_xcolors, x_build_heuristic_mask, pbm_image_p, pbm_load)
(png_image_p, init_png_functions, png_load_body, png_load)
(jpeg_image_p, init_jpeg_functions, jpeg_load_body, jpeg_load)
(tiff_image_p, init_tiff_functions, tiff_load, gif_image_p)
(init_gif_functions, gif_load, imagemagick_image_p)
(imagemagick_load_image, imagemagick_load, svg_image_p)
(init_svg_functions, svg_load, svg_load_image, gs_image_p)
(gs_load):
* nsimage.m (ns_load_image):
* nsterm.m (ns_defined_color):
* xfaces.c (tty_lookup_color, tty_defined_color, defined_color):
* xfns.c (x_defined_color):
* xterm.c (x_alloc_lighter_color_for_widget)
(x_alloc_nearest_color_1, x_alloc_nearest_color)
(x_alloc_lighter_color):
* indent.c (disptab_matches_widthtab, current_column)
(scan_for_column, string_display_width, indented_beyond_p)
(compute_motion, vmotion, Fvertical_motion):
Use bool for booleans.

11 years agoTry to let it compile on other platforms
Stefan Monnier [Mon, 24 Sep 2012 21:15:53 +0000 (17:15 -0400)]
Try to let it compile on other platforms
* src/profiler.c (evict_lower_half): Fix typo.
(PROFILER_CPU_SUPPORT): Check and define if cpu-profiler is supported.
Don't compile the cpu-profiler code, if not supported.
(malloc_probe): Presume memory_log is non-nil.
(syms_of_profiler): Don't defsubr functions when they aren't defined.
* src/lisp.h (sample_profiler_running, gc_probe): Don't declare.

11 years agoImprove previous eshell change
Glenn Morris [Mon, 24 Sep 2012 18:38:14 +0000 (14:38 -0400)]
Improve previous eshell change

11 years ago* eshell/esh-cmd.el (eshell-find-alias-function): Tighten up file-name regexp.
Glenn Morris [Mon, 24 Sep 2012 18:22:10 +0000 (14:22 -0400)]
* eshell/esh-cmd.el (eshell-find-alias-function): Tighten up file-name regexp.

11 years agoEnhancements for triple-quote string syntax.
Fabián Ezequiel Gallina [Mon, 24 Sep 2012 17:54:46 +0000 (14:54 -0300)]
Enhancements for triple-quote string syntax.
* progmodes/python.el (python-quote-syntax): Remove.
(python-syntax-propertize-function): New value.
(python-syntax-count-quotes, python-syntax-stringify): New
functions.

11 years agoStandardize some more license notices
Glenn Morris [Mon, 24 Sep 2012 16:36:42 +0000 (09:36 -0700)]
Standardize some more license notices

11 years agoStandardize some license notices
Glenn Morris [Mon, 24 Sep 2012 15:58:20 +0000 (08:58 -0700)]
Standardize some license notices

11 years agoRewrite sampler to use Elisp hash-tables.
Stefan Monnier [Mon, 24 Sep 2012 14:38:10 +0000 (10:38 -0400)]
Rewrite sampler to use Elisp hash-tables.
* src/profiler.c: Remove filtering functionality.
(is_in_trace, Qgc): Remove vars.
(make_log, record_backtrace, Fsample_profiler_log):
Rewrite, using Elisp hash-tables.
(approximate_median, evict_lower_half): New functions.
(cpu_log): Rename from sample_log.
(cpu_gc_count): New var.
(Fsample_profiler_reset, Fmemory_profiler_reset): Remove.
(sigprof_handler): Add count to cpu_gc_count during GC, detected via
backtrace_list.
(block_sigprof, unblock_sigprof): Remove.
(gc_probe, mark_profiler): Remove functions.
(syms_of_profiler): Staticpro cpu_log and memory_log.

* lisp/profiler.el (profiler-sample-interval): Move before first use.
Change default to 1ms.
(profiler-entry=, profiler-backtrace-reverse, profiler-log-fixup-slot)
(profiler-calltree-elapsed<, profiler-calltree-elapsed>): Remove functions.
(profiler-entry-format): Don't use type-of.
(profiler-slot, profiler-log): Remove structs.
(profiler-log-timestamp, profiler-log-type, profiler-log-diff-p):
Redefine for new log representation.
(profiler-log-diff, profiler-log-fixup, profiler-calltree-build-1):
Rewrite for new log representation.
(profiler-calltree): Remove `elapsed' fields.
(profiler-calltree-count<, profiler-report-make-entry-part):
Remove gc special case.
(profiler-calltree-find): Use equal.
(profiler-calltree-walk): Remove `args'; rely on closures instead.
(profiler-calltree-compute-percentages-1): Remove; inlined.
(profiler-calltree-compute-percentages): Simplify.
(profiler-report-log, profiler-report-reversed)
(profiler-report-order): Use defvar-local.
(profiler-report-line-format): Remove `elapsed', do a bit of CSE.
(profiler-report-mode-map): Remove up/down bindings.
(profiler-report-make-buffer-name): Simplify by CSE.
(profiler-report-mode): Remove redundant code.
(profiler-report-expand-entry, profiler-report-collapse-entry):
Use inhibit-read-only.
(profiler-report-render-calltree-1): Simplify by CSE.
(profiler-reset): Rewrite for new subroutines.
(profiler--report-cpu): Rename from sample-profiler-report.
(profiler--report-memory): Rename from memory-profiler-report.

* src/alloc.c (Fgarbage_collect): Record itself in backtrace_list.
Don't set is_in_trace any more.  Don't call mark_profiler.
Only call gc_probe for the memory profiler.
(syms_of_alloc): Define Qautomatic_gc.

* src/lisp.h (SXHASH_COMBINE): Move back to...
* src/fns.c (SXHASH_COMBINE): ...here.

* src/xdisp.c (Qautomatic_redisplay): New constant.
(redisplay_internal): Record itself in backtrace_list.
(syms_of_xdisp): Define Qautomatic_redisplay.

* .dir-locals.el (indent-tabs-mode): Remove personal preference.

11 years agoFix two references to deleted obsolete variables.
Chong Yidong [Mon, 24 Sep 2012 12:31:24 +0000 (20:31 +0800)]
Fix two references to deleted obsolete variables.

Also, fix the copyright header for lisp/emacs-lisp/gv.el.

* lisp/vc/log-edit.el (log-edit-require-final-newline)
(log-edit-changelog-full-paragraphs): Default to t.

11 years agoRemove several obsolete vars and functions unlikely to be still in use.
Chong Yidong [Mon, 24 Sep 2012 12:23:25 +0000 (20:23 +0800)]
Remove several obsolete vars and functions unlikely to be still in use.

* lisp/vc/log-edit.el (cvs-changelog-full-paragraphs)
(cvs-commit-buffer-require-final-newline): Obsolete variables
removed.

* lisp/font-lock.el (font-lock-reference-face): Use
define-obsolete-variable-alias.

* lisp/international/mule.el (set-char-table-default): Remove.
(set-coding-priority, make-coding-system, generic-char-p)
(charset-list, charset-bytes, charset-id): Use declare to mark
obsolete.

* lisp/mail/supercite.el (sc-version): Remove obsolete function.
(sc-describe): Don't mark as obsolete, since it is bound.
(sc-submit-bug-report): Remove.

* lisp/progmodes/compile.el (compile-internal): Remove obsolete
function.
(compilation-parse-errors-function): Fix typo.

* lisp/vc/emerge.el (emerge-mode): Make it an obsolete alias.
(emerge-version): Remove.

* lisp/vc/pcvs-defs.el (cvs-buffer-name-alist)
(cvs-invert-ignore-marks): Remove references to obsolete vars.
* lisp/vc/vc-hooks.el (vc-default-registered): Don't use
vc-master-templates.

* lisp/vc/pcvs-defs.el (cvs-diff-buffer-name, cvs-diff-ignore-marks)
* lisp/vc/vc-hooks.el (vc-ignore-vc-files, vc-master-templates)
* lisp/vc/vc.el (vc-checkout-carefully): Likewise.

* src/chartab.c (Fset_char_table_default): Obsolete function removed.

11 years agoFix uses of long-obsolete font-lock-reference face.
Chong Yidong [Mon, 24 Sep 2012 11:39:33 +0000 (19:39 +0800)]
Fix uses of long-obsolete font-lock-reference face.

* generic-x.el (rul-generic-mode): Use font-lock-constant-face.
* calendar/calendar.el (calendar-font-lock-keywords):
* calendar/diary-lib.el (diary-font-lock-keywords)
(diary-fancy-font-lock-keywords):
* textmodes/reftex-sel.el (reftex-insert-docstruct):
* textmodes/reftex-index.el (reftex-insert-index):
* textmodes/reftex-cite.el (reftex-format-bib-entry):
* progmodes/ruby-mode.el (ruby-font-lock-keywords):
* progmodes/ps-mode.el (ps-mode-font-lock-keywords-1):
* progmodes/prolog.el (prolog-font-lock-keywords):
* progmodes/idlwave.el (idlwave-idl-keywords):
* progmodes/ada-mode.el (ada-font-lock-keywords):
* net/snmp-mode.el (snmp-font-lock-keywords-3): Likewise.

* font-lock.el (font-lock-reference-face): Use
define-obsolete-variable-alias.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 24 Sep 2012 10:20:50 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.

11 years agoDoc fixes
Glenn Morris [Mon, 24 Sep 2012 07:12:35 +0000 (00:12 -0700)]
Doc fixes

* src/eval.c (Frun_hook_with_args, Frun_hook_with_args_until_success)
(Frun_hook_with_args_until_failure): Doc fixes.

11 years agoTweak previous change
Glenn Morris [Mon, 24 Sep 2012 06:31:02 +0000 (23:31 -0700)]
Tweak previous change

11 years ago* lisp/mail/emacsbug.el (report-emacs-bug): Include `lsb_release -d'.
Glenn Morris [Mon, 24 Sep 2012 00:46:47 +0000 (17:46 -0700)]
* lisp/mail/emacsbug.el (report-emacs-bug): Include `lsb_release -d'.

11 years agoMove pid_t related decls out of lisp.h.
Paul Eggert [Sun, 23 Sep 2012 22:25:22 +0000 (15:25 -0700)]
Move pid_t related decls out of lisp.h.

* lisp.h, syswait.h (record_child_status_change, wait_for_termination)
(interruptible_wait_for_termination):
Move these decls from lisp.h to syswait.h, since they use pid_t.
Needed on FreeBSD; see Herbert J. Skuhra in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00571.html>.
* callproc.c: Include syswait.h.

11 years agognutls.c, gtkutil.c: Use bool for boolean.
Paul Eggert [Sun, 23 Sep 2012 19:36:31 +0000 (12:36 -0700)]
gnutls.c, gtkutil.c: Use bool for boolean.

* gnutls.c (gnutls_global_initialized, init_gnutls_functions)
(emacs_gnutls_handle_error):
* gtkutil.c (xg_check_special_colors, xg_prepare_tooltip)
(xg_hide_tooltip, xg_create_frame_widgets)
(create_dialog, xg_uses_old_file_dialog)
(xg_get_file_with_chooser, xg_get_file_with_selection)
(xg_get_file_name, xg_have_tear_offs, create_menus, xg_create_widget)
(xg_item_label_same_p, xg_update_menubar)
(xg_modify_menubar_widgets, xg_event_is_for_menubar)
(xg_ignore_gtk_scrollbar, xg_set_toolkit_scroll_bar_thumb)
(xg_event_is_for_scrollbar, xg_pack_tool_bar, xg_make_tool_item)
(is_box_type, xg_tool_item_stale_p, xg_update_tool_bar_sizes)
(update_frame_tool_bar, free_frame_tool_bar):
* gtkutil.c, w32term.c, xterm.c (x_wm_set_size_hint):
* nsmenu.m (ns_update_menubar):
* nsmenu.m, w32menu.c, xmenu.c (set_frame_menubar):
* xfns.c (Fx_show_tip) [USE_GTK]:
Use bool for boolean.
* gtkutil.c (xg_update_frame_menubar):
* xmenu.c (update_frame_menubar):
Return void, not int, since caller ignores return value.
* gtkutil.c (xg_change_toolbar_position):
Return void, not 1.

11 years agoUseless use of cat
Glenn Morris [Sun, 23 Sep 2012 18:40:55 +0000 (11:40 -0700)]
Useless use of cat

11 years ago* progmodes/python.el (python-indent-line): More consistent cursor
Fabián Ezequiel Gallina [Sun, 23 Sep 2012 18:21:33 +0000 (15:21 -0300)]
* progmodes/python.el (python-indent-line): More consistent cursor
movement behavior.

11 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Sun, 23 Sep 2012 18:03:48 +0000 (20:03 +0200)]
src/makefile.w32-in: Update dependencies.

11 years agoClean-up left-overs after 2012-09-23T08:44:20Z!eggert@cs.ucla.edu wrt signal handling.
Eli Zaretskii [Sun, 23 Sep 2012 17:34:30 +0000 (19:34 +0200)]
Clean-up left-overs after 2012-09-23T08:44:20Z!eggert@cs.ucla.edu wrt signal handling.

 src/.gdbinit: Set breakpoint on terminate_due_to_signal, not on
 fatal_error_backtrace.
 src/w32proc.c (sys_kill): Undo last change: don't do anything when
 invoked to deliver SIGABRT to our own process.  This is now
 handled by emacs_raise.

 nt/inc/ms-w32.h (emacs_raise): Redefine to invoke emacs_abort.

Fixes: debbugs:12471
11 years agosrc/w32term.c (w32_read_socket): Remove reference to deleted variable.
Juanma Barranquero [Sun, 23 Sep 2012 17:33:16 +0000 (19:33 +0200)]
src/w32term.c (w32_read_socket): Remove reference to deleted variable.

11 years agoDo not use SA_NODEFER.
Paul Eggert [Sun, 23 Sep 2012 17:05:14 +0000 (10:05 -0700)]
Do not use SA_NODEFER.

Problem reported by Dani Moncayo in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00557.html>.
* alloc.c (die):
* sysdep.c (emacs_abort): Do not reset signal handler.
* emacs.c (terminate_due_to_signal): Reset signal handler here.
* sysdep.c (init_signals): Do not use SA_NODEFER.  It wasn't
wanted even on POSIXish hosts, and it doesn't work on Windows.

11 years ago* textmodes/rst.el: Fix compiler warning.
Stefan Merten [Sun, 23 Sep 2012 14:50:02 +0000 (16:50 +0200)]
* textmodes/rst.el: Fix compiler warning.

11 years agoetc/NEWS: clarify entry for proced-renice
Roland Winkler [Sun, 23 Sep 2012 14:42:55 +0000 (09:42 -0500)]
etc/NEWS: clarify entry for proced-renice

11 years agolisp/textmodes/bibtex.el: minor bugfixes
Roland Winkler [Sun, 23 Sep 2012 12:46:53 +0000 (07:46 -0500)]
lisp/textmodes/bibtex.el: minor bugfixes

11 years agoAdd ChangeLog entry for previous commit
Roland Winkler [Sun, 23 Sep 2012 12:35:28 +0000 (07:35 -0500)]
Add ChangeLog entry for previous commit

11 years agolisp/proced.el: new command proced-renice
Roland Winkler [Sun, 23 Sep 2012 12:34:23 +0000 (07:34 -0500)]
lisp/proced.el: new command proced-renice

11 years agolisp/ibuf-ext.el (ibuffer-switch-to-saved-filter-groups): Shortcut completing-read...
Roland Winkler [Sun, 23 Sep 2012 11:54:50 +0000 (06:54 -0500)]
lisp/ibuf-ext.el (ibuffer-switch-to-saved-filter-groups): Shortcut completing-read if not needed

11 years agoDoc updates for read-only-mode.
Chong Yidong [Sun, 23 Sep 2012 10:46:50 +0000 (18:46 +0800)]
Doc updates for read-only-mode.

* buffers.texi (Misc Buffer): Replace toggle-read-only with
read-only-mode.

* files.texi (Visiting): Likewise.

* backups.texi (Auto-Saving): Refer to Minor Mode Conventions for
calling conventions.

* buffers.texi (Read Only Buffers): Document read-only-mode.

* keymaps.texi (Alias Menu Items): Replace toggle-read-only with
read-only-mode.

11 years agoConvert toggle-read-only calls to read-only-mode.
Chong Yidong [Sun, 23 Sep 2012 10:21:34 +0000 (18:21 +0800)]
Convert toggle-read-only calls to read-only-mode.

* bindings.el (mode-line-toggle-read-only):
* bs.el (bs-toggle-readonly):
* buff-menu.el (Buffer-menu-toggle-read-only):
* dired.el (dired-toggle-read-only):
* ibuffer.el (ibuffer-do-toggle-read-only): Use read-only-mode.

11 years ago* xterm.c (x_term_init): Call fixup_locale before and after calling
Jan Djärv [Sun, 23 Sep 2012 10:03:35 +0000 (12:03 +0200)]
* xterm.c (x_term_init): Call fixup_locale before and after calling
gtk_init.

Fixes: debbugs:12392
11 years agoReally fix last change.
Chong Yidong [Sun, 23 Sep 2012 09:25:21 +0000 (17:25 +0800)]
Really fix last change.

11 years agoFix last change.
Chong Yidong [Sun, 23 Sep 2012 09:22:38 +0000 (17:22 +0800)]
Fix last change.

* image.c (valid_image_p, make_image): Fix caller to lookup_image_type.

11 years ago* Makefile.in (bootstrap): Set MAKEFILE_NAME when building Makefile,
Paul Eggert [Sun, 23 Sep 2012 09:18:24 +0000 (02:18 -0700)]
* Makefile.in (bootstrap): Set MAKEFILE_NAME when building Makefile,

to avoid problems with recursion when using GNU make.

11 years agoRemove LIBRARIES arg from w32_delayed_load and friends.
Chong Yidong [Sun, 23 Sep 2012 09:16:57 +0000 (17:16 +0800)]
Remove LIBRARIES arg from w32_delayed_load and friends.
These always use Vdynamic_library_alist anyway.

* src/image.c (Finit_image_library, lookup_image_type)
(define_image_type): Remove now-unneeded second arg.
(init_xpm_functions, init_png_functions, init_jpeg_functions)
(init_tiff_functions, init_gif_functions, init_svg_functions):
Arglist and w32_delayed_load calling convention changed.
(gs_type): Remove init_gs_functions; there is no such function.

* src/gnutls.c (init_gnutls_functions): Caller changed; remove arg.
(Fgnutls_available_p): Caller changed.

* src/xml.c (init_libxml2_functions, Flibxml_parse_html_region)
(Flibxml_parse_xml_region): Likewise.

* src/dispextern.h (struct image_type): Remove arg from init function.

* src/w32.c (w32_delayed_load): Remove LIBRARIES argument; always use
Vdynamic_library_alist.

* lisp/image.el (image-type-available-p): Change caller to
init-image-library.

11 years agoSimplify and avoid signal-handling races.
Paul Eggert [Sun, 23 Sep 2012 08:44:20 +0000 (01:44 -0700)]
Simplify and avoid signal-handling races.

* nt/inc/ms-w32.h (emacs_raise): New macro.
* src/alloc.c (die):
* src/sysdep.c (emacs_abort) [HAVE_NTGUI]:
Avoid recursive loop if there's a fatal error in the function itself.
* src/atimer.c (pending_atimers):
* src/blockinput.h: Don't include "atimer.h"; no longer needed.
(interrupt_input_pending): Remove.  All uses removed.
pending_signals now counts both atimers and ordinary interrupts.
This is less racy than having three separate pending-signal flags.
(block_input, unblock_input, totally_unblock_input, unblock_input_to)
(input_blocked_p):
Rename from their upper-case counterparts BLOCK_INPUT,
UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT_TO,
INPUT_BLOCKED_P, and turn into functions.  All uses changed.
This makes it easier to access volatile variables more accurately.
(BLOCK_INPUT_RESIGNAL): Remove.  All uses replaced by unblock_input ().
(input_blocked_p): Prefer this to 'interrupt_input_blocked', as
that's more reliable if the code is buggy and sets
interrupt_input_blocked to a negative value.  All uses changed.
* src/atimer.c (deliver_alarm_signal):
Remove.  No need to deliver this to the parent; any thread can
handle this signal now.  All uses replaced by underlying handler.
* src/atimer.c (turn_on_atimers):
* src/dispnew.c (handle_window_change_signal):
* src/emacs.c (handle_danger_signal):
* src/keyboard.c (kbd_buffer_get_event):
Don't reestablish signal handler; not needed with sigaction.
* src/blockinput.h (UNBLOCK_INPUT_TO, TOTALLY_UNBLOCK_INPUT)
(UNBLOCK_INPUT_TO):
Rework to avoid unnecessary accesses to volatile variables.
(UNBLOCK_INPUT_TO): Now a function.
(totally_unblock_input, unblock_input): New decls.
* src/data.c (handle_arith_signal, deliver_arith_signal): Move to sysdep.c
(init_data): Remove.  Necessary stuff now done in init_signal.
* src/emacs.c, src/xdisp.c: Include "atimer.h", since we invoke atimer functions.
* src/emacs.c (handle_fatal_signal, deliver_fatal_signal): Move to sysdep.c.
(fatal_error_code): Remove; no longer needed.
(terminate_due_to_signal): Rename from fatal_error_backtrace, since
it doesn't always backtrace.  All uses changed.  No need to reset
signal to default, since sigaction and/or die does that for us now.
Use emacs_raise (FOO), not kill (getpid (), FOO).
(main): Check more-accurately whether we're dumping.
Move fatal-error setup to sysdep.c
* src/floatfns.c: Do not include "syssignal.h"; no longer needed.
* src/gtkutil.c (xg_get_file_name, xg_get_font):
Remove no-longer-needed signal-mask manipulation.
* src/keyboard.c, src/process.c (POLL_FOR_INPUT):
Don't depend on USE_ASYNC_EVENTS, a symbol that is never defined.
* src/keyboard.c (read_avail_input): Remove.
All uses replaced by gobble_input.
(Ftop_level): Use TOTALLY_UNBLOCK_INPUT rather than open code.
(kbd_buffer_store_event_hold, gobble_input):
(record_asynch_buffer_change) [USABLE_SIGIO]:
(store_user_signal_events):
No need to mess with signal mask.
(gobble_input): If blocking input and there are terminals, simply
set pending_signals to 1 and return.  All hooks changed to not
worry about whether input is blocked.
(process_pending_signals): Clear pending_signals before processing
them, in case a signal comes in while we're processing.
By convention callers now test pending_signals before calling us.
(UNBLOCK_INPUT_TO, unblock_input, totally_unblock_input):
New functions, to support changes to blockinput.h.
(handle_input_available_signal): Now extern.
(reinvoke_input_signal): Remove.  All uses replaced by
handle_async_input.
(quit_count): Now volatile, since a signal handler uses it.
(handle_interrupt): Now takes bool IN_SIGNAL_HANDLER as arg.  All
callers changed.  Block SIGINT only if not already blocked.
Clear sigmask reliably, even if Fsignal returns, which it can.
Omit unnecessary accesses to volatile var.
(quit_throw_to_read_char): No need to restore sigmask.
* src/keyboard.c (gobble_input, handle_user_signal):
* src/process.c (wait_reading_process_output):
Call signal-handling code rather than killing ourselves.
* src/lisp.h: Include <float.h>, for...
(IEEE_FLOATING_POINT): New macro, moved here to avoid duplication.
(pending_signals): Now volatile.
(syms_of_data): Now const if IEEE floating point.
(handle_input_available_signal) [USABLE_SIGIO]:
(terminate_due_to_signal, record_child_status_change): New decls.
* src/process.c (create_process): Avoid disaster if memory is exhausted
while we're processing a vfork, by tightening the critical section
around the vfork.
(send_process_frame, process_sent_to, handle_pipe_signal)
(deliver_pipe_signal): Remove.  No longer needed, as Emacs now
ignores SIGPIPE.
(send_process): No need for setjmp/longjmp any more, since the
SIGPIPE stuff is now gone.  Instead, report an error if errno
is EPIPE.
(record_child_status_change): Now extern.  PID and W are now args.
Return void, not bool.  All callers changed.
* src/sysdep.c (wait_debugging) [(BSD_SYSTEM || HPUX) && !defined (__GNU__)]:
Remove.  All uses removed.  This bug should be fixed now in a
different way.
(wait_for_termination_1): Use waitpid rather than sigsuspend,
and record the child status change directly.  This avoids the
need to futz with the signal mask.
(process_fatal_action): Move here from emacs.c.
(emacs_sigaction_flags): New function, containing
much of what used to be in emacs_sigaction_init.
(emacs_sigaction_init): Use it.  Block nonfatal system signals that are
caught by emacs, to make races less likely.
(deliver_process_signal): Rename from handle_on_main_thread.
All uses changed.
(BACKTRACE_LIMIT_MAX): Now at top level.
(thread_backtrace_buffer, threadback_backtrace_pointers):
New static vars.
(deliver_thread_signal, deliver_fatal_thread_signal):
New functions, for more-accurate delivery of thread-specific signals.
(handle_fatal_signal, deliver_fatal_signal): Move here from emacs.c.
(deliver_arith_signal): Handle in this thread, not
in the main thread, since it's triggered by this thread.
(maybe_fatal_sig): New function.
(init_signals): New arg DUMPING so that we can be more accurate
about whether we're dumping.  Caller changed.
Treat thread-specific signals differently from process-general signals.
Block all signals while handling fatal error; that's safer.
xsignal from SIGFPE only on non-IEEE hosts, treating it as fatal
on IEEE hosts.
When batch, ignore SIGHUP, SIGINT, SIGTERM if they were already ignored.
Ignore SIGPIPE unless batch.
(emacs_backtrace): Output backtrace for the appropriate thread,
which is not necessarily the main thread.
* src/syssignal.h: Include <stdbool.h>.
(emacs_raise): New macro.
* src/xterm.c (x_connection_signal): Remove; no longer needed
now that we use sigaction.
(x_connection_closed): No need to mess with sigmask now.
(x_initialize): No need to reset SIGPIPE handler here, since
init_signals does this for us now.

Fixes: debbugs:12471
11 years ago* nsterm.m (ns_dumpglyphs_image): dr is a new rect to draw image into,
Jan Djärv [Sun, 23 Sep 2012 08:28:12 +0000 (10:28 +0200)]
* nsterm.m (ns_dumpglyphs_image): dr is a new rect to draw image into,
background rect may be larger.

Fixes: debbugs:12445
11 years ago* keyboard.c (timer_check): Avoid quitting during Fcopy_sequence.
Chong Yidong [Sun, 23 Sep 2012 08:24:44 +0000 (16:24 +0800)]
* keyboard.c (timer_check): Avoid quitting during Fcopy_sequence.

11 years ago* lisp/dired.el (dired-mode-map): Add [remap read-only-mode] for
Juri Linkov [Sat, 22 Sep 2012 22:57:11 +0000 (01:57 +0300)]
* lisp/dired.el (dired-mode-map): Add [remap read-only-mode] for
`dired-toggle-read-only'.

Fixes: debbugs:12462