1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
Commit graph

113764 commits

Author SHA1 Message Date
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
Paul Eggert
5389db9e71 * search.c (find_newline): Rewrite to prefer offsets to pointers.
This avoids undefined behavior when subtracting pointers into
different aways.  On my platform it also makes the code a tad
smaller and presumably faster.
2013-11-11 08:37:54 -08:00
Michael Albinus
8ee0219ffe * automated/tramp-tests.el (tramp-test-temporary-file-directory):
Check $TRAMP_TEST_TEMPORARY_FILE_DIRECTORY.
(tramp-read-passwd): Check $TRAMP_TEST_ALLOW_PASSWORD.
(tramp-test09-insert-file-contents, tramp-test10-write-region):
(tramp-test26-process-file): Add tests.
(tramp-test11-copy-file): Remove debug message.
(tramp-test20-file-modes): Special case, if user is "root".
2013-11-11 16:22:57 +01: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
a80a32e8c4 * make-dist: Comment 2013-11-10 17:00:03 -08: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
Glenn Morris
b5c9a3cccb * admin/unidata/unidata-gen.el (unidata-gen-files): Tweak whitespace
in generated files.
2013-11-10 16:50:52 -08:00
Jan Djärv
fb193bb4a1 * keymaps.texi (Tool Bar): Mention that Gtk+/NS ignores item 1 to 3. 2013-11-10 13:18:03 +01: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
Eli Zaretskii
85f37d1011 Fix bug #15841 with missing line numbers in linum-mode.
src/search.c (find_newline): If buffer text is relocated during the
 "dumb loop", adjust C pointers into buffer text to follow suit.
2013-11-09 23:24:10 +02:00
Jan Djärv
b24ac90f5d * gtkutil.c (xg_check_special_colors): Use rgb: instead of rgbi:
for conversion.

Fixes: debbugs:15837
2013-11-09 12:19:53 +01:00
Eli Zaretskii
addccbd0c3 Fix bug #15841 with cache-long-scans, linum-mode, and non-ASCII chars.
src/fileio.c (Finsert_file_contents): Invalidate the newline cache
 for the entire range of inserted characters.
2013-11-09 13:12:33 +02: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
Xue Fuqiao
d612ddbb11 Add an cross-reference.
* doc/lispref/os.texi (Command-Line Arguments): Add cross-reference
  for `dump-emacs'.
2013-11-09 15:19:16 +08:00
Xue Fuqiao
6e46645997 * doc/lispref/os.texi (Startup Summary): Typo fix. 2013-11-09 13:38:28 +08:00
Xue Fuqiao
be9d2b46f0 * doc/lispref/os.texi (Startup Summary): Add an index about startup screen. 2013-11-09 10:36:46 +08: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
Glenn Morris
62e010af33 * nt/mingw-cfg.site: No need for this to be executable. 2013-11-08 19:33:41 -05:00
Glenn Morris
129c301bf7 * admin/unidata/unidata-gen.el (unidata-gen-files):
Fix deletion of existing output files after 2013-10-30 changes.
2013-11-08 19:12:56 -05: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
Bozhidar Batsov
25864c18c5 * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding):
Fix incorrect case conditions.
2013-11-08 23:41:25 +02: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
Paul Eggert
220a304ac3 Merge from gnulib.
This incorporates:
2013-11-08 extern-inline: port better to OS X 10.9
2013-11-08 fpending: fix regression on DragonFly BSD
* lib/fpending.h, m4/extern-inline.m4, m4/fpending.m4:
Update from gnulib.
2013-11-08 08:24:40 -08: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
Eli Zaretskii
8acb09ca61 Documentation followup to last commit.
doc/lispref/display.texi (Truncation): Document that cache-long-scans is now
 non-nil by default.  (Bug#15797)
2013-11-08 12:27:15 +02:00
Eli Zaretskii
080db47fc4 Switch cache-long-scans to t by default.
src/xdisp.c (message_dolog): Make sure the *Messages* buffer has its
 cache-long-scans disabled, since we don't want to call
 prepare_to_modify_buffer (in insert_1_both) for each message we
 display.
 src/buffer.h (bset_cache_long_scans): New INLINE function, moved
 from buffer.c.  Improve commentary to the buffer field setter
 functions.
 src/buffer.c (bset_cache_long_scans): Static function deleted.
 Improve commentary to the buffer field setter functions.
 (init_buffer_once): Default for cache-long-scans changed to t.
 (Bug#15797)
2013-11-08 12:21:35 +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
Michael Albinus
1c49d6c2fe * automated/file-notify-tests.el:
* automated/tramp-tests.el: Add `tramp-own-remote-path' to
`tramp-remote-path' when running on hydra.
(tramp-test07-file-exists-p): Remove instrumentation code.
(tramp-test26-process-file): Don't use "/bin/true" and
"/bin/false", these paths do not exist on hydra.
2013-11-08 10:31:15 +01:00
Alex Schroeder
f358e6e5d3 Fix a typo in (epa) Encrypting/decrypting *.gpg files 2013-11-08 09:49:40 +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
Michael Albinus
540993833c * automated/tramp-tests.el: Add tramp-own-remote-path' to tramp-remote-path'. 2013-11-08 08:52:28 +01: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
Paul Eggert
7f1913b2da * chartab.c (make_sub_char_table): Fix size typo.
This bug was introduced in my 2013-06-21 change, and caused
struct Lisp_Sub_Char_Table objects to be given too many slots,
which broke 'make -C admin/unidata'.

Fixes: debbugs:15825
2013-11-07 23:28:21 -08:00
Stefan Monnier
7dd8b873bb Rename test/automated/sentinel-tests.el to process-tests.el 2013-11-07 23:40:51 -05: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
d85783ca32 * indent/ruby.rb: New example 2013-11-08 05:30:24 +02:00
Helmut Eller
21cfbae5b5 * test/automated/sentinel-tests.el: New file. 2013-11-07 22:28:19 -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
Jan Djärv
5ee2921081 Import macfont changes from mac-port 4.5.
* macfont.h (kCTVersionNumber10_9): Define if not defined.

* macfont.m (mac_font_copy_default_descriptors_for_language)
(mac_font_copy_default_name_for_charset_and_languages): Declare.
(cf_charset_table): big-5-0 has uniquifier 0x4EDC.
(macfont_language_default_font_names): New.
(macfont_list): Rearrange language/charset code.
(macfont_close): Don't check for macfont_info->cache.
(mac_ctfont_create_preferred_family_for_attributes): New font
selection code, call
mac_font_copy_default_name_for_charset_and_languages.
(mac_font_copy_default_descriptors_for_language)
(mac_font_copy_default_name_for_charset_and_languages): New functions.
2013-11-07 23:21:08 +01: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
Glenn Morris
9d172c157c * admin/unidata/unidata-gen.el (unidata-gen-files): Update Unicode copyright 2013-11-06 23:57:35 -08:00
Glenn Morris
394629a11a Update unicode README and related info 2013-11-06 23:54:47 -08:00