]> git.eshelyaron.com Git - emacs.git/log
emacs.git
12 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.

12 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.

12 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.

12 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.

12 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)

12 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.

12 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.

12 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.

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

12 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.

12 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.

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

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

12 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.

12 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.

12 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.

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

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

12 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'.

12 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.

12 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.

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

12 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.

12 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.

12 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
12 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.

12 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.

12 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.

12 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

12 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

12 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

12 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

12 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

12 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.

12 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.

12 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
12 years agoReally fix last change.
Chong Yidong [Sun, 23 Sep 2012 09:25:21 +0000 (17:25 +0800)]
Really fix last change.

12 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.

12 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.

12 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.

12 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
12 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
12 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.

12 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
12 years ago* .gdbinit: Just stop at fatal_error_backtrace.
Paul Eggert [Sat, 22 Sep 2012 20:35:46 +0000 (13:35 -0700)]
* .gdbinit: Just stop at fatal_error_backtrace.

See Stefan Monnier's request in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00549.html>.
Remove no-longer-used query of system type.

12 years ago* trouble.texi (Crashing): Document ulimit -c.
Paul Eggert [Sat, 22 Sep 2012 19:27:25 +0000 (12:27 -0700)]
* trouble.texi (Crashing): Document ulimit -c.

12 years agoChangeLog typo fix
Glenn Morris [Sat, 22 Sep 2012 18:11:11 +0000 (11:11 -0700)]
ChangeLog typo fix
(not that I remember suggesting anything...)

12 years agoRe-arrange and edit NEWS.
Chong Yidong [Sat, 22 Sep 2012 17:19:28 +0000 (01:19 +0800)]
Re-arrange and edit NEWS.

12 years agoImplement temp-output-buffer-show in subr.el.
Martin Rudalics [Sat, 22 Sep 2012 16:28:46 +0000 (18:28 +0200)]
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.

12 years ago* simple.el (read-only-mode): Doc fix.
Chong Yidong [Sat, 22 Sep 2012 15:46:57 +0000 (23:46 +0800)]
* simple.el (read-only-mode): Doc fix.

12 years ago* files.el (ctl-x-map): Bind C-x C-q to read-only-mode.
Chong Yidong [Sat, 22 Sep 2012 15:44:43 +0000 (23:44 +0800)]
* files.el (ctl-x-map): Bind C-x C-q to read-only-mode.

Fixes: debbugs:12462
12 years agoMisc doc fixes.
Chong Yidong [Sat, 22 Sep 2012 15:24:26 +0000 (23:24 +0800)]
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
12 years agoRefactor image-type loading.
Chong Yidong [Sat, 22 Sep 2012 14:10:24 +0000 (22:10 +0800)]
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.

12 years agoedebug.texi (Instrumenting): Improve indexing.
Eli Zaretskii [Sat, 22 Sep 2012 13:24:58 +0000 (16:24 +0300)]
edebug.texi (Instrumenting): Improve indexing.

12 years agoFix bugs #12447 and #12326 with infloop causes by idle timers, update docs.
Eli Zaretskii [Sat, 22 Sep 2012 13:16:03 +0000 (16:16 +0300)]
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.

12 years agoMake Temp Buffer Resize Mode less intrusive (Bug#1806).
Martin Rudalics [Sat, 22 Sep 2012 12:56:08 +0000 (14:56 +0200)]
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.

12 years agosrc/dispextern.h: Fix commentary for struct it's string_nchars member.
Eli Zaretskii [Sat, 22 Sep 2012 12:49:25 +0000 (15:49 +0300)]
src/dispextern.h: Fix commentary for struct it's string_nchars member.

12 years agoFix bug #10159 with crashes in auto-complete package.
Eli Zaretskii [Sat, 22 Sep 2012 12:31:05 +0000 (15:31 +0300)]
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.

12 years ago* Makefile.in (bootstrap): Simplify build procedure.
Paul Eggert [Sat, 22 Sep 2012 10:59:13 +0000 (03:59 -0700)]
* Makefile.in (bootstrap): Simplify build procedure.

Suggested by Wolfgang Jenker in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00456.html>.

12 years agoAuto-commit of generated files.
Glenn Morris [Sat, 22 Sep 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoMerge from gnulib.
Paul Eggert [Sat, 22 Sep 2012 09:46:20 +0000 (02:46 -0700)]
Merge from gnulib.

12 years ago* rst.el: Revamp section title faces.
Stefan Merten [Sat, 22 Sep 2012 09:16:00 +0000 (11:16 +0200)]
* 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.

12 years agoDo not truncate strsignal output.
Paul Eggert [Sat, 22 Sep 2012 08:22:49 +0000 (01:22 -0700)]
Do not truncate strsignal output.

12 years ago* emacs.c (shut_down_emacs): Don't assume stderr is buffered,
Paul Eggert [Sat, 22 Sep 2012 07:34:52 +0000 (00:34 -0700)]
* emacs.c (shut_down_emacs): Don't assume stderr is buffered,

or that fprintf is async-signal-safe.  POSIX doesn't require
either assumption.

12 years ago* frames.texi (Pop-Up Menus): Minor clarification for x-popup-menu.
Chong Yidong [Sat, 22 Sep 2012 03:29:37 +0000 (11:29 +0800)]
* frames.texi (Pop-Up Menus): Minor clarification for x-popup-menu.

Fixes: debbugs:11148
12 years agoFix auto-save and locking for indirect buffers.
Chong Yidong [Sat, 22 Sep 2012 03:07:39 +0000 (11:07 +0800)]
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
12 years agomerge trunk
Kenichi Handa [Sat, 22 Sep 2012 02:26:05 +0000 (11:26 +0900)]
merge trunk

12 years agocomposite.c (composition_reseat_it): Handle the case that a grapheme cluster is not...
Kenichi Handa [Sat, 22 Sep 2012 02:15:29 +0000 (11:15 +0900)]
composite.c (composition_reseat_it): Handle the case that a grapheme cluster is not covered by a single font (Bug#12352).

12 years ago* trouble.texi (Crashing): Document addr2line.
Paul Eggert [Fri, 21 Sep 2012 19:28:41 +0000 (12:28 -0700)]
* trouble.texi (Crashing): Document addr2line.

12 years agoFix list duplication error in define_image_type.
Chong Yidong [Fri, 21 Sep 2012 03:52:23 +0000 (11:52 +0800)]
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
12 years agoChangeLog date fix
Glenn Morris [Fri, 21 Sep 2012 03:22:27 +0000 (20:22 -0700)]
ChangeLog date fix

12 years agoMerge from emacs-24; up to 2012-05-07T14:57:18Z!michael.albinus@gmx.de
Chong Yidong [Fri, 21 Sep 2012 03:03:48 +0000 (11:03 +0800)]
Merge from emacs-24; up to 2012-05-07T14:57:18Z!michael.albinus@gmx.de

12 years ago* lisp/replace.el (query-replace-read-from): Use `read-regexp' instead
Juri Linkov [Thu, 20 Sep 2012 21:57:13 +0000 (00:57 +0300)]
* 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
12 years ago* lisp/replace.el (read-regexp): Rename DEFAULT-VALUE arg to DEFAULTS
Juri Linkov [Thu, 20 Sep 2012 21:35:40 +0000 (00:35 +0300)]
* 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
12 years ago* lisp/replace.el (read-regexp): Add HISTORY arg.
Juri Linkov [Thu, 20 Sep 2012 21:28:47 +0000 (00:28 +0300)]
* lisp/replace.el (read-regexp): Add HISTORY arg.

Fixes: debbugs:7567
12 years ago* lisp/replace.el (read-regexp): Don't add ": " when PROMPT already
Juri Linkov [Thu, 20 Sep 2012 21:21:46 +0000 (00:21 +0300)]
* lisp/replace.el (read-regexp): Don't add ": " when PROMPT already
ends with a colon and space.

Fixes: debbugs:12321
12 years ago* doc-view.el (doc-view-display): Better fix for the cl-assertion
Tassilo Horn [Thu, 20 Sep 2012 19:53:40 +0000 (21:53 +0200)]
* doc-view.el (doc-view-display): Better fix for the cl-assertion
error.

12 years ago* rst.el: Integrate support for `imenu' and `which-function'.
Stefan Merten [Thu, 20 Sep 2012 18:59:00 +0000 (20:59 +0200)]
* 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.

12 years ago* lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning): New function.
Stefan Monnier [Thu, 20 Sep 2012 13:46:36 +0000 (09:46 -0400)]
* 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.

12 years ago* lisp/calc/calc.el: Fix last change by removing the whole chunk, since it
Stefan Monnier [Thu, 20 Sep 2012 13:44:45 +0000 (09:44 -0400)]
* lisp/calc/calc.el: Fix last change by removing the whole chunk, since it
was only needed back when Calc was not bundled.

12 years agoIn debug restore assignment to debugger-old-buffer.
Martin Rudalics [Thu, 20 Sep 2012 13:35:13 +0000 (15:35 +0200)]
In debug restore assignment to debugger-old-buffer.

* emacs-lisp/debug.el (debug): Restore assignment to
debugger-old-buffer removed on 2012-09-08.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 20 Sep 2012 10:19:05 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

12 years ago* lisp/dired-aux.el (dired-diff): Remove (require 'diff) since
Juri Linkov [Thu, 20 Sep 2012 09:03:51 +0000 (12:03 +0300)]
* lisp/dired-aux.el (dired-diff): Remove (require 'diff) since
`diff-latest-backup-file' is now autoloaded.

12 years agoFix space in last commit.
YAMAMOTO Mitsuharu [Thu, 20 Sep 2012 08:35:35 +0000 (17:35 +0900)]
Fix space in last commit.

12 years agoAdd new load command for Xcode 4.5.
YAMAMOTO Mitsuharu [Thu, 20 Sep 2012 08:28:48 +0000 (17:28 +0900)]
Add new load command for Xcode 4.5.

12 years ago* vc/diff.el (diff-latest-backup-file): Autoload.
Chong Yidong [Thu, 20 Sep 2012 04:29:04 +0000 (12:29 +0800)]
* vc/diff.el (diff-latest-backup-file): Autoload.

12 years ago* lisp/calc/calc.el: Remove redundant autoload shape check.
Stefan Monnier [Thu, 20 Sep 2012 03:44:57 +0000 (23:44 -0400)]
* 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.

12 years ago* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Fix last change.
Stefan Monnier [Thu, 20 Sep 2012 03:29:41 +0000 (23:29 -0400)]
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Fix last change.

12 years ago* src/alloc.c (mark_object) <PVEC_WINDOW>: Mark prev/next_buffers *after*
Stefan Monnier [Thu, 20 Sep 2012 03:10:52 +0000 (23:10 -0400)]
* 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.

12 years agoOmit unused arg EXPECTED from socket hooks.
Paul Eggert [Thu, 20 Sep 2012 01:37:07 +0000 (18:37 -0700)]
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.

12 years agosrc/w32gui.h (XParseGeometry): Do not declare.
Juanma Barranquero [Thu, 20 Sep 2012 01:02:21 +0000 (03:02 +0200)]
src/w32gui.h (XParseGeometry): Do not declare.

12 years ago* w32inevt.c (w32_console_read_socket): Return -1 on failure, not 0.
Paul Eggert [Wed, 19 Sep 2012 21:38:00 +0000 (14:38 -0700)]
* 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).

12 years ago* lisp/dired-aux.el (dired-diff): Add (require 'diff) because
Juri Linkov [Wed, 19 Sep 2012 20:09:55 +0000 (23:09 +0300)]
* 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.

12 years ago* lisp/emacs-lisp/macroexp.el (macroexp--funcall-if-compiled): Rename from
Stefan Monnier [Wed, 19 Sep 2012 19:59:52 +0000 (15:59 -0400)]
* 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
12 years ago* lisp/doc-view.el (doc-view-guess-paper-size)
Stefan Monnier [Wed, 19 Sep 2012 17:54:59 +0000 (13:54 -0400)]
* lisp/doc-view.el (doc-view-guess-paper-size)
(doc-view-scale-bounding-box): Fix unbound `caddr'.

12 years agoNew feature: set optimal slice from BoundingBox information.
Tassilo Horn [Wed, 19 Sep 2012 17:35:18 +0000 (19:35 +0200)]
New feature: set optimal slice from BoundingBox information.
* doc-view.el (doc-view-mode-map): Add keybinding.
(doc-view-menu): Add menu entry.
(doc-view-set-slice): Adapt docstring.
(doc-view-get-bounding-box, doc-view-guess-paper-size)
(doc-view-scale-bounding-box)
(doc-view-set-slice-from-bounding-box): New functions.
(doc-view-paper-sizes): New defvar.

* doc/emacs/misc.texi (DocView Slicing): Document new slice from
BoundingBox feature.

12 years ago* frame.c (read_integer): Remove. All uses replaced by strtol/strtoul.
Paul Eggert [Wed, 19 Sep 2012 17:28:13 +0000 (10:28 -0700)]
* frame.c (read_integer): Remove.  All uses replaced by strtol/strtoul.

(XParseGeometry): Now static.  Substitute extremal values for
values that are out of range.

12 years agoPartial fix for bug#12371
Glenn Morris [Wed, 19 Sep 2012 16:09:43 +0000 (09:09 -0700)]
Partial fix for bug#12371

* emacs-lisp/macroexp.el (byte-compile-warn-obsolete)
(byte-compile-log-warning): Autoload.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 19 Sep 2012 10:17:35 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoAllow customization of calendar month header text
Glenn Morris [Wed, 19 Sep 2012 07:27:29 +0000 (00:27 -0700)]
Allow customization of calendar month header text

* lisp/calendar/calendar.el (calendar-american-month-header)
(calendar-european-month-header, calendar-iso-month-header)
(calendar-month-header): New options.
(calendar-set-date-style): Set calendar-month-header.  Redraw calendar.
(calendar-generate-month): Use calendar-month-header.

Fixes: debbugs:9510