1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 09:51:22 -08:00
Commit graph

23431 commits

Author SHA1 Message Date
Michael Albinus
629cb6ec00 * autorevert.el (auto-revert-handler): Notifications which result
from a saved file shall not be taken into account.  (Bug#13557)
2013-01-27 11:43:33 +01:00
Andreas Schwab
cc17363fc3 Fixes: debbugs:13556
* emacs-lisp/lisp-mode.el (lisp-mode-variables): Add optional
parameter BAR-NOT-SYMBOL to control syntax of | for font-lock.
(lisp-mode): Pass t for it.
2013-01-26 16:13:09 +01:00
Alan Mackenzie
b7aea0ffb6 AWK Mode: Fix indentation bug at top level. Bug #12274.
progmodes/cc-engine.el (c-guess-basic-syntax): Move CASE 5P to just
before CASE 5D.
2013-01-25 18:18:14 +00:00
Dmitry Antipov
1314a64c26 * net/socks.el (socks-nslookup-host): Use string-to-number. 2013-01-25 19:48:35 +04:00
Michael Albinus
ef3544f6a6 * autorevert.el (auto-revert-remote-files)
(auto-revert-notify-exclude-dir-regexp): New defcustoms.
(auto-revert-notify-enabled, auto-revert-use-notify)
(auto-revert-notify-watch-descriptor-hash-list)
(auto-revert-notify-modified-p, auto-revert-notify-event-p)
(auto-revert-notify-event-descriptor)
(auto-revert-notify-event-action)
(auto-revert-notify-event-file-name): Doc fix.
(global-auto-revert-mode): Reorder checks.
(auto-revert-notify-rm-watch): Respect changed values of
`auto-revert-notify-watch-descriptor-hash-list'.
(auto-revert-notify-add-watch): Check for
`auto-revert-notify-exclude-dir-regexp'.  Adapt filters for
`inotify-add-watch'.  Watch `default-directory' instead of
`buffer-file-name'.  `auto-revert-notify-watch-descriptor-hash-list'
has a changed meaning now.  (Bug#13540)
(auto-revert-notify-handler): Change implementation wrt events
returning from a directory.
(auto-revert-handler): Reorder implementation for checks of remote
files.
(auto-revert-buffers): Fix parentheses error.
2013-01-25 14:15:22 +01:00
Glenn Morris
830e46e61b Merge from emacs-24; up to 2012-12-11T18:52:31Z!monnier@iro.umontreal.ca 2013-01-24 20:41:39 -08:00
Bastien Guerry
3d4147bae3 * paren.el (show-paren-function): Make sure to set 'priority and
'face only if the overlay does exist.
2013-01-24 22:19:02 +01:00
Michael Albinus
e1ffa412b4 * net/tramp.el (tramp-tramp-file-p): Check, whether NAME is unibyte.
* net/tramp-sh.el (tramp-sh-handle-set-file-acl): Do not suppress
basic attributes.
(tramp-sh-handle-set-file-acl): Improve error checking.
2013-01-24 10:50:02 +01:00
Dmitry Antipov
5ad86e34d8 * src/insdel.c (prepare_to_modify_buffer): Revert last change as suggested
in http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00555.html.
* lisp/doc-view.el (doc-view-display): Force mode line update until
all document is converted.  Suggested by Stefan Monnier (Bug#13164).
2013-01-24 07:34:20 +04:00
Fabián Ezequiel Gallina
345f866e04 * lisp/progmodes/python.el: Enhancements to header documentation about
skeletons.

Fixes: debbugs:5716
2013-01-23 22:24:09 -03:00
Fabián Ezequiel Gallina
ddc62155d2 * imenu.el (imenu-default-create-index-function): Remove useless
infinite loop check.

Fixes: debbugs:13438
2013-01-23 18:55:46 -03:00
Alan Mackenzie
267eacb5e3 Fix a bug in the state cache mechanism. Refactor this a bit.
cc-engine.el (c-parse-state-get-strategy): Remove the `cache-pos' element
from the return value.
(c-append-lower-brace-pair-to-state-cache): "Narrow" to end of buffer to
enable proper searching from beyond HERE.
Amend the test for detecting the sought brace pair.  Amend the value
written to the "brace desert cache" when the brace isn't found.
(c-remove-stale-state-cache): Rename `good-pos' to `start-point', and
several other variables analogously.
(c-remove-stale-state-cache-backwards): Change `cache-pos' from a
parameter to a locally calculated variable.
(c-parse-state-1): Change the calling conventions to the two defuns
involving `cache-pos'.
2013-01-23 18:58:11 +00:00
Bastien Guerry
d6f9c03fbb * paren.el (show-paren-function): Make sure an overlay exists
before trying to delete it.  Also use `pos' as a position only
when it is an integer.

See this thread: http://thread.gmane.org/gmane.emacs.devel/156498
2013-01-23 10:43:29 +01:00
Dmitry Antipov
3544e11a34 * lisp/play/gametree.el (gametree-break-line-here): Use point-marker.
* lisp/mh-e/mh-acros.el (mh-do-at-event-location): Likewise.
* lisp/mh-e/mh-search.el (mh-index-create-imenu-index): Likewise.
* lisp/mh-e/mh-xface.el (mh-x-image-url-display): Likewise.
2013-01-23 12:49:34 +04:00
Chong Yidong
4d4ddaa78c * xml.el (xml-entity-or-char-ref-re): Fix regexp.
This bug was reported by Jae-oh Kim; it was posted to bug-gnu-emacs
but didn't show up in the bug tracker for some reason.  It is a
regression against Emacs 24.2.
2013-01-23 14:25:50 +08:00
Michael Albinus
19b50424a7 * tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers): Mark
descriptive parts with `display' property.
2013-01-22 09:49:03 +01:00
Agustín Martín
7fd5a8435f ispell.el: Make sure hunspell specific dict names are used for standard dicts when using hunspell.
(ispell-hunspell-dictionary-equivs-alist):
  New variable to map standard dict names to hunspell ones.

(ispell-set-spellchecker-params):
  Make sure specific dict names are used for standard dicts with hunspell.

  If a mapping is missing, skip that dictionary.

Fixes: debbugs:13460
2013-01-21 17:05:30 +01:00
Tassilo Horn
e6aff855ce * textmodes/reftex-cite.el (reftex-format-citation): Add format
chars for note (%N) and url (%U).
* textmodes/reftex-vars.el (reftex-cite-format): Document them.
2013-01-21 13:14:56 +01:00
Juri Linkov
c84b08818d * lisp/frame.el: Bind f10' in esc-map' to `toggle-frame-maximized'
in addition to existing separate binding `meta f10' in `global-map'.

Fixes: debbugs:13484
2013-01-21 12:45:20 +02:00
Michael Albinus
a36e2d260d Improve XEmacs compatibility.
* net/tramp.el (tramp-replace-environment-variables): Make it a defun.

* net/tramp-adb.el (top): Require `time-date'.
(tramp-adb-ls-output-time-less-p): Use `tramp-time-less-p'.
(tramp-adb-handle-copy-file, tramp-adb-handle-rename-file): Use
`tramp-file-name-handler'.
(tramp-adb-maybe-open-connection): Use
`tramp-compat-set-process-query-on-exit-flag'.

* net/tramp-sh.el (tramp-sh-handle-file-acl): Use
`tramp-compat-funcall'.

* net/tramp-smb.el (tramp-smb-handle-file-acl): Use `looking-at' and
`tramp-compat-funcall'.
2013-01-21 10:49:43 +01:00
Jürgen Hötzel
88c7dfa370 * net/tramp-adb.el (tramp-adb-handle-start-file-process): Complete
reimplementation using "adb shell command ..." instead of running
remote shell interactively.
2013-01-21 10:40:51 +01:00
Glenn Morris
a576cc76c8 * lisp-mode.el (emacs-lisp-mode-map): Add native profiler menu entries. 2013-01-19 18:40:49 -08:00
Glenn Morris
15df6fa4f1 profiler.el tweaks
* profiler.el (profiler-running-p): New function.
(profiler-cpu-profile): Use profiler-running-p.
(profiler-report-mode-map): Add some more menu entries.
2013-01-19 18:39:59 -08:00
Glenn Morris
c4d1e0c39c * lisp/mail/unrmail.el (unrmail): Do not mangle the mbox From line
fixes 2012-12-07 change.

Fixes: debbugs:13499
2013-01-19 12:54:56 -08:00
Glenn Morris
795e7a5b32 Merge from emacs-24; up to 2012-12-11T09:51:12Z!dmantipov@yandex.ru 2013-01-19 12:38:13 -08:00
Christian Wittern
20de6ab6a5 * image-mode.el (image-next-file, image-previous-file): New commands.
(image-mode-map): Bind them to n and p.
(image-mode--images-in-directory): New helper function.

Fixes: debbugs:8453
2013-01-19 23:22:38 +08:00
Chong Yidong
2a43515aaa * image-mode.el (image-mode-fit-frame): Add a frame argument.
Suggested by Drew Adams.  Handle window decorations;
save and restore the old window configuration.

Fixes: debbugs:7730
2013-01-19 18:34:07 +08:00
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
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
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
Leo Liu
57dd9e6886 Sync window-point and point in calendar-redraw
Fixes: debbugs:13420
2013-01-14 23:39:04 +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
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
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