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

116079 commits

Author SHA1 Message Date
Eli Zaretskii
a59f6567d0 Fix decoding of paths at startup. 2013-12-09 19:33:01 +02:00
Eli Zaretskii
cc24ef09f8 Merge from trunk. 2013-12-09 19:20:34 +02:00
Dmitry Antipov
ad8a47b89f * gtkutil.c (USE_NEW_GTK_FONT_CHOOSER) [HAVE_FREETYPE]:
Avoid unused macro warning if configured --without-xft.
2013-12-09 20:30:52 +04:00
Michael Albinus
a1099a91df * autorevert.el (auto-revert-notify-add-watch): Do not handle symlinked files. 2013-12-09 15:47:00 +01:00
Jan Djärv
5e48429a26 * alloc.c (Fmemory_limit): Avoid compiler warning. Return 0 always. 2013-12-09 09:23:01 +01:00
Dmitry Gutov
8212d9c0da * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
after the end of a percent literal.
2013-12-09 06:19:16 +02:00
Cameron Desautels
8f48d13181 * lisp/progmodes/ruby-mode.el (ruby-forward-string): Document.
Handle caret-delimited strings.

Fixes: debbugs:16079
2013-12-09 05:43:34 +02:00
Dmitry Gutov
ff8c976420 * lisp/progmodes/ruby-mode.el (ruby-accurate-end-of-block): When
`ruby-use-smie' is t, use `smie-forward-sexp' instead of
`ruby-parse-partial'.

Fixes: debbugs:16078
2013-12-09 05:27:21 +02:00
Leo Liu
d64643b40f * subr.el (read-passwd): Disable show-paren-mode.
Fixes: debbugs:16091
2013-12-09 10:38:42 +08:00
Katsumi Yamaoka
1b9b6fbb5c lisp/gnus/gnus-msg.el (gnus-setup-message): Fix last commit 2013-12-09 00:35:15 +00:00
Katsumi Yamaoka
b51eddb2a1 lisp/gnus/gnus-msg.el (gnus-setup-message): Fix the type of argument passed to nnir-article-number and nnir-article-group 2013-12-08 23:11:14 +00:00
Paul Eggert
09a7c0fe67 Spelling fixes. 2013-12-08 13:23:50 -08:00
Eli Zaretskii
83a5a2c877 Fix librsvg build on MS-Windows.
configure.ac (HAVE_RSVG) [mingw32]: Don't link against librsvg statically.
2013-12-08 21:28:29 +02:00
Eli Zaretskii
439b1ae89e Converted and tested w32notify.c. 2013-12-08 20:29:12 +02:00
Dmitry Gutov
939fef2978 Mention test/indent/js.js, and restore one lost piece of it
* test/indent/js.js: New file.
2013-12-08 18:11:08 +02:00
Dmitry Gutov
47e59c666a Port indentation code from js2-mode to js-mode
* lisp/progmodes/js.el (js-auto-indent-flag): Remove, was unused.
(js-switch-indent-offset): New option.
(js--proper-indentation): Use it.  And handle the case when
"default" is actually a key in an object literal.
(js--same-line): New function.
(js--multi-line-declaration-indentation): Use it.
(js--indent-in-array-comp, js--array-comp-indentation): New
functions.
(js--proper-indentation): Use them, to handle array comprehension
continuations.
2013-12-08 18:08:45 +02:00
Juanma Barranquero
3629130880 Fix typos in doc files (bug#16089).
* emacs/msdog.texi (Windows Keyboard): Fix typo.

* lispref/display.texi (Progress, Face Remapping):
* lispref/processes.texi (Serial Ports):
* lispref/windows.texi (Recombining Windows): Fix typos.

* misc/dbus.texi (Properties and Annotations): Fix typo.
2013-12-08 16:33:27 +01:00
Jan Djärv
b3e42b7083 Fix GNUStep toolbar not updating.
* src/nsterm.m (updateFrameSize:): Fix GNUStep toolbar not updating.
2013-12-08 13:59:14 +01:00
Jan Djärv
40f18bf37e * emacs.c (main): Call fixup_locale a second time for GNUStep. 2013-12-08 13:18:13 +01:00
Martin Rudalics
acfe46025a In x_set_font mark frame as garbaged (Bug#16028).
* frame.c (x_set_font): Mark frame as garbaged (Bug#16028).
2013-12-08 10:56:02 +01:00
Leo Liu
974ebc9ccf Re-write flymake-highlight-line in flymake.el
* progmodes/flymake.el (flymake-highlight-line): Re-write.
(flymake-make-overlay): Remove arg MOUSE-FACE.
(flymake-save-string-to-file, flymake-read-file-to-string): Remove.
2013-12-08 17:18:55 +08:00
Paul Eggert
3bc9da3286 * configure.ac: Simplify supression of GTK deprecation warning.
Move -DGDK_DISABLE_DEPRECATION_WARNINGS out of the command line
and into config.h, to shorten the command line when doing 'make'.
Don't AC_SUBST GTK_CFLAGS, as this is not needed.
2013-12-08 00:53:49 -08:00
Stefan Monnier
27262e39e6 Make CUA-mode use shift-select-mode.
* lisp/emulation/cua-base.el (cua--explicit-region-start)
(cua--last-region-shifted): Remove.
(cua--deactivate): Use deactivate-mark.
(cua--pre-command-handler-1): Don't handle shift-selection.
(cua--post-command-handler-1): Don't change transient-mark-mode.
(cua--select-keymaps): Use region-active-p rather than
cua--explicit-region-start or cua--last-region-shifted.
(cua-mode): Enable shift-select-mode.
* lisp/emulation/cua-rect.el (cua--rectangle-highlight-for-redisplay):
New function.
(redisplay-highlight-region-function): Use it.
2013-12-08 03:11:50 -05:00
Paul Eggert
e9551b12f8 Use libcrypto's checksum implementations if available, for speed.
On commonly used platform libcrypto uses architecture-specific
assembly code, which is significantly faster than the C code we
were using.  See Pádraig Brady's note in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00000.html>.
Merge from gnulib, incorporating:
2013-12-07 md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
2013-12-07 md5, sha1, sha256, sha512: add 'auto', and set-default method
2013-12-04 include_next: minimize code duplication
2013-12-03 md5, sha1, sha256, sha512: support mandating use of openssl
2013-12-02 md5, sha1, sha256, sha512: use openssl routines if available
* configure.ac (--without-all): Set with_openssl_default too.
Use gl_SET_CRYPTO_CHECK_DEFAULT to default to 'auto'.
(HAVE_LIB_CRYPTO): New var.
Say whether Emacs is configured to use a crypto library.
* lib/gl_openssl.h, m4/absolute-header.m4, m4/gl-openssl.m4:
New files, copied from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/md5.c, lib/md5.h, lib/sha1.c, lib/sha1.h:
* lib/sha256.c, lib/sha256.h, lib/sha512.c, lib/sha512.h:
* m4/include_next.m4, m4/md5.m4, m4/sha1.m4, m4/sha256.m4, m4/sha512.m4:
Update from gnulib.
* src/Makefile.in (LIB_CRYPTO): New macro.
(LIBES): Use it.
2013-12-08 00:05:36 -08:00
Stefan Monnier
02033d491f * lisp/rect.el (rectangle-mark-mode): Activate mark even if
transient-mark-mode is off.
(rectangle--highlight-for-redisplay): Fix boundary condition when point
is > mark and at bolp.

Fixes: debbugs:16066
2013-12-08 02:32:01 -05:00
Leo Liu
6407822c66 Re-implement popup menu for flymake
* progmodes/flymake.el (flymake-popup-current-error-menu): Rename
from flymake-display-err-menu-for-current-line. Reimplement.
(flymake-posn-at-point-as-event, flymake-popup-menu)
(flymake-make-emacs-menu): Remove.

Fixes: debbugs:16077
2013-12-08 15:18:46 +08:00
Stefan Monnier
6f8dfccfe3 Use delete-selection-mode in cua-mode.
* lisp/emulation/cua-base.el (cua--prefix-copy-handler)
(cua--prefix-cut-handler): Rely on region-extract-function rather than
checking cua--rectangle.
(cua-delete-region): Use region-extract-function.
(cua-replace-region): Delete function.
(cua-copy-region, cua-cut-region): Obey region-extract-function.
(cua--pre-command-handler-1): Don't do the delete-selection thing.
(cua--self-insert-char-p): Ignore `self-insert-iso'.
(cua--init-keymaps): Don't remap delete-selection commands.
(cua-mode): Use delete-selection-mode instead of rolling our own.
* lisp/emulation/cua-rect.el (cua--rectangle-region-extract): New function.
(region-extract-function): Use it.
(cua-mouse-save-then-kill-rectangle): Use cua-copy-region.
(cua-copy-rectangle, cua-cut-rectangle, cua-delete-rectangle):
Delete functions.
(cua--init-rectangles): Don't re-remap copy-region-as-kill,
kill-ring-save, kill-region, delete-char, delete-forward-char.
Ignore self-insert-iso.
* lisp/menu-bar.el (clipboard-kill-ring-save, clipboard-kill-region):
Obey region-extract-function.
* lisp/emulation/cua-gmrk.el (cua--init-global-mark):
Ignore `self-insert-iso'.

Fixes: debbugs:16085
2013-12-08 01:24:54 -05:00
Paul Eggert
95b3d095f8 * frame.h (SET_FRAME_VISIBLE): Now an inline function.
The macro didn't conform to C99 due to type mismatch,
which caused compilation failure with Sun C 5.12,
and it was confusing anyway.  Include window.h to declare
redisplay_other_windows.
2013-12-07 21:59:27 -08:00
Stefan Monnier
00a2b82373 Make registers and delete-selection-mode work on rectangles.
* lisp/register.el (describe-register-1): Don't modify the register's value.
(copy-to-register): Obey region-extract-function.
* lisp/delsel.el (delete-active-region): Obey region-extract-function.
2013-12-07 23:20:50 -05:00
Leo Liu
a92fa5f193 Clean up flymake.el
* lisp/progmodes/flymake.el (flymake, flymake-error-bitmap)
(flymake-warning-bitmap, flymake-fringe-indicator-position)
(flymake-compilation-prevents-syntax-check)
(flymake-start-syntax-check-on-newline)
(flymake-no-changes-timeout, flymake-gui-warnings-enabled)
(flymake-start-syntax-check-on-find-file, flymake-log-level)
(flymake-xml-program, flymake-master-file-dirs)
(flymake-master-file-count-limit)
(flymake-allowed-file-name-masks): Relocate.
(flymake-makehash, flymake-float-time)
(flymake-replace-regexp-in-string, flymake-split-string)
(flymake-get-temp-dir): Remove.
(flymake-popup-menu, flymake-nop, flymake-make-xemacs-menu)
(flymake-current-row, flymake-selected-frame)
(flymake-get-point-pixel-pos): Remove xemacs compatibity and
related functions.

Fixes: debbugs:16077
2013-12-08 11:35:32 +08:00
Stefan Monnier
0d9cba29b6 * src/window.c (set_window_buffer): Update mode line.
Fixes: debbugs:16084
2013-12-07 22:07:11 -05:00
Paul Eggert
67840e6629 Fix minor problems found by static checking.
* keyboard.c (poll_for_input_1, input_polling_used):
Define only if HAVE_NTGUI.
* xmenu.c (popup_activate_callback): Omit unnecessary
check against USE_X_TOOLKIT, which must be defined here anyway.
* xterm.c, xterm.h (x_dispatch_event) [! (USE_X_TOOLKIT || USE_MOTIF)]:
Now static.
2013-12-07 15:04:10 -08:00
Eli Zaretskii
4ba5c243d0 Fixed a bug in get_long_basename which broke creation of new files. 2013-12-07 21:15:23 +02:00
Bozhidar Batsov
73c8ceea1a * lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'. 2013-12-07 20:46:03 +02:00
Martin Rudalics
947003b598 Fix int/Lisp_Object type mixup in w32_read_socket.
* w32term.c (w32_read_socket): Fix int/Lisp_Object type mixup.
2013-12-07 18:48:52 +01:00
Jan Djärv
c4142a8302 * gtkutil.c (tb_size_cb): Call xg_height_or_width_changed. 2013-12-07 18:41:02 +01:00
Eli Zaretskii
ce1d7b61f1 Merge from trunk. 2013-12-07 19:21:57 +02:00
Eli Zaretskii
6630df2523 Minor doc fix. 2013-12-07 19:16:30 +02:00
Tassilo Horn
faec28d908 Fix describe-function with advised functions.
* lisp/help-fns.el (describe-function-1): Use new advice-* functions
rather than old ad-* functions.  Fix function type description and
source links for advised functions and subrs.
2013-12-07 18:05:38 +01:00
Eli Zaretskii
7df14908a3 Updated documentation. 2013-12-07 18:51:33 +02:00
Jan Djärv
1bb2debd5f Fix GNUStep issues with startup.
* nsterm.h (EmacsApp): Add applicationDidFinishLaunchingCalled.

Pixel resize changes for NS.
* nsterm.m (x_set_window_size): Change parameters rows/cols to
height/width.  row/cols are locals.
Pass pixelwise to check_frame_size.  Don't set FRAME_PIXEL_WIDTH/HEIGHT.
(updateFrameSize:): Remove gsextra.  Adjust for pixelwise resize.
(windowWillResize): Remove gsextra.  Calculate extra as in
updateFrameSize.
(x_new_font): Don't change frame size if fullscreen.  Change
size pixelwise.

* nsterm.m (x_set_window_size): Remove fprintf.
(init): Define always.  Set applicationDidFinishLaunchingCalled
for GNUStep.
(applicationDidFinishLaunching:): Set
applicationDidFinishLaunchingCalled,
(applicationDidBecomeActive:): Call applicationDidFinishLaunching if
not called.
2013-12-07 17:48:12 +01:00
Eli Zaretskii
577c8624d0 Converted file-name-info. 2013-12-07 18:01:55 +02:00
Eli Zaretskii
857fd372ee Fixed $HOME in expand-file-name. 2013-12-07 16:59:37 +02:00
Eli Zaretskii
080fd64974 Fixed initialization code and default-printer-name. 2013-12-07 16:45:31 +02:00
Jan Djärv
fa6fa1a177 Mention bug 16049. 2013-12-07 15:26:29 +01:00
Jan Djärv
7def8cbd8b Handle pixelwise resize changes in NS port.
* src/nsfns.m (Fx_create_frame): Call change_frame_size twice as per
comment in xfns.c.  Change to pixelwise call.

* src/nsterm.m (x_set_window_size): Change parameters rows/cols to
height/width.  row/cols are locals.
Pass pixelwise to check_frame_size.  Don't set FRAME_PIXEL_WIDTH/HEIGHT.
(updateFrameSize:): Remove gsextra.  Adjust for pixelwise resize.
(windowWillResize): Remove gsextra.  Calculate extra as in
updateFrameSize.
(x_new_font): Don't change frame size if fullscreen.  Change
size pixelwise.
2013-12-07 15:21:53 +01:00
Dani Moncayo
34a731f8d0 build-aux/msys-to-w32: Fix a typo in a comment. 2013-12-07 14:02:09 +01:00
Eli Zaretskii
94ae154235 Tested subprogram invocation, fixed decode_env_path. 2013-12-07 14:00:10 +02:00
Lars Magne Ingebrigtsen
e330b64699 * net/shr.el (shr-tag-img): Don't bug out on <img src=""> data. 2013-12-07 02:44:15 +01:00
Eli Zaretskii
17788cb3da Converted spawnve, but not tested the result yet. 2013-12-06 17:55:08 +02:00