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

25051 commits

Author SHA1 Message Date
Dmitry Gutov
7b08f97e71 * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Disambiguate between
binary "|" operator and closing block args delimiter.  Remove
FIXME comment referring to Ruby 1.8-only syntax.
(ruby-smie--implicit-semi-p): Not after "|" operator.
(ruby-smie--closing-pipe-p): New function.
(ruby-smie--forward-token, ruby-smie--backward-token): Use it.
(ruby-smie-rules): Indent after "|".
2013-11-12 16:15:14 +02:00
Glenn Morris
f201cf3a81 * ps-print.el (ps-face-attribute-list): Handle anonymous faces
Fixes: debbugs:15827
2013-11-12 00:16:50 -08:00
Martin Rudalics
e6f759f9fd Fix doc-string of display-buffer-other-frame. (Bug#15868)
* window.el (display-buffer-other-frame): Fix doc-string.
(Bug#15868)
2013-11-12 08:25:14 +01:00
Stefan Monnier
ecda65d4f7 * lisp/subr.el (force-mode-line-update): Delete, move to buffer.c.
* src/buffer.c (Frestore_buffer_modified_p): Sync it with
Fset_buffer_modified_p.
(Fforce_mode_line_update): New function, moved from subr.el.
(Fset_buffer_modified_p): Use them.
(syms_of_buffer): Defsubr Fforce_mode_line_update.
2013-11-11 13:05:47 -05:00
Michael Albinus
7ce8fcc322 * net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
(tramp-sh-handle-file-local-copy): Don't write a message when
saving temporary files.

* net/tramp-smb.el (tramp-smb-handle-copy-directory): Fix bug when
both directories are remote.
(tramp-smb-handle-directory-files): Do not return double entries.
Do not expand full file names.
(tramp-smb-handle-insert-directory): Accept nil SWITCHES.
(tramp-smb-handle-write-region): Implement APPEND.
(tramp-smb-get-stat-capability): Fix a stupid bug.
2013-11-11 16:18:07 +01:00
Stefan Monnier
7818df11b8 * lisp/bindings.el (ctl-x-map): Bind C-x SPC to rectangle-mark-mode.
* src/keyboard.c (command_loop_1): Use region-extract-function.
* src/insdel.c (Qregion_extract_function): Not static any more (can we
stop pretending that these vars can benefit from being marked static?).
2013-11-11 00:18:53 -05:00
Nathan Trapuzzano
608c2085c4 * lisp/emacs-lisp/cconv.el (cconv-convert): Print warning instead of
throwing error over malformed let/let*.

Fixes: debbugs:15814
2013-11-10 23:55:39 -05:00
Stefan Monnier
122a7e463a * lisp/iswitchb.el (iswitchb-mode): Mark obsolete. 2013-11-10 23:50:56 -05:00
Glenn Morris
766284d929 Update from Unicode 6.2.0 to 6.3.0
Note: I used Emacs 24.3 to generate the uni-*.el files, owing to
unexplained (possibly harmless) differences that the current trunk's
use of lexical-binding for subr.el causes.  Ref:
http://debbugs.gnu.org/15825#29

* admin/unidata/BidiMirroring.txt, admin/unidata/UnicodeData.txt:
Update to 6.3.0.

* lisp/international/uni-bidi.el, lisp/international/uni-category.el:
* lisp/international/uni-name.el, lisp/international/uni-numeric.el:
Regenerate.
2013-11-10 16:58:13 -08:00
Michael Albinus
7072a4e9cb * net/tramp.el (tramp-methods):
* net/tramp-sh.el (tramp-compute-multi-hops): Revert change of
2013-10-29T02:50:24Z!dancol@dancol.org.
2013-11-10 09:35:04 +01:00
Andreas Schwab
c9df215b41 * progmodes/sh-script.el (sh-font-lock-keywords-var): Force
highlighting text after Summary keyword in doc face for rpm.
2013-11-09 11:49:42 +01:00
Dmitry Gutov
fa47d79686 * lisp/textmodes/ispell.el (ispell-lookup-words): When `look' is not
available and the word has no wildcards, append one to the grep
pattern.
http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00258.html
(ispell-complete-word): Call `ispell-lookup-words' with the value
independent of `ispell-look-p'.
2013-11-09 03:12:25 +02:00
Dmitry Gutov
1629a32997 * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):
Not after "||".
(ruby-smie-rules): Indent non-hanging "begin" blocks as part of
their parent.
2013-11-09 01:59:56 +02:00
Stefan Monnier
ad16897ceb * lisp/progmodes/ruby-mode.el: Don't require cl any more. Use pcase instead.
(ruby-font-lock-keywords): Use backquote.
2013-11-08 17:53:41 -05:00
Dmitry Gutov
ffa2df72a8 * lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
(ruby-smie--backward-token): Only consider full-string matches.
2013-11-08 23:23:11 +02:00
Jan Djärv
5b97b4c0df * lisp/faces.el (describe-face): Add distant-foreground.
* src/xfaces.c (lface_fully_specified_p): Let distant-foreground be
unspecified.
(realize_default_face): Remove assignment to distant-foreground if
unspecified.

Fixes: debbugs:15815
2013-11-08 18:26:03 +01:00
Bozhidar Batsov
71731c0338 * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding): Use
`ruby-encoding-magic-comment-style' to control the
style of the auto-inserted encoding comment.
2013-11-08 18:01:55 +02:00
Dmitry Gutov
da3b328da0 * lisp/progmodes/ruby-mode.el (ruby-smie--indent-to-stmt): Use
`smie-backward-sexp' with token argument.
2013-11-08 13:22:52 +02:00
Michael Albinus
1606c2d384 * net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command):
Remove instrumentation code.
2013-11-08 10:31:50 +01:00
Glenn Morris
1ac2891e8e Add missing ChangeLog entry from 2013-06-05T01:58:43Z!monnier@iro.umontreal.ca
http://lists.gnu.org/archive/html/emacs-diffs/2013-06/msg00043.html
2013-11-08 00:22:50 -08:00
Glenn Morris
b0f4c320e5 * lisp/progmodes/autoconf.el (autoconf-mode): Tweak comment-start-skip.
See also http://debbugs.gnu.org/10033

Fixes: debbugs:15822
2013-11-07 23:36:54 -08:00
Stefan Monnier
43668fb196 * lisp/progmodes/sh-script.el (sh-smie--sh-keyword-in-p): Don't inf-loop
at bobp.
(sh-smie--sh-keyword-in-p): Recognize keywords at bobp.

Fixes: debbugs:15826
2013-11-07 23:33:32 -05:00
Darren Hoo
daddb3fd83 * lisp/man.el (Man-start-calling): New macro, extracted from
Man-getpage-in-background.
(Man-getpage-in-background): Use it.
(Man-update-manpage): New command.
(Man-mode-map): Bind it.
2013-11-07 23:09:56 -05:00
Dmitry Gutov
1f92392383 * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Improve precedences
of "and", "or", "&&" and "||".
(ruby-smie--args-separator-p): Prohibit keyword "do" as the first
argument.  Prohibit opening curly brace because it could only be a
block opener in that position.
(ruby-smie--forward-token, ruby-smie--backward-token): Separate
"|" from "&" or "*" going after it.  That can happen in block
arguments.
(ruby-smie--indent-to-stmt): New function, seeks the end of
previous statement or beginning of buffer.
(ruby-smie-rules): Use it.
(ruby-smie-rules): Check if there's a ":" before a curly block
opener candidate; if there is, it's a hash.

* test/indent/ruby.rb: New examples.
2013-11-08 04:31:51 +02:00
Stefan Monnier
3220d5279d * lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet): Use macroexp-progn.
(cl--block-wrapper): Fix last accidental change.
2013-11-07 14:30:43 -05:00
Michael Albinus
1eb1f9e082 * net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command):
Instrument, in order to hunt failure on hydra.
2013-11-07 12:13:41 +01:00
Nathan Trapuzzano
e6e4db3cac * lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet): Print warning for
malformed bindings form.

Fixes: debbugs:15814
2013-11-06 23:38:00 -05:00
Dmitry Gutov
1d1c86daf7 * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):
No implicit semi after "^", "and" or "or".
(ruby-smie-grammar): New tokens: "and" and "or".
(ruby-smie--args-separator-p): Fix the check for tokens at POS.
Exclude "and" and "or".  Remove "do" in order to work around token
priorities.
(ruby-smie-rules): Add all infix tokens.  Handle the case of
beginning-of-buffer.
2013-11-07 05:02:01 +02:00
Dmitry Gutov
b420ccfc4c * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Lower priority of
"." compared to "do".
2013-11-07 03:58:12 +02:00
Glenn Morris
6b4ac03ebe Guard against possible accidental matches with parent dirs in Makefiles
* lisp/Makefile.in (setwins_almost, setwins_for_subdirs):
Avoid accidental matches.

* test/automated/Makefile.in (setwins): Avoid accidental matches.
2013-11-06 12:56:48 -05:00
Stefan Monnier
5ca114d1a8 * lisp/menu-bar.el (popup-menu): Use key-binding. 2013-11-06 12:18:02 -05:00
Eli Zaretskii
f72552bd38 Fix bug #15817 with TTY menus produced by minor modes.
lisp/menu-bar.el (popup-menu, menu-bar-open): When displaying TTY
 menus, support also the menus produced by minor modes.
2013-11-06 12:10:22 +02:00
Leo Liu
5d5c701ef9 * thingatpt.el (thing-at-point-looking-at): Add optional arg
DISTANCE to bound the search. All uses changed.

Fixes: debbugs:15808
2013-11-06 17:06:05 +08:00
Glenn Morris
65de43ada9 Remove some directory-changing in lisp/Makefile
* lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs): Simplify.
(setwins_almost, setwins_for_subdirs): Don't assume called from srcdir.
(custom-deps, finder-data, autoloads, update-subdirs): No need to cd.
2013-11-06 00:37:01 -08:00
Glenn Morris
0a8b75e296 * lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs): Simplify. 2013-11-06 00:09:15 -08:00
Stefan Monnier
feca4e2db9 * lisp/electric.el (electric-indent-just-newline): New command.
(electric-indent-mode-map): New keymap.
(electric-indent-mode, electric-pair-mode, electric-layout-mode):
Re-add :group which weren't redundant.
2013-11-05 22:37:03 -05:00
Stefan Monnier
a35287ea23 * lisp/electric.el (electric-indent-local-mode): New minor mode.
(electric-indent-functions-without-reindent): New var.
(electric-indent-post-self-insert-function): Use it.
* lisp/emacs-lisp/gv.el (buffer-local-value): Add setter.
2013-11-05 21:10:18 -05:00
Eli Zaretskii
9a6ad7359e Fix bug #15800 by clarifying description of what keyboard layout means.
lisp/international/quail.el (quail-help): Be more explicit about the
 meaning of the labels shown on the keys.
2013-11-05 18:36:37 +02:00
Eli Zaretskii
375761b243 Fix bug #15805 with trying to load Lisp files before load-path is populated.
lisp/startup.el (normal-top-level): Load the subdirs.el files before
 setting the locale environment.
2013-11-05 18:18:00 +02:00
Stefan Monnier
0acfafef3a * lisp/vc/vc-rcs.el (vc-rcs-parse): Make `gather' get e, b, and @-holes
via arguments so as to get the right ones.

Fixes: debbugs:15418
2013-11-05 10:27:51 -05:00
Stefan Monnier
520a6e4a5f * lisp/net/rcirc.el (rcirc-record-activity): Don't abuse add-to-list. 2013-11-05 09:32:01 -05:00
Michael Albinus
158262615c Fix problems found while writing a test suite.
* net/tramp-compat.el (tramp-compat-load): New defun.
* net/tramp.el (tramp-handle-load): Use it.

* net/tramp-sh.el (tramp-sh-handle-add-name-to-file): Handle the case
"(numberp ok-if-already-exists)" correctly.
2013-11-05 15:18:41 +01:00
Xue Fuqiao
d35f31a42d Doc fix for glyphless-char-display-control.
* international/characters.el (glyphless-char-display-control):
Add usage note.
2013-11-05 17:54:43 +08:00
Bozhidar Batsov
ae1f1ce1e2 * lisp/progmodes/python.el (python-mode): Remove incorrect text from docstring.
* lisp/progmodes/scheme.el (scheme-mode): Remove incorrect text from docstring.
* lisp/progmodes/prolog.el (prolog-mode): Remove incorrect text from docstring.
* lisp/emacs-lisp/lisp-mode.el (lisp-mode, lisp-interaction-mode, emacs-lisp-mode):
Remove incorrect text from docstring.
2013-11-05 11:47:47 +02:00
Bozhidar Batsov
ae93bc7480 * lisp/progmodes/ruby-mode.el (ruby-mode): Remove incorrect text from docstring. 2013-11-05 11:30:15 +02:00
Stefan Monnier
a0d5f7a4a3 * lisp/rect.el (rectangle--highlight-for-redisplay):
* lisp/emacs-lisp/smie.el (smie--next-indent-change):
Use buffer-chars-modified-tick.
2013-11-04 15:45:36 -05:00
Stefan Monnier
c93f3f5c5c * lisp/emacs-lisp/byte-run.el (defmacro, defun): Set their `indent' property. 2013-11-04 15:06:02 -05:00
Stefan Monnier
0ade65b530 * lisp/electric.el (electric-indent-post-self-insert-function):
Only delete trailing whitepsace if it is indeed trailing.

Fixes: debbugs:15767
2013-11-04 15:04:25 -05:00
Helmut Eller
ef9dd188af * lisp/emacs-lisp/cl-indent.el (with-compilation-unit): Add rule.
Fixes: debbugs:15782
2013-11-04 14:50:56 -05:00
Nathan Trapuzzano
306e7308ba * lisp/emacs-lisp/cconv.el (cconv-convert): Check form of let binding.
Fixes: debbugs:15786
2013-11-04 14:48:07 -05:00