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
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
Tassilo Horn
db8a5a189e
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.
2012-09-19 19:35:18 +02:00
Paul Eggert
05642592f0
* frame.c (read_integer): Remove. All uses replaced by strtol/strtoul.
...
(XParseGeometry): Now static. Substitute extremal values for
values that are out of range.
2012-09-19 10:28:13 -07:00
Glenn Morris
35f5b19d7a
Partial fix for bug#12371
...
* emacs-lisp/macroexp.el (byte-compile-warn-obsolete)
(byte-compile-log-warning): Autoload.
2012-09-19 09:09:43 -07:00
Glenn Morris
a732eace5f
Auto-commit of generated files.
2012-09-19 06:17:35 -04:00
Glenn Morris
69f6644cd4
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
2012-09-19 00:27:29 -07:00
Chong Yidong
4ef1567b27
* killing.texi (Yanking): Minor clarification.
...
Fixes: debbugs:12469
2012-09-19 14:51:33 +08:00
Jan Djärv
e543ae9174
* lisp/startup.el (command-line-ns-option-alist): Add -g and --geometry.
...
* src/frame.c (read_integer, XParseGeometry): Moved from w32xfns.c.
(Fx_parse_geometry): If there is a space in string, call
Qns_parse_geometry, otherwise do as on other terms.
* src/w32xfns.c (read_integer, XParseGeometry): Move to frame.c.
* src/nsfns.m (XParseGeometry): Remove.
(Fx_create_frame): Call x_set_offset to correctly interpret
top_pos in geometry.
Fixes: debbugs:12368
2012-09-19 08:47:01 +02:00
Juri Linkov
2fd5e67d92
* lisp/dired-aux.el (dired-diff): Restore original functionality of
...
getting the default value, but keep new feature of using the
latest existing backup file (`diff-latest-backup-file').
2012-09-19 02:40:39 +03:00
Juri Linkov
42917e790e
* lisp/dired.el (dired-mark): If the region is active in Transient Mark
...
mode, mark all files in the active region. Doc fix.
(dired-unmark, dired-flag-file-deletion, dired-unmark-backward):
Doc fix.
Fixes: debbugs:10624
2012-09-19 02:18:06 +03:00
Juri Linkov
20f70ede43
* lisp/dired-aux.el (dired-do-chxxx, dired-do-chmod): Default file
...
attributes for M-n are pulled from the file at point.
(dired-do-chgrp, dired-do-chown, dired-do-touch): Doc fix.
Suggested by Drew Adams.
Fixes: debbugs:10624
2012-09-19 01:57:45 +03:00
Dmitry Gutov
32fb816220
* lisp/progmodes/ruby-mode.el (ruby-brace-to-do-end): Don't add extra
...
whitespace after "end".
(ruby-do-end-to-brace): Collapse block to one line if it fits
within fill-column.
2012-09-19 02:10:19 +04:00
Jan Djärv
5fb91e7197
* configure.ac (HAVE_GTK): Mention if we use GTK2 or GTK3.
2012-09-18 20:13:01 +02:00
Eli Zaretskii
ae97707fa2
Fix bug #12464 with test for giflib 5.0.0 on MS-Windows.
...
nt/configure.bat: Include stddef.h before gif_lib.h, to have size_t
defined, as needed by giflib-5.0.0.
2012-09-18 13:49:33 +03:00
Glenn Morris
9d83259abd
Auto-commit of loaddefs files.
2012-09-18 06:17:43 -04:00
Glenn Morris
fefa299077
rmailedit comment
2012-09-18 00:19:25 -07:00
Martin Rudalics
37ab5092e9
Fix some recent changes in debug.el.
...
* emacs-lisp/debug.el (debugger-bury-or-kill): Fix customization
value.
(debug): Don't remove debugger window when debugger is expected
to be back.
2012-09-18 09:07:13 +02:00
Chong Yidong
ed1f0bd388
Doc fixes for defface and friends.
...
* lisp/cus-edit.el (custom-unlispify-remove-prefixes): Add warning.
* lisp/custom.el (defface): Doc fix.
* doc/lispref/customize.texi (Customization): Define customization more
carefully.
(Common Keywords): Add xref to Constant Variables.
* doc/lispref/display.texi (Faces): Discuss anonymous faces.
(Face Attributes): Tweak intro.
(Defining Faces): Move after the Face Attributes node. Copyedits.
(Displaying Faces): Describe role of inheritance.
* doc/lispref/variables.texi (Defining Variables): Link to defcustom's node
instead of the higher-level Customization chapter.
Fixes: debbugs:11440
2012-09-18 13:14:42 +08:00
Martin Blais
a11035b8cd
* lisp/progmodes/compile.el (compilation-start): Use compilation-always-kill
...
to initialize query-on-exit; then test that instead.
Fixes: debbugs:12288
2012-09-18 00:18:36 -04:00
Andreas Schwab
d3612ac370
* Makefile.in (bootstrap): Revert last change. Run config.status
...
after config.status --recheck, run configure from $(srcdir).
(config.status): Run configure from $(srcdir).
2012-09-18 00:43:12 +02:00
Paul Eggert
dee26dfa11
* Makefile.in: Run autogen/copy_autogen if autogen.sh fails,
...
to create 'configure'; problem reported by Andreas Schwab in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00438.html >.
* autogen.sh: Exit with status 1 when failing due to missing tools,
reverting the 2012-09-10 change to this file.
* autogen/copy_autogen: Fail if one of the subsidiary actions fail.
Use 'cp -f' for the build-aux files, since the destinations are
typically read-only.
2012-09-17 15:35:28 -07:00
Paul Eggert
50bfc8243c
* Makefile.in: Fix build error on FreeBSD.
...
($(MAKEFILE_NAME)): Pass MAKE='$(MAKE)' to config.status's env.
Suggested by Wolfgang Jenker in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00430.html >.
(MAKE_CONFIG_STATUS): Remove. Remaining use expanded.
This undoes part of the 2012-09-10 patch.
(bootstrap): Run ./configure, rather than trying to run config.status
if it exists. That builds src/epaths.h more reliably.
2012-09-17 14:33:14 -07:00
Eli Zaretskii
c8b9f1bcbf
Fix bug #12196 with infloop when cache-long-line-scans is non-nil.
...
src/search.c (scan_buffer): Use character positions in calls to
region_cache_forward and region_cache_backward, not byte
positions.
2012-09-17 23:11:34 +03:00
Glenn Morris
51eed9b88f
Fix typo in previous
2012-09-17 15:53:27 -04:00
Stefan Merten
64f6a73693
2012-09-17 Stefan Merten <smerten@oekonux.de>
...
* rst.el: Add support for `testcover'.
(rst-defcustom-testcover, rst-testcover-add-compose)
(rst-testcover-add-1value): New functions.
(rst-portable-mark-active-p): Replace by `use-region-p'.
(rst-update-section, rst-classify-adornment)
(rst-find-title-line): Mark `1value' forms.
(rst-classify-adornment): Remove superfluous form.
(rst-update-section, rst-get-adornments-around)
(rst-adornment-complete-p, rst-get-next-adornment)
(rst-adjust, rst-promote-region)
(rst-display-adornments-hierarchy, rst-straighten-adornments)
(rst-find-pfx-in-region, rst-section-tree-rec)
(rst-section-tree-point, rst-toc-insert, rst-toc-insert-node)
(rst-toc-node, rst-toc, rst-forward-section)
(rst-iterate-leftmost-paragraphs)
(rst-iterate-leftmost-paragraphs-2, rst-enumerate-region)
(rst-bullet-list-region)
(rst-convert-bullets-to-enumeration, rst-font-lock-keywords)
(rst-compile-find-conf, rst-compile)
(rst-repeat-last-character): Fix style.
2012-09-17 19:38:09 +02:00
Glenn Morris
6b250df614
Add ChangeLog bug refs
2012-09-17 13:15:27 -04:00
Chong Yidong
580bd8683b
Make pcomplete less eager to add an extra space.
...
* comint.el (comint--complete-file-name-data): Don't add a space
if the status is `sole'; that adds a gratuitous space in the
completion-cycling case.
* pcomplete.el (pcomplete-completions-at-point): Likewise.
Fixes: debbugs:12092
2012-09-17 22:45:51 +08:00
Juanma Barranquero
caf4040f9e
nt/config.nt: Sync with autogen/config.in.
...
(BROKEN_SA_RESTART, SYNC_INPUT): Remove.
2012-09-17 15:22:45 +02:00
Richard M. Stallman
0dee970c88
When toggling mime processing off, just don't do mime processing.
2012-09-17 07:49:10 -04:00
Richard M. Stallman
acb1c47be0
rmail-retry-failure must avoid mime processing.
2012-09-17 07:44:48 -04:00
Richard M. Stallman
cdfca592b0
message-in-body-p should not alter anything.
2012-09-17 07:41:39 -04:00
Richard M. Stallman
2e8efb2f47
Handle Mail mode correctly. Some code cleanup.
2012-09-17 07:39:41 -04:00
Glenn Morris
bb7dce392f
Auto-commit of generated files.
2012-09-17 06:17:50 -04:00
Richard M. Stallman
69de3ec61f
Fix bug when a name has no key.
2012-09-17 05:49:55 -04:00
Eli Zaretskii
9b318728ab
Fix a typo in a comment.
2012-09-17 11:22:32 +03:00