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
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
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
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
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
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
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
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
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
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
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
Richard M. Stallman
69de3ec61f
Fix bug when a name has no key.
2012-09-17 05:49:55 -04:00
Chong Yidong
865fe16fd2
Update docstrings and comments to use "init file" terminology.
...
* bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
* comint.el (comint-prompt-read-only):
* custom.el (defcustom):
* hi-lock.el (hi-lock-mode):
* ibuffer.el (ibuffer-formats):
* ielm.el (ielm-prompt-read-only):
* novice.el (disable-command):
* saveplace.el (toggle-save-place):
* speedbar.el (speedbar-supported-extension-expressions):
* startup.el (auto-save-list-file-prefix, init-file-user)
(after-init-hook, inhibit-startup-echo-area-message):
* strokes.el (strokes-help):
* time-stamp.el (time-stamp):
* calendar/calendar.el (calendar, diary-file):
* calendar/diary-lib.el (diary-mail-entries, diary)
(diary-list-entries-hook):
* calendar/holidays.el (holidays, calendar-holidays):
* calendar/lunar.el (lunar-phases):
* calendar/solar.el (sunrise-sunset):
* emulation/edt.el (edt-load-keys):
* emulation/viper.el (viper-mode):
* eshell/em-alias.el (eshell-command-aliases-list):
* eshell/esh-util.el (eshell-convert-numeric-arguments):
* international/ogonek.el (ogonek-information):
* net/tramp-cmds.el (tramp-bug):
* net/quickurl.el (quickurl-reread-hook-postfix):
* play/decipher.el (decipher-font-lock-keywords):
* progmodes/cc-styles.el (c-set-style):
* progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
* progmodes/inf-lisp.el (inferior-lisp-prompt):
* progmodes/octave-mod.el (octave-mode):
* progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
* progmodes/verilog-mode.el (verilog-read-defines):
* textmodes/two-column.el (2C-mode): Likewise.
2012-09-17 13:41:04 +08:00
Chong Yidong
d079ee5ffe
Convert several shell.el defvars to defcustoms.
...
* shell.el (shell-file-name-chars, shell-file-name-quote-list)
(shell-dynamic-complete-functions): Convert to defcustom.
(shell-prompt-pattern, shell-completion-fignore): Doc fix.
2012-09-17 13:01:10 +08:00
Glenn Morris
2bc9406c23
Fix ChangeLog, add missing :version.
2012-09-16 17:48:04 -07:00
Katsumi Yamaoka
48093eb9bc
mail/mailabbrev.el (mail-abbrev-expand-hook): Work for a mail aliasee that holds many addresses.
2012-09-16 23:16:15 +00:00
Leo Liu
a8c14da849
IDO: Disable match re-ordering for buffer switching
...
Fixes: debbugs:2042
2012-09-17 06:23:49 +08:00
Chong Yidong
40d70ecb6d
Fix marker usage in align-areas.
...
* align.el (align-areas): Call the indication function with
positions instead of markers for arguments.
Fixes: debbugs:12343
2012-09-17 00:27:20 +08:00
Chong Yidong
1667e065d0
* files.el (parse-colon-path): Use split-string.
...
Fixes: debbugs:12351
2012-09-16 23:57:28 +08:00
Chong Yidong
71ce58e752
Mark display-buffer-function as obsolete.
...
* lisp/window.el (display-buffer-function): Mark as obsolete.
Fixes: debbugs:12166
2012-09-16 12:52:38 +08:00
Chong Yidong
fdc2806d0b
* window.el (special-display-popup-frame): Doc fix.
...
Fixes: debbugs:8853
2012-09-16 12:43:46 +08:00