1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

107770 Commits

Author SHA1 Message Date
Paul Eggert
2e83df57be * trouble.texi (Crashing): Document ulimit -c. 2012-09-22 12:27:25 -07:00
Glenn Morris
bd909927ab ChangeLog typo fix
(not that I remember suggesting anything...)
2012-09-22 11:11:11 -07:00
Chong Yidong
f938eda9e3 Re-arrange and edit NEWS. 2012-09-23 01:19:28 +08:00
Martin Rudalics
43bf5e8e4d Implement temp-output-buffer-show in subr.el.
* subr.el (temp-output-buffer-show): New function.
(with-output-to-temp-buffer): Call temp-output-buffer-show
instead of internal-temp-output-buffer-show.
2012-09-22 18:28:46 +02:00
Chong Yidong
3171e30301 * simple.el (read-only-mode): Doc fix. 2012-09-22 23:46:57 +08:00
Chong Yidong
3df47cd5f6 * files.el (ctl-x-map): Bind C-x C-q to read-only-mode.
Fixes: debbugs:12462
2012-09-22 23:44:43 +08:00
Chong Yidong
c88b867fec Misc doc fixes.
* searching.texi (Replacing Match): Minor clarification.

* lisp/repeat.el (repeat): Doc fix.

* lisp/simple.el (shell-command-on-region): Doc fix.

* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.

* cmds.c (Fforward_char, Fbackward_char): Doc fix.

* editfns.c (Fline_beginning_position): Doc fix.
(Fline_end_position): Doc fix.

* minibuf.c (Finternal_complete_buffer): Doc fix.

* search.c (Freplace_match): Doc fix.

Fixes: debbugs:12325 debbugs:12391 debbugs:12416 debbugs:12414 debbugs:10909 debbugs:12348
2012-09-22 23:24:26 +08:00
Chong Yidong
bb4d86b40c Refactor image-type loading.
* src/dispextern.h (struct image_type): Add new slot, storing a type
initialization function.

* src/image.c (define_image_type): Call the image initializer function
if it is defined.  Arguments and return value changed.
(valid_image_p, make_image): Callers changed.
(xbm_type, xpm_type, pbm_type, png_type, jpeg_type, tiff_type)
(gif_type, imagemagick_type, svg_type, gs_type): Add
initialization functions.
(Finit_image_library): Call lookup_image_type.
(CHECK_LIB_AVAILABLE): Macro deleted.
(lookup_image_type): Call define_image_type here, rather than via
Finit_image_library, and without using CHECK_LIB_AVAILABLE.
(syms_of_image): Move define_image_type calls for xbm_type and
pbm_type to lookup_image_type.
2012-09-22 22:10:24 +08:00
Eli Zaretskii
287d74553b edebug.texi (Instrumenting): Improve indexing. 2012-09-22 16:24:58 +03:00
Eli Zaretskii
df9685f396 Fix bugs #12447 and #12326 with infloop causes by idle timers, update docs.
src/keyboard.c (timer_check_2): Move calculation of 'timers' and
 'idle_timers' from here ...
 (timer_check): ... to here.  Use Fcopy_sequence to copy the timer
 lists, to avoid infloops when the timer does something stupid,
 like reinvoke itself with the same or smaller time-out.

 lisp/emacs-lisp/timer.el (run-with-idle-timer)
 (timer-activate-when-idle): Warn against reinvoking an idle timer
 from within its own timer action.

 doc/lispref/os.texi (Idle Timers): Warn against reinvoking an idle timer
 from within its own timer action.
2012-09-22 16:16:03 +03:00
Martin Rudalics
8e17c9ba14 Make Temp Buffer Resize Mode less intrusive (Bug#1806).
* window.c (Fsplit_window_internal): Handle only Qt value of
Vwindow_combination_limit separately.
(Qtemp_buffer_resize): New symbol.
(Vwindow_combination_limit): New default value.  Rewrite
doc-string.
* cus-start.el (window-combination-limit): Add new optional
values.
* window.el (temp-buffer-window-show)
(window--try-to-split-window): Obey new values of
window-combination-limit.
(split-window): Test window-combination-limit for t instead of
non-nil.
(display-buffer-at-bottom): New buffer display action function.
* help.el (temp-buffer-resize-regexps): New option.
(temp-buffer-resize-mode): Rewrite doc-string.
(resize-temp-buffer-window): Obey temp-buffer-resize-regexps.
Don't resize reused window.  Suggested by Glen Morris.
2012-09-22 14:56:08 +02:00
Eli Zaretskii
aa1fe812d3 src/dispextern.h: Fix commentary for struct it's string_nchars member. 2012-09-22 15:49:25 +03:00
Eli Zaretskii
589bd69b63 Fix bug #10159 with crashes in auto-complete package.
src/xdisp.c (next_overlay_string): Initialize it->end_charpos for
 the new overlay string.  Otherwise, the call to composition_compute_stop_pos
 in compute_stop_pos uses a wrong it->end_charpos value, and crashes because
 it runs off the end of the overlay string.
2012-09-22 15:31:05 +03:00
Paul Eggert
bbe099e709 * Makefile.in (bootstrap): Simplify build procedure.
Suggested by Wolfgang Jenker in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00456.html>.
2012-09-22 03:59:13 -07:00
Glenn Morris
54afd49976 Auto-commit of generated files. 2012-09-22 06:17:30 -04:00
Paul Eggert
e41c05e55d Merge from gnulib. 2012-09-22 02:46:20 -07:00
Stefan Merten
48a24920cc * rst.el: Revamp section title faces.
(rst-official-version)
(rst-package-emacs-version-alist): Sync with official version
V1.4.0.
(rst-faces-defaults, rst-set-level-default)
(rst-level-face-max, rst-level-face-base-color)
(rst-level-face-base-light, rst-level-face-format-light)
(rst-level-face-step-light, rst-define-level-faces): Obsolete.
(rst-adornment-faces-alist): Match new setup.
(rst-level-1, rst-level-2, rst-level-3, rst-level-4)
(rst-level-5, rst-level-6): New faces.
2012-09-22 11:16:00 +02:00
Paul Eggert
703342f8d8 Do not truncate strsignal output. 2012-09-22 01:22:49 -07:00
Paul Eggert
01108e3f45 * emacs.c (shut_down_emacs): Don't assume stderr is buffered,
or that fprintf is async-signal-safe.  POSIX doesn't require
either assumption.
2012-09-22 00:34:52 -07:00
Chong Yidong
471333800d * frames.texi (Pop-Up Menus): Minor clarification for x-popup-menu.
Fixes: debbugs:11148
2012-09-22 11:29:37 +08:00
Chong Yidong
82f8cd940f Fix auto-save and locking for indirect buffers.
* lisp/simple.el (undo): Handle indirect buffers.

* buffer.c (Fset_buffer_modified_p): Handle indirect buffers.

Fixes: debbugs:8207
2012-09-22 11:07:39 +08:00
Kenichi Handa
fa42927fd0 merge trunk 2012-09-22 11:26:05 +09:00
Kenichi Handa
3cccbd8726 composite.c (composition_reseat_it): Handle the case that a grapheme cluster is not covered by a single font (Bug#12352). 2012-09-22 11:15:29 +09:00
Paul Eggert
58f3a196fc * trouble.texi (Crashing): Document addr2line. 2012-09-21 12:28:41 -07:00
Chong Yidong
09c01941f4 Fix list duplication error in define_image_type.
* image.c (define_image_type): Avoid adding duplicate types to
image_types.  Suggested by Jörg Walter.

Fixes: debbugs:12463
2012-09-21 11:52:23 +08:00
Glenn Morris
ab199df27b ChangeLog date fix 2012-09-20 20:22:27 -07:00
Chong Yidong
acfa068f4a Merge from emacs-24; up to 2012-05-07T14:57:18Z!michael.albinus@gmx.de 2012-09-21 11:03:48 +08:00
Juri Linkov
eb2deaffd1 * lisp/replace.el (query-replace-read-from): Use `read-regexp' instead
of `read-from-minibuffer' when `regexp-flag' is non-nil.
(occur-read-primary-args): Use `read-regexp' instead of
`read-string'.
(multi-occur-in-matching-buffers): Use `read-regexp' instead of
`read-from-minibuffer'.
* lisp/isearch.el (isearch-occur): Use `read-regexp' instead of
`read-string'.
* lisp/dired.el (dired-read-regexp): Use `read-regexp' instead of
`read-from-minibuffer'.
* lisp/progmodes/grep.el (grep-read-regexp): Use `read-regexp' instead
of `read-string'.

Fixes: debbugs:7567
2012-09-21 00:57:13 +03:00
Juri Linkov
5825610b41 * lisp/replace.el (read-regexp): Rename DEFAULT-VALUE arg to DEFAULTS
and allow accepting a list of strings prepended to a list of
standard default values.  Doc fix.

Fixes: debbugs:12321
2012-09-21 00:35:40 +03:00
Juri Linkov
eebbf404b8 * lisp/replace.el (read-regexp): Add HISTORY arg.
Fixes: debbugs:7567
2012-09-21 00:28:47 +03:00
Juri Linkov
41a97e6fcf * lisp/replace.el (read-regexp): Don't add ": " when PROMPT already
ends with a colon and space.

Fixes: debbugs:12321
2012-09-21 00:21:46 +03:00
Tassilo Horn
c9e452d3a1 * doc-view.el (doc-view-display): Better fix for the cl-assertion
error.
2012-09-20 21:53:40 +02:00
Stefan Merten
ee97deeedd * rst.el: Integrate support for imenu' and which-function'.
Fixes feature request bug#11711.

(rst-mode): Create `imenu-create-index-function'.
(rst-get-stripped-line): Delete after refactoring.
(rst-section-tree, rst-section-tree-rec)
(rst-section-tree-point): Refactor and document properly.
(rst-imenu-find-adornments-for-position)
(rst-imenu-convert-cell, rst-imenu-create-index): New
function.
2012-09-20 20:59:00 +02:00
Stefan Monnier
95b9712e9e * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning): New function.
(macroexp--expand-all): Use it.
(macroexp--funcall-and-return): Remove by folding it into its sole
caller (macroexp--warn-and-return).
* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete):
Use macroexp--obsolete-warning.
2012-09-20 09:46:36 -04:00
Stefan Monnier
f490dab981 * lisp/calc/calc.el: Fix last change by removing the whole chunk, since it
was only needed back when Calc was not bundled.
2012-09-20 09:44:45 -04:00
Martin Rudalics
96e8d4114d In debug restore assignment to debugger-old-buffer.
* emacs-lisp/debug.el (debug): Restore assignment to
debugger-old-buffer removed on 2012-09-08.
2012-09-20 15:35:13 +02:00
Glenn Morris
9b154e20db Auto-commit of loaddefs files. 2012-09-20 06:19:05 -04:00
Juri Linkov
0876a82d85 * lisp/dired-aux.el (dired-diff): Remove (require 'diff) since
`diff-latest-backup-file' is now autoloaded.
2012-09-20 12:03:51 +03:00
YAMAMOTO Mitsuharu
d3fa327c47 Fix space in last commit. 2012-09-20 17:35:35 +09:00
YAMAMOTO Mitsuharu
e25c1a3064 Add new load command for Xcode 4.5. 2012-09-20 17:28:48 +09:00
Chong Yidong
9f7c28f0f6 * vc/diff.el (diff-latest-backup-file): Autoload. 2012-09-20 12:29:04 +08:00
Stefan Monnier
e6f0a80dd2 * lisp/calc/calc.el: Remove redundant autoload shape check.
(sel-mode): Don't defvar.
(calc-get-stack-element): Add `sel-mode' arg instead.
(calc-top, calc-top-list): Pass it this additional argument.
* lisp/calc/calc-store.el (calc-store-map):
* lisp/calc/calc-map.el (calc-apply, calc-reduce, calc-map)
(calc-map-equation, calc-outer-product, calc-inner-product):
* lisp/calc/calc-aent.el (calc-alg-entry): Don't bind sel-mode.
2012-09-19 23:44:57 -04:00
Stefan Monnier
7a04bee953 * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Fix last change. 2012-09-19 23:29:41 -04:00
Stefan Monnier
e99f70c8cd * src/alloc.c (mark_object) <PVEC_WINDOW>: Mark prev/next_buffers *after*
calling mark_vectorlike since that's the one that marks the window.
(mark_discard_killed_buffers): Mark the final cdr.
* src/window.h (struct window): Move prev/next_buffers to the
non-standard fields.
* src/window.c (make_window): Initialize prev/next_buffers manually.
2012-09-19 23:10:52 -04:00
Paul Eggert
f75beb4787 Omit unused arg EXPECTED from socket hooks.
* keyboard.c (gobble_input, read_avail_input, tty_read_avail_input):
* nsterm.m (ns_term_init):
* termhooks.h (struct terminal.read_socket_hook):
* w32inevt.c (w32_console_read_socket):
* w32term.c (w32_read_socket):
* xterm.c (XTread_socket):
Omit unused arg EXPECTED.  All callers changed.
(store_user_signal_events): Return void, not int, since callers no
longer care about the return value.  All uses changed.
2012-09-19 18:37:07 -07:00
Juanma Barranquero
b019b76a18 src/w32gui.h (XParseGeometry): Do not declare. 2012-09-20 03:02:21 +02:00
Paul Eggert
e4bce92acb * w32inevt.c (w32_console_read_socket): Return -1 on failure, not 0.
Ignore 'expected'. See Eli Zaretskii in
<http://bugs.gnu.org/12471#8> (last line).
2012-09-19 14:38:00 -07:00
Juri Linkov
127342224e * lisp/dired-aux.el (dired-diff): Add (require 'diff) because
`diff-latest-backup-file' is not autoloaded.
(dired-do-chxxx, dired-do-chmod): Set `no-error-if-not-filep' arg
of `dired-get-filename' to t to not report error when there is
no default file on the current line.
2012-09-19 23:09:55 +03:00
Stefan Monnier
ce97595bd4 * lisp/emacs-lisp/macroexp.el (macroexp--funcall-if-compiled): Rename from
macroexp--eval-if-compile.
(macroexp--funcall-and-return, macroexp--warn-and-return): New funs.
(macroexp--expand-all): Use them.

Fixes: debbugs:12371
2012-09-19 15:59:52 -04:00
Stefan Monnier
46624b4fa1 * lisp/doc-view.el (doc-view-guess-paper-size)
(doc-view-scale-bounding-box): Fix unbound `caddr'.
2012-09-19 13:54:59 -04:00