Leo Liu
2fc71e3c45
Prune erroneous values in dired-get-marked-files
...
Fixes: debbugs:13152
2013-01-19 02:35:44 +08:00
Leo Liu
b117094709
* lisp/progmodes/js.el: Tweak autoload cookie for alias.
2013-01-19 02:22:18 +08:00
Michael Albinus
0eb8768885
* autorevert.el (auto-revert-notify-watch-descriptor): Make it
...
buffer local, again. This was lost with the fix on 2013-01-12.
2013-01-17 20:12:40 +01:00
Jürgen Hötzel
99d36ea8f6
* eshell/esh-util.el (eshell-path-env): Make it buffer local, in
...
order to support several eshell buffers in parallel.
2013-01-17 11:01:33 +01:00
Michael Albinus
68a08a32e3
* autorevert.el (auto-revert-use-notify): In the :set function, do
...
not modify `kill-buffer-hook'.
(auto-revert-notify-rm-watch): Remove
`auto-revert-notify-rm-watch' from `kill-buffer-hook'.
(auto-revert-notify-add-watch): Do not call
`auto-revert-notify-rm-watch', but add it to a buffer local
`kill-buffer-hook'.
2013-01-17 10:06:47 +01:00
Glenn Morris
19503d5abf
etags.el fix for bug#13412
...
* lisp/progmodes/etags.el (tags-table-check-computed-list):
Preserve point in tags buffer.
2013-01-16 21:07:25 -05:00
Stefan Monnier
e59eee439c
* lisp/emacs-lisp/trace.el (trace--read-args): Use a closure and an honest
...
call to `eval' rather than a backquoted lambda.
2013-01-16 14:06:15 -05:00
Glenn Morris
5dfac85d20
Auto-commit of loaddefs files.
2013-01-16 07:21:01 -05:00
Glenn Morris
059fc5111d
* lisp/gnus/smiley.el (smiley-style): Make the file loadable in batch mode.
...
Not likely to be very useful, of course, but helps with automated testing.
2013-01-15 21:46:25 -05:00
Glenn Morris
f8a42ad607
Doc fixes related to "(declare (indent symbol))" (bug#13450)
...
* doc/lispref/macros.texi (Indenting Macros):
Fix order of an indent symbol's arguments.
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-function): Doc fix.
2013-01-15 21:03:06 -05:00
Glenn Morris
41b057adee
* rmailmm.el (rmail-insert-mime-forwarded-message): Revert 2012-12-29 change
...
Ref:
<http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00360.html >
(Do not merge to trunk)
2013-01-15 20:44:11 -05:00
Stefan Monnier
cb9c0a53bc
* lisp/emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to
...
the use of nadvice.el.
* lisp/emacs-lisp/nadvice.el (advice--tweak): Make it possible for `tweak'
to return an explicit nil.
(advice--remove-function): Change accordingly.
* test/automated/advice-tests.el: Split up. Add advice-test-preactivate.
2013-01-15 01:05:22 -05:00
Stefan Monnier
ef8214345b
* lisp/gnus/nnimap.el (nnimap-keepalive): Don't throw an error if there's no
...
more imap process running.
2013-01-14 23:26:28 -05:00
Stefan Monnier
6e8cd0aeca
* lisp/progmodes/which-func.el (which-function): Silence imenu errors.
...
Fixes: debbugs:13433
2013-01-14 23:20:13 -05:00
Michael Mauger
4586ce8a59
* progmodes/sql.el: (sql-imenu-generic-expression):
...
(sql-mode-font-lock-object-name): Match schema qualified names.
(sql-connect): Use string keys.
(sql-product-interactive): Wait for interpreter prompt.
(sql-comint-oracle): Set process coding based on NLS_LANG.
2013-01-14 22:21:56 -05:00
Michael Mauger
9d55215c18
* progmodes/sql.el (sql-output-to-send): Remove, unused.
...
(sql-interactive-remove-continuation-prompt):
(sql-send-magic-terminator, sql-interactive-mode): Remove references.
2013-01-14 21:35:45 -05:00
Julien Danjou
982c5d68ff
gnus-sum.el: gnus-sum: fix `gnus-summary-from-or-to-or-newsgroups' address comparison
2013-01-14 22:09:16 +00:00
Leo Liu
57dd9e6886
Sync window-point and point in calendar-redraw
...
Fixes: debbugs:13420
2013-01-14 23:39:04 +08:00
Glenn Morris
6f24caecb0
Auto-commit of loaddefs files.
2013-01-14 06:20:54 -05:00
Glenn Morris
d6d02e06ee
Remove compilation-error-regexp-alist-alist (presumed) extraneous backslash
2013-01-13 17:09:38 -08:00
Glenn Morris
51e7349210
Fix interpretation of gnu line.col1-col2 error message format
...
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
* test/automated/compile-tests.el (compile-tests--test-regexps-data):
Fix interpretation of gnu line.col1-col2 format.
Fixes: debbugs:13335
2013-01-13 17:08:13 -08:00
Romain Francoise
b35b088608
Delete merge marker.
2013-01-13 22:26:10 +01:00
Glenn Morris
c0511b5769
Merge from emacs-24; up to 2012-12-10T20:27:33Z!eggert@cs.ucla.edu
2013-01-13 12:03:01 -08:00
Richard M. Stallman
9f7e86ef28
Doc fix.
2013-01-13 14:48:04 -05:00
Richard M. Stallman
4c0a6d4abd
Fix bug that f in Rmail, in some situations, would insert entire Rmail file.
2013-01-13 14:46:27 -05:00
Eli Zaretskii
ad33a799f8
Avoid warnings from cus-start.el regarding scroll-bar-adjust-thumb-portion.
...
lisp/cus-start.el (all): Avoid warnings about
scroll-bar-adjust-thumb-portion on platforms where it is not
defined.
2013-01-13 19:47:45 +02:00
Bastien Guerry
a89c8ef024
Merge Org 7.9.3d (commit e8f5b0ad).
2013-01-13 11:33:16 +01:00
Jan Djärv
616763d517
Make scroll-bar-adjust-thumb-portion customizable, adjust documentation.
...
* lisp/cus-start.el (all): Add scroll-bar-adjust-thumb-portion.
* src/xterm.c (syms_of_xterm): Adjust documentation for
scroll-bar-adjust-thumb-portion.
2013-01-11 06:09:30 +01:00
Stefan Monnier
e5b5a34dd1
* lisp/jit-lock.el (jit-lock-debug-mode): New minor mode.
...
(jit-lock--debug-fontifying): New var.
(jit-lock--debug-fontify): New function.
* lisp/subr.el (condition-case-unless-debug): Don't prevent catching the
error, just let the debbugger run.
* lisp/emacs-lisp/timer.el (timer-event-handler): Don't prevent debugging
timer code and don't drop errors silently.
2013-01-12 20:23:48 -05:00
Michael Albinus
71c661e4e6
* autorevert.el (auto-revert-notify-handler): Use `file-equal-p'.
2013-01-12 20:24:27 +01:00
Michael Albinus
2daddd9e8a
* autorevert.el (auto-revert-notify-watch-descriptor): Give it
...
`permanent-local' property.
2013-01-12 14:30:00 +01:00
Eli Zaretskii
86fbb162a4
Fix filtering of file notification events in autorevert.el.
...
lisp/autorevert.el (auto-revert-notify-handler): Fix filtering of
file notification by ACTION. For filtering by file name, compare
only the non-directory part of the file name.
2013-01-12 13:25:39 +02:00
Stefan Monnier
96c421bba7
* lisp/autorevert.el: Use cl-lib instead of cl.
2013-01-11 23:17:08 -05:00
Stefan Monnier
a07846093f
* lisp/vc/vc-bzr.el (vc-bzr--sanitize-header): New function.
...
(vc-bzr-checkin): Use it.
* lisp/vc/log-edit.el (log-edit-extract-headers): Don't presume FUNCTION
will preserve match-data.
Fixes: debbugs:13307
2013-01-11 22:15:14 -05:00
Felix H. Dahlke
f90ff90659
* lisp/progmodes/js.el: Fix multiline declarations's indentation.
...
(js--declaration-keyword-re): New var.
(js--multi-line-declaration-indentation): New function.
(js--proper-indentation): Use it.
Fixes: debbugs:8576
2013-01-11 18:24:52 -05:00
Aaron S. Hawley
9fc9a531a5
Disambiguate function and variable references in docstrings.
...
* lisp/comint.el (comint-history-isearch-message): Fix ambiguous doc
string cross-reference(s).
* lisp/ffap.el (ffap-string-at-point-region, ffap-next)
(ffap-string-at-point, ffap-string-around)
(ffap-copy-string-as-kill, ffap-highlight-overlay)
(ffap-literally): Fix ambiguous doc string cross-reference(s).
* lisp/font-lock.el (font-lock-keywords-alist)
(font-lock-removed-keywords-alist): Fix ambiguous doc string
cross-reference(s).
* lisp/help-mode.el (help-xref-symbol-regexp): Add "call" as a hint for
a cross-reference to a function.
* lisp/info.el (Info-find-emacs-command-nodes): Fix ambiguous doc
string cross-reference(s).
* lisp/isearch.el (isearch-message-function, isearch-fail-pos): Fix
ambiguous doc string cross-reference(s).
* lisp/misearch.el (multi-isearch-next-buffer-function): Fix ambiguous
doc string cross-reference(s).
* lisp/newcomment.el (comment-box): Fix ambiguous doc string
cross-reference(s).
* lisp/printing.el (pr-txt-printer-alist, pr-ps-printer-alist)
(pr-setting-database): Fix ambiguous doc string
cross-reference(s).
* lisp/ps-print.el (ps-even-or-odd-pages, ps-spool-buffer-with-faces)
(ps-n-up-filling-database): Fix ambiguous doc string
cross-reference(s).
* lisp/server.el (server-buffer, server-log): Fix ambiguous doc string
cross-reference(s).
* lisp/simple.el (newline, delete-backward-char, delete-forward-char)
(minibuffer-history-isearch-message, kill-line, track-eol)
(temporary-goal-column): Fix ambiguous doc string
cross-reference(s).
* lisp/whitespace.el (whitespace-point)
(whitespace-font-lock-refontify, whitespace-bob-marker)
(whitespace-eob-marker): Fix ambiguous doc string
cross-reference(s).
* lisp/calc/calc.el (calc-highlight-selections-with-faces)
(calc-dispatch): Fix ambiguous doc string cross-reference(s).
* lisp/emacs-lisp/edebug.el (edebug-read, edebug-eval-defun): Fix
ambiguous doc string cross-reference(s).
* lisp/gnus/gnus-start.el (gnus-check-new-newsgroups): Fix ambiguous doc string
cross-reference(s).
* lisp/gnus/gnus-sum.el (gnus-summary-newsgroup-prefix): Fix ambiguous doc string
cross-reference(s).
* lisp/international/mule.el (add-to-coding-system-list): Fix ambiguous
doc string cross-reference(s).
* lisp/progmodes/cc-fonts.el (c-font-lock-keywords-3)
(c++-font-lock-keywords-3, objc-font-lock-keywords-3)
(java-font-lock-keywords-3, idl-font-lock-keywords-3)
(pike-font-lock-keywords-3): Fix ambiguous doc string
cross-reference(s).
* lisp/progmodes/compile.el (compile): Fix ambiguous doc string
cross-reference(s).
* lisp/progmodes/etags.el (tags-table-files)
(tags-table-files-function, tags-included-tables-function): Fix
ambiguous doc string cross-reference(s).
* lisp/progmodes/gdb-mi.el (gdb, gdb-setup-windows)
(gdb-restore-windows): Fix ambiguous doc string
cross-reference(s).
* lisp/textmodes/flyspell.el (flyspell-mark-duplications-flag)
(flyspell-default-deplacement-commands): Fix ambiguous doc string
cross-reference(s).
* lisp/textmodes/ispell.el (ispell-accept-output): Fix ambiguous doc
string cross-reference(s).
* lisp/textmodes/sgml-mode.el (html-tag-help): Fix ambiguous doc string
cross-reference(s).
* lisp/vc/compare-w.el (compare-ignore-whitespace)
(compare-ignore-case, compare-windows-dehighlight): Fix ambiguous
doc string cross-reference(s).
* lisp/vc/diff.el (diff): Fix ambiguous doc string cross-reference(s).
* src/insdel.c (Fcombine_after_change_execute, syms_of_insdel): Fix
ambiguous doc string cross-reference(s).
* src/keyboard.c (Fcommand_execute, syms_of_keyboard): Fix ambiguous
doc string cross-reference(s).
* src/window.c (Fwindow_point, syms_of_window): Fix ambiguous doc
string cross-reference(s).
Fixes: debbugs:12686
2013-01-11 18:08:55 -05:00
Stefan Monnier
ab7c80f1b8
*** empty log message ***
2013-01-11 18:03:04 -05:00
Michael Albinus
c88be99696
Fix a scoping error.
2013-01-11 23:54:42 +01:00
Michael Albinus
65adfa202b
* autorevert.el (top): Require 'cl in order to pacify byte compiler.
...
(auto-revert-notify-rm-watch): Ignore errors.
(auto-revert-notify-add-watch): Ignore errors. Use '(modify) for
inotify, and '(size last-write-time) for w32notify. Set
buffer-local `auto-revert-use-notify' to nil when adding a file
watch fails - this is a fallback to the file modification check.
(auto-revert-notify-event-p, auto-revert-notify-event-descriptor)
(auto-revert-notify-event-action)
(auto-revert-notify-event-file-name): New defuns.
(auto-revert-notify-handler): Use them. Implement first
plausibility checks.
(auto-revert-handler): Handle also `auto-revert-tail-mode'.
2013-01-11 23:36:32 +01:00
Julien Danjou
43b2e2e71a
color.el: fix color-rgb-to-hsv computing
2013-01-11 15:04:24 +00:00
Dmitry Antipov
30818a239e
Use point-max-marker and point-min-marker here and there.
...
* lisp/emacs-lisp/ert.el (ert-run-test): Use point-max-marker.
* lisp/erc/erc-dcc.el (erc-dcc-chat-setup): Likewise.
* lisp/gnus/gnus-async.el (gnus-async-article-callback): Likewise.
* lisp/erc/erc-dcc.el (erc-dcc-send-file): Use point-min-marker.
* lisp/gnus/gnus-art.el (gnus-mime-display-security): Use point-min-marker
and point-max-marker.
2013-01-11 14:40:54 +04:00
Eli Zaretskii
10e714d51d
Fix last commit in autorevert.el.
...
lisp/autorevert.el (auto-revert-notify-rm-watch)
(auto-revert-notify-add-watch): Fix typos in w32notify function
names.
2013-01-11 11:45:54 +02:00
Uwe Brauer
0b2780df45
lisp/gnus/mml-smime.el: Add mml-smime-encrypt-to-self
...
* mml-smime.el (mml-smime-encrypt-to-self): New user option analogous
to mml2015-encrypt-to-self.
(mml-smime-epg-encrypt): Respect mml-smime-encrypt-to-self.
2013-01-11 03:06:13 +00:00
Michael Albinus
a778dd57d0
* autorevert.el (auto-revert-notify-enabled): Move up.
...
(auto-revert-use-notify): New defcustom.
(auto-revert-mode, global-auto-revert-mode)
(auto-revert-notify-add-watch, auto-revert-handler)
(auto-revert-buffers): Use `auto-revert-use-notify' instead of
`auto-revert-notify-enabled'.
2013-01-10 21:26:15 +01:00
Elias Pipping
72781fefa6
* lisp/files.el (auto-mode-alist): Use doc-view for djvu files.
...
* lisp/doc-view.el (doc-view-document->bitmap):
Use doc-view-single-page-converter-function instead of
single-page-converter arg; adjust callers.
Fixes: debbugs:13164
2013-01-10 10:50:04 -05:00
Feng Li
e6ed8f0846
* lisp/progmodes/which-func.el (which-function): Understand Semantic's use
...
of overlays in imenu--index-alist.
2013-01-10 10:36:01 -05:00
Wolfgang Jenkner
327a6ccaa0
* lisp/man.el: Handle different "man -k" behaviors. Use utf-8.
...
(Man-man-k-use-anchor): New var.
(Man-parse-man-k): New function.
(Man-completion-table): Use it.
(man): Flush the completion cache between uses.
* test/automated/man-tests.el: New file.
Fixes: debbugs:13160
2013-01-10 10:01:35 -05:00
Michael Albinus
ed9112575e
* autorevert.el: Add file watch support.
...
(auto-revert-notify-enabled): New defconst.
(auto-revert-notify-watch-descriptor-hash-list)
(auto-revert-notify-watch-descriptor)
(auto-revert-notify-modified-p): New defvars.
(auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
(auto-revert-notify-handler): New defuns.
(auto-revert-mode, global-auto-revert-mode): Remove file watches
when mode is disabled.
(auto-revert-handler): Check for `auto-revert-notify-modified-p'.
(auto-revert-buffers): Add file watches for active buffers.
2013-01-10 15:27:48 +01:00
Dmitry Antipov
58cc0a010b
Omit buffer_slot_type_mismatch and use generic predicates to enforce
...
the type of per-buffer values where appropriate.
* src/lisp.h (struct Lisp_Buffer_Objfwd): Rename slottype member to
predicate, which is how it's really used now. Adjust comment.
* src/buffer.h (buffer_slot_type_mismatch): Remove prototype.
* src/buffer.c (buffer_slot_type_mismatch): Remove.
(DEFVAR_PER_BUFFER, defvar_per_buffer): Rename type argument to
predicate. Adjust comment.
(syms_of_buffer): Use Qsymbolp for major-mode. Use Qintegerp for
fill-column, left-margin, tab-width, buffer-saved-size,
left-margin-width, right-margin-width, left-fringe-width,
right-fringe-width, scroll-bar-width and buffer-display-count.
Use Qstringp for default-directory, buffer-file-name,
buffer-file-truename and buffer-auto-save-file-name. Use Qfloatp for
scroll-up-aggressively and scroll-down-aggressively. Use Qnumberp for
line-spacing.
* src/data.c (store_symval_forwarding): Adjust to call the predicate.
* lisp/cus-start.el (toplevel): Only allow float values for
scroll-up-aggressively and scroll-down-aggressively.
Allow any number for line-spacing.
2013-01-10 14:30:16 +04:00
Stefan Monnier
bbc7ff2588
* lisp/doc-view.el (doc-view-pdfdraw-program): Allow "pdfdraw" name.
...
(doc-view-pdf->png-converter-function): Use mupdf if available.
(doc-view-djvu->png-converter-function)
(doc-view-ps->png-converter-function): Remove.
(doc-view--image-file-pattern): Replace doc-view--image-file-extension.
(doc-view-goto-page, doc-view-convert-current-doc, doc-view-display)
(doc-view-already-converted-p): Adjust accordingly.
(doc-view-mode-p): Simplify.
(doc-view-enlarge): Use setq-local.
(doc-view-pdf->png-converter-ghostscript)
(doc-view-djvu->png-converter-ddjvu)
(doc-view-pdf->png-converter-mupdf): Rework to call
doc-view-start-process directly.
(doc-view-pdf/ps->png): Simplify accordingly.
(doc-view-pdf->png-1, doc-view-djvu->png-1): Remove.
(doc-view-document->bitmap): Rename from doc-view-document->png.
(doc-view-convert-current-doc): Merge pdf and djvu cases.
(doc-view-set-slice-from-bounding-box): Fix completion table.
(doc-view-mode): Use add-hook for after-revert-hook.
2013-01-10 00:05:24 -05:00