Commit graph

58044 commits

Author SHA1 Message Date
Glenn Morris
86e100a693 Merge calc news from lisp/calc/README into etc/NEWS files
* doc/misc/calc.texi (Help Commands): Update calc-view-news description.

* lisp/calc/calc-help.el (calc-view-news): Use view-emacs-news.

* lisp/calc/README: Move news entries from here...
* etc/NEWS, etc/NEWS.23: ... to here
2013-01-31 19:51:08 -08:00
Sam Steingold
1e77b18e33 fix last patch 2013-01-31 17:37:54 -05:00
Michael Albinus
61642d9a27 * net/tramp.el (tramp-tramp-file-p): Comment check for
`string-as-unibyte'.  The function does not exist on XEmacs, and
likely we need another approach.

* net/tramp-sh.el (tramp-compute-multi-hops): Check, whether
`tramp-gw-*' variables are bound.
2013-01-31 09:33:03 +01:00
Glenn Morris
9dbda10075 Reduce delay between backing up a file and saving new version
* lisp/files.el (basic-save-buffer-2):
Choose coding system for writing the file before backing it up.

* src/fileio.c (choose_write_coding_system): Make it callable from Lisp.
(Fwrite_region): If coding-system-for-write is set, don't call
choose_write_coding_system.
Move the last piece of choose_write_coding_system here.
(syms_of_fileio): Add choose-write-coding-system.

Fixes: debbugs:13522
2013-01-30 22:35:45 -08:00
Michal Nazarewicz
ad4de702e1 * lisp/simple.el (cycle-spacing): New command.
(just-one-space): Use it.
2013-01-30 21:57:35 -05:00
Stefan Monnier
c4f268a137 * lisp/progmodes/opascal.el: Rename from delphi.el. Use lexical-binding.
(opascal-newline-always-indents): Remove custom.
(opascal-tab, opascal-newline): Remove commands.
(opascal-new-comment-line): Insert "\n" instead of calling newline.
(opascal-mode-map): Keep default bindings for RET and TAB and DEL.
(opascal-save-match-data): Remove, use save-match-data instead.
(opascal-save-state): Use with-silent-modifications.
2013-01-30 20:58:24 -05:00
Stefan Monnier
9ca243c631 * lisp/progmodes/pascal.el (pascal-mode-syntax-table): Accept //..\n comments.
Fixes: debbugs:13585
2013-01-30 19:58:24 -05:00
Juri Linkov
64ced39437 * lisp/frame.el (toggle-frame-maximized, toggle-frame-fullscreen):
Use fullboth as an alias for fullscreen.  Suggested by Jan Djärv in
<http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00203.html>.
2013-01-31 01:50:11 +02:00
Christopher Schmidt
5f9eccc4b6 lisp/gnus/gnus-int.el (gnus-backend-trace): Honour gnus-backend-trace 2013-01-30 22:45:32 +00:00
Stefan Monnier
c56d2269c2 * lisp/progmodes/make-mode.el (makefile-backslash-region): Don't compute
column if we're just deleting the backslashes.
(makefile-fill-paragraph): Use eolp.
2013-01-30 15:46:10 -05:00
Michael Albinus
382936d146 * autorevert.el (auto-revert-use-notify): Fix docstring. 2013-01-30 20:20:46 +01:00
Leo Liu
dd331297c1 * lisp/imenu.el (imenu--truncate-items): Fix subalist checking.
Fixes: debbugs:13576
2013-01-31 01:57:54 +08:00
Glenn Morris
741d511359 Merge from emacs-24; up to 2012-12-13T00:52:17Z!yamaoka@jpl.org 2013-01-30 09:16:30 -08:00
Glenn Morris
c491dd7037 mouse-drag-line changes for mouse-1 in header-line
* lisp/mouse.el (mouse-drag-line): Avoid pushing same event onto
unread-command-events twice in some cases.  This tries to implement
the 2012-07-26 changes in a different way.

Fixes: debbugs:13560
2013-01-30 09:14:24 -08:00
Stefan Monnier
1d4e72256b * lisp/jit-lock.el (jit-lock-stealth-chunk-start): Don't widen.
(jit-lock-mode, jit-lock-functions, jit-lock-context-unfontify-pos):
Use defvar-local.
(jit-lock-register): Use setq-local.

Fixes: debbugs:13542
2013-01-30 12:03:44 -05:00
Fabián Ezequiel Gallina
6ff930c3d2 * progmodes/python.el
(python-pdbtrack-comint-output-filter-function): Enhancements on
stacktrace detection.  (thanks @gnovak)
2013-01-30 12:02:58 -03:00
Jay Belanger
7c3fb76fc9 calc-units.el (math-default-units-table): Remove initial value.
(calc-convert-units): Treat expressions where all the units cancel as
if they didn't have units.
2013-01-30 08:14:27 -06:00
Christopher Schmidt
f0a9dee778 lisp/gnus/mml.el (mml-insert-part): Insert closing tag 2013-01-30 10:43:40 +00:00
Christopher Schmidt
dc39b96aae lisp/gnus/mm-decode.el (mm-save-part): Handle invalid read-file-name results 2013-01-30 09:44:46 +00:00
Michael Albinus
8bc8712edd * net/tramp.el (tramp-process-connection-type): Fix docstring.
(tramp-completion-reread-directory-timeout): Fix type.
(tramp-connection-min-time-diff): New defcustom.

* net/tramp-sh.el (tramp-maybe-open-connection): Use it.
2013-01-30 10:16:16 +01:00
Glenn Morris
3f82a88a05 Merge from emacs-24; up to 2012-12-12T22:29:54Z!yamaoka@jpl.org 2013-01-30 00:07:37 -08:00
Glenn Morris
fe93f41aa0 ChangeLog date fix 2013-01-29 23:47:11 -08:00
Glenn Morris
1886a16d27 * imenu.el (imenu-default-create-index-function):
Put back a version of the infinite loop test removed 2013-01-23.
2013-01-29 23:46:28 -08:00
Michael Albinus
9e4ce6976d Revert changes, which were committed with 2013-01-29T16:03:40Z!michael.albinus@gmx.de by accident. 2013-01-30 08:37:12 +01:00
Alan Mackenzie
953e5b8cb2 Amend to fontify /regexp/s in actions correctly.
cc-awk.el (c-awk-harmless-char-re, c-awk-harmless-string*-re):
(c-awk-harmless-string*-here-re): braces, parens and semicolons are no
longer included.
(c-awk-harmless-line-char-re, c-awk-harmless-line-string*-re): What used
to be these variables without "-line" in the name.
(c-awk-neutral-re): { is no longer neutral.  Escaped newlines now are.
(c-awk-non-arith-op-bra-re): Now also matches {.
(c-awk-pre-exp-alphanum-kwd-re): New regexp to match "print", "return",
and "case".
(c-awk-kwd-regexp-sign-re): New, to match "print", etc., followed by /.
(c-awk-syntax-tablify-/): Check special cases "print /re/", etc.
(c-awk-set-syntax-table-properties): Extend FSM to handle {,},(,),;.
2013-01-29 20:51:07 +00:00
Michael Albinus
2f52b5608c * autorevert.el (auto-revert-use-notify): Use
`custom-initialize-default' for initialization.  (Bug#13583)
2013-01-29 17:03:40 +01:00
Michael Albinus
ea55064c0b * net/tramp-sh.el (tramp-sh-handle-start-file-process): Fix previous patch.
(tramp-gw-tunnel-method, tramp-gw-socks-method): Declare for
compatibility.
(tramp-compute-multi-hops): Check, whether
`tramp-gw-tunnel-method' and `tramp-gw-socks-method' are non-nil.
2013-01-29 15:52:20 +01:00
Michael Albinus
1b69262a7d * net/ange-ftp.el (ange-ftp-skip-msgs): Add another message.
* net/tramp-sh.el (tramp-sh-handle-start-file-process): Catch
`suppress'.  Otherwise, `tramp-run-real-handler' might be called
in `tramp-file-name-handler'.
2013-01-29 09:12:11 +01:00
Fabián Ezequiel Gallina
e44970863d * progmodes/python.el (python-shell-parse-command): Find
python-shell-interpreter with modified environment.
2013-01-28 18:59:42 -03:00
Stefan Monnier
b2dc4f52e7 * lisp/hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol.
Fixes: debbugs:13297
2013-01-28 15:00:35 -05:00
Dmitry Gutov
18d801db79 * progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
nested constants, too.  \_< broke that.
2013-01-28 06:07:42 +04:00
Dmitry Gutov
a324b8c791 * progmodes/ruby-mode.el (ruby-move-to-block): Work with (maybe
temporarily) broken indentation.
* automated/ruby-mode-tests.el (ruby-block-test-example):
  Break indentation of the do block opener and add a line inside it.
* automated/ruby-mode-tests.el (works-on-do, ok-with-three):
  Adjust line numbers.
2013-01-28 05:20:42 +04:00
Glenn Morris
268c041e44 Sync Version: headers with -version variables 2013-01-27 16:34:22 -08:00
Dmitry Gutov
499572e4d5 * progmodes/ruby-mode.el (ruby-font-lock-keywords): Use "\\_<" instead
of "\\b".  Remove some checks made superfluous as a result.
2013-01-28 02:32:11 +04:00
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
Stefan Monnier
beb6d07d10 * lisp/emacs-lisp/cl.el (cl-set-getf): Add compatibility alias. 2013-01-26 19:17:11 -05: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