bpt/emacs.git
10 years agoFix docstring of format-time-string to include %F.
Rüdiger Sonderfeld [Wed, 11 Dec 2013 14:42:55 +0000 (15:42 +0100)]
Fix docstring of format-time-string to include %F.

See discussion of Bug#15816.

* editfns.c (Fformat_time_string): Mention %F in the doc.

10 years ago* lisp/delsel.el (delete-selection-mode): Don't enable transient-mark-mode.
Stefan Monnier [Wed, 11 Dec 2013 14:42:34 +0000 (09:42 -0500)]
* lisp/delsel.el (delete-selection-mode): Don't enable transient-mark-mode.
(delete-selection-helper): Make sure yank starts at the top of the
deleted region.
(minibuffer-keyboard-quit): Use region-active-p.

10 years ago* lisp/emacs-lisp/trace.el (trace-make-advice): Don't deactivate the mark.
Stefan Monnier [Wed, 11 Dec 2013 14:27:15 +0000 (09:27 -0500)]
* lisp/emacs-lisp/trace.el (trace-make-advice): Don't deactivate the mark.

10 years ago* lisp/simple.el (normal-erase-is-backspace-mode): Map kp-delete identically
Stefan Monnier [Wed, 11 Dec 2013 14:22:26 +0000 (09:22 -0500)]
* lisp/simple.el (normal-erase-is-backspace-mode): Map kp-delete identically
to `delete'.

Fixes: debbugs:16109

10 years agoImport `octave-mode' manual from GNU Octave.
Rüdiger Sonderfeld [Wed, 11 Dec 2013 13:50:46 +0000 (14:50 +0100)]
Import `octave-mode' manual from GNU Octave.

The manual was written by Kurt Hornik.  He agreed to assign the
copyright for it to the FSF.  I have updated and modified the manual.

* doc/misc/octave-mode.texi: Imported from GNU Octave
  (doc/interpreter/emacs.txi).
* doc/misc/Makefile.in: Add octave-mode.texi.
* lisp/progmodes/octave.el (octave-mode, inferior-octave-mode): Link
  to info manual and show keybindings and set `:group' keyword.

10 years agoVarious fixes around Bug#16013.
Martin Rudalics [Wed, 11 Dec 2013 10:03:46 +0000 (11:03 +0100)]
Various fixes around Bug#16013.

* window.c (resize_frame_windows): Don't return immediately when
the root window's size doesn't change - the minibuffer window
may still have to be repositioned/resized.
* xfns.c (Fx_create_frame): Always change the frame size after
initializing the frame's faces.
* xterm.c (handle_one_xevent): Don't set pixel sizes here,
change_frame_size should already have done it.
(x_new_font): Assign new tool- and menu-bar heights.
(x_set_window_size_1): Account for tool- and menu-bar heights
(Bug#16013). Don't set pixel sizes since change_frame_size
should already have done it.

10 years agoRemove the option of using libcrypto.
Paul Eggert [Wed, 11 Dec 2013 05:37:30 +0000 (21:37 -0800)]
Remove the option of using libcrypto.

This scorches the earth and waits for spring;
see Ted Zlatanov and Stefan Monnier in
<http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00323.html>.
* configure.ac (with_openssl_default, HAVE_LIB_CRYPTO): Remove.
Do not say whether Emacs is configured to use a crypto library,
since it's no longer an option.
(gl_CRYPTO_CHECK): Define a dummy.
* lib/gl_openssl.h, m4/gl-openssl.m4: Remove.
* admin/merge-gnulib: Remove lib/gl_openssh.h and m4/gl-openssl.m4.
* src/Makefile.in (LIB_CRYPTO): Remove.
(LIBES): Don't use it.

10 years ago* lisp/delsel.el (delete-active-region): Let-bind `this-command'
Juri Linkov [Wed, 11 Dec 2013 01:11:24 +0000 (03:11 +0200)]
* lisp/delsel.el (delete-active-region): Let-bind `this-command'
to prevent `kill-region' from changing its original value.
(delete-selection-helper): Handle `overwrite-mode' for the type
`kill' exactly the same way as for the type `t'.
(insert-char, quoted-insert, reindent-then-newline-and-indent):
Support more commands.

Fixes: debbugs:13312

10 years ago* lisp/bindings.el: Map kp keys to non-kp keys systematically
Juri Linkov [Wed, 11 Dec 2013 00:45:10 +0000 (02:45 +0200)]
* lisp/bindings.el: Map kp keys to non-kp keys systematically
with basic modifiers control, meta and shift.

Fixes: debbugs:14397

10 years ago* src/term.c (term_get_fkeys_1): Remove non-standard IBM terminfo
Juri Linkov [Wed, 11 Dec 2013 00:32:00 +0000 (02:32 +0200)]
* src/term.c (term_get_fkeys_1): Remove non-standard IBM terminfo
as obsolete to avoid conflicts with <S-up>.

Fixes: debbugs:13471

10 years agoeww easy-menu fixes
Kenjiro NAKAYAMA [Wed, 11 Dec 2013 00:27:27 +0000 (19:27 -0500)]
eww easy-menu fixes

* net/eww.el (eww-mode-map): Instead of "Quit" show "Exit" and
"Close browser" menu items.  Fix wrong function of "List
bookmarks".

10 years ago* lisp/misearch.el (multi-isearch-buffers): Set the value of
Juri Linkov [Wed, 11 Dec 2013 00:11:26 +0000 (02:11 +0200)]
* lisp/misearch.el (multi-isearch-buffers): Set the value of
`multi-isearch-buffer-list' globally.  Set NO-RECURSIVE-EDIT
arg of isearch-forward to t.
(multi-isearch-buffers-regexp): Set the value of
`multi-isearch-buffer-list' globally.  Set NO-RECURSIVE-EDIT
arg of isearch-forward-regexp to t.
(multi-isearch-files): Set the value of
`multi-isearch-file-list' globally.  Set NO-RECURSIVE-EDIT
arg of isearch-forward to t.
(multi-isearch-files-regexp): Set the value of
`multi-isearch-file-list globally.  Set NO-RECURSIVE-EDIT
arg of isearch-forward-regexp to t.

* lisp/dired-aux.el (dired-isearch-filenames): Set NO-RECURSIVE-EDIT
arg of isearch-forward to t.
(dired-isearch-filenames-regexp): Set NO-RECURSIVE-EDIT
arg of isearch-forward-regexp to t.
(dired-isearch-filter-filenames): Remove unnecessary check for
`dired-isearch-filenames'.

* lisp/comint.el (comint-history-isearch-backward):
Set NO-RECURSIVE-EDIT arg of isearch-backward to t.
(comint-history-isearch-backward-regexp):
Set NO-RECURSIVE-EDIT arg of isearch-backward-regexp to t.

Fixes: debbugs:16035

10 years agoFix bug #16099 with failed out-of-tree builds on MS-Windows.
Eli Zaretskii [Tue, 10 Dec 2013 20:56:59 +0000 (22:56 +0200)]
Fix bug #16099 with failed out-of-tree builds on MS-Windows.

 lisp/Makefile.in (autoloads): Run $(srcdir)/loaddefs.el through
 unmsys--file-name.

10 years ago* font.c (font_find_for_lface): Ensure SAFE_FREE on return.
Dmitry Antipov [Tue, 10 Dec 2013 03:36:36 +0000 (07:36 +0400)]
* font.c (font_find_for_lface): Ensure SAFE_FREE on return.

10 years ago* configure.ac: Disable libcrypto by default.
Paul Eggert [Tue, 10 Dec 2013 02:44:28 +0000 (18:44 -0800)]
* configure.ac: Disable libcrypto by default.

Merge from gnulib, incorporating:
2013-12-07 md5, sha1, sha256, sha512: fix link error with partial lib
* m4/gl-openssl.m4: Update from gnulib.

10 years ago* xdisp.c (display_tool_bar_line): Don't extend on a previously
Dmitry Antipov [Tue, 10 Dec 2013 02:32:52 +0000 (06:32 +0400)]
* xdisp.c (display_tool_bar_line): Don't extend on a previously
drawn tool bar items (Bug#16058).

10 years agoRemove finder.el require dependency in package.el
Ted Zlatanov [Tue, 10 Dec 2013 00:54:38 +0000 (19:54 -0500)]
Remove finder.el require dependency in package.el

* emacs-lisp/package.el (package-keyword-button-action): Remove
finder.el require dependency.

10 years agoAdd keyword buttons to package description.
Ted Zlatanov [Mon, 9 Dec 2013 21:35:26 +0000 (16:35 -0500)]
Add keyword buttons to package description.

* emacs-lisp/package.el: Require finder.el.
(describe-package-1): Add keyword buttons.
(package-make-button): New convenience function.
(package-keyword-button-action): Keyword button action using
`finder-list-matches'

10 years agoFix declaration of get_frame_param for cygw32 build.
Ken Brown [Mon, 9 Dec 2013 20:46:07 +0000 (15:46 -0500)]
Fix declaration of get_frame_param for cygw32 build.

* src/frame.c (get_frame_param): Make extern if HAVE_NTGUI.

* src/lisp.h (get_frame_param): Adjust conditions for prototype
declaration.

10 years agoFix a thinko in last commit in autorevert.el.
Eli Zaretskii [Mon, 9 Dec 2013 17:48:01 +0000 (19:48 +0200)]
Fix a thinko in last commit in autorevert.el.

 lisp/autorevert.el (auto-revert-notify-add-watch): Exclude symlinks from
 file notifications.

10 years ago* gtkutil.c (USE_NEW_GTK_FONT_CHOOSER) [HAVE_FREETYPE]:
Dmitry Antipov [Mon, 9 Dec 2013 16:30:52 +0000 (20:30 +0400)]
* gtkutil.c (USE_NEW_GTK_FONT_CHOOSER) [HAVE_FREETYPE]:
Avoid unused macro warning if configured --without-xft.

10 years ago* autorevert.el (auto-revert-notify-add-watch): Do not handle symlinked files.
Michael Albinus [Mon, 9 Dec 2013 14:47:00 +0000 (15:47 +0100)]
* autorevert.el (auto-revert-notify-add-watch): Do not handle symlinked files.

10 years ago* alloc.c (Fmemory_limit): Avoid compiler warning. Return 0 always.
Jan Djärv [Mon, 9 Dec 2013 08:23:01 +0000 (09:23 +0100)]
* alloc.c (Fmemory_limit): Avoid compiler warning.  Return 0 always.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
Dmitry Gutov [Mon, 9 Dec 2013 04:19:16 +0000 (06:19 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
after the end of a percent literal.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-forward-string): Document.
Cameron Desautels [Mon, 9 Dec 2013 03:43:34 +0000 (05:43 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-forward-string): Document.
Handle caret-delimited strings.

Fixes: debbugs:16079

10 years ago* lisp/progmodes/ruby-mode.el (ruby-accurate-end-of-block): When
Dmitry Gutov [Mon, 9 Dec 2013 03:27:21 +0000 (05:27 +0200)]
* 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

10 years ago* subr.el (read-passwd): Disable show-paren-mode.
Leo Liu [Mon, 9 Dec 2013 02:38:42 +0000 (10:38 +0800)]
* subr.el (read-passwd): Disable show-paren-mode.

Fixes: debbugs:16091

10 years agolisp/gnus/gnus-msg.el (gnus-setup-message): Fix last commit
Katsumi Yamaoka [Mon, 9 Dec 2013 00:35:15 +0000 (00:35 +0000)]
lisp/gnus/gnus-msg.el (gnus-setup-message): Fix last commit

10 years agolisp/gnus/gnus-msg.el (gnus-setup-message): Fix the type of argument passed to nnir...
Katsumi Yamaoka [Sun, 8 Dec 2013 23:11:14 +0000 (23:11 +0000)]
lisp/gnus/gnus-msg.el (gnus-setup-message): Fix the type of argument passed to nnir-article-number and nnir-article-group

10 years agoSpelling fixes.
Paul Eggert [Sun, 8 Dec 2013 21:23:50 +0000 (13:23 -0800)]
Spelling fixes.

10 years agoFix librsvg build on MS-Windows.
Eli Zaretskii [Sun, 8 Dec 2013 19:28:29 +0000 (21:28 +0200)]
Fix librsvg build on MS-Windows.

 configure.ac (HAVE_RSVG) [mingw32]: Don't link against librsvg statically.

10 years agoMention test/indent/js.js, and restore one lost piece of it
Dmitry Gutov [Sun, 8 Dec 2013 16:11:08 +0000 (18:11 +0200)]
Mention test/indent/js.js, and restore one lost piece of it

* test/indent/js.js: New file.

10 years agoPort indentation code from js2-mode to js-mode
Dmitry Gutov [Sun, 8 Dec 2013 16:08:45 +0000 (18:08 +0200)]
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.

10 years agoFix typos in doc files (bug#16089).
Juanma Barranquero [Sun, 8 Dec 2013 15:33:27 +0000 (16:33 +0100)]
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.

10 years agoFix GNUStep toolbar not updating.
Jan Djärv [Sun, 8 Dec 2013 12:59:14 +0000 (13:59 +0100)]
Fix GNUStep toolbar not updating.

* src/nsterm.m (updateFrameSize:): Fix GNUStep toolbar not updating.

10 years ago* emacs.c (main): Call fixup_locale a second time for GNUStep.
Jan Djärv [Sun, 8 Dec 2013 12:18:13 +0000 (13:18 +0100)]
* emacs.c (main): Call fixup_locale a second time for GNUStep.

10 years agoIn x_set_font mark frame as garbaged (Bug#16028).
Martin Rudalics [Sun, 8 Dec 2013 09:56:02 +0000 (10:56 +0100)]
In x_set_font mark frame as garbaged (Bug#16028).

* frame.c (x_set_font): Mark frame as garbaged (Bug#16028).

10 years agoRe-write flymake-highlight-line in flymake.el
Leo Liu [Sun, 8 Dec 2013 09:18:55 +0000 (17:18 +0800)]
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.

10 years ago* configure.ac: Simplify supression of GTK deprecation warning.
Paul Eggert [Sun, 8 Dec 2013 08:53:49 +0000 (00:53 -0800)]
* 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.

10 years agoMake CUA-mode use shift-select-mode.
Stefan Monnier [Sun, 8 Dec 2013 08:11:50 +0000 (03:11 -0500)]
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.

10 years agoUse libcrypto's checksum implementations if available, for speed.
Paul Eggert [Sun, 8 Dec 2013 08:05:36 +0000 (00:05 -0800)]
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.

10 years ago* lisp/rect.el (rectangle-mark-mode): Activate mark even if
Stefan Monnier [Sun, 8 Dec 2013 07:32:01 +0000 (02:32 -0500)]
* 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

10 years agoRe-implement popup menu for flymake
Leo Liu [Sun, 8 Dec 2013 07:18:46 +0000 (15:18 +0800)]
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

10 years agoUse delete-selection-mode in cua-mode.
Stefan Monnier [Sun, 8 Dec 2013 06:24:54 +0000 (01:24 -0500)]
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

10 years ago* frame.h (SET_FRAME_VISIBLE): Now an inline function.
Paul Eggert [Sun, 8 Dec 2013 05:59:27 +0000 (21:59 -0800)]
* 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.

10 years agoMake registers and delete-selection-mode work on rectangles.
Stefan Monnier [Sun, 8 Dec 2013 04:20:50 +0000 (23:20 -0500)]
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.

10 years agoClean up flymake.el
Leo Liu [Sun, 8 Dec 2013 03:35:32 +0000 (11:35 +0800)]
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

10 years ago* src/window.c (set_window_buffer): Update mode line.
Stefan Monnier [Sun, 8 Dec 2013 03:07:11 +0000 (22:07 -0500)]
* src/window.c (set_window_buffer): Update mode line.

Fixes: debbugs:16084

10 years agoFix minor problems found by static checking.
Paul Eggert [Sat, 7 Dec 2013 23:04:10 +0000 (15:04 -0800)]
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.

10 years ago* lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.
Bozhidar Batsov [Sat, 7 Dec 2013 18:46:03 +0000 (20:46 +0200)]
* lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.

10 years agoFix int/Lisp_Object type mixup in w32_read_socket.
Martin Rudalics [Sat, 7 Dec 2013 17:48:52 +0000 (18:48 +0100)]
Fix int/Lisp_Object type mixup in w32_read_socket.

* w32term.c (w32_read_socket): Fix int/Lisp_Object type mixup.

10 years ago* gtkutil.c (tb_size_cb): Call xg_height_or_width_changed.
Jan Djärv [Sat, 7 Dec 2013 17:41:02 +0000 (18:41 +0100)]
* gtkutil.c (tb_size_cb): Call xg_height_or_width_changed.

10 years agoFix describe-function with advised functions.
Tassilo Horn [Sat, 7 Dec 2013 17:05:38 +0000 (18:05 +0100)]
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.

10 years agoFix GNUStep issues with startup.
Jan Djärv [Sat, 7 Dec 2013 16:48:12 +0000 (17:48 +0100)]
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.

10 years agoMention bug 16049.
Jan Djärv [Sat, 7 Dec 2013 14:26:29 +0000 (15:26 +0100)]
Mention bug 16049.

10 years agoHandle pixelwise resize changes in NS port.
Jan Djärv [Sat, 7 Dec 2013 14:21:53 +0000 (15:21 +0100)]
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.

10 years agobuild-aux/msys-to-w32: Fix a typo in a comment.
Dani Moncayo [Sat, 7 Dec 2013 13:02:09 +0000 (14:02 +0100)]
build-aux/msys-to-w32: Fix a typo in a comment.

10 years ago* net/shr.el (shr-tag-img): Don't bug out on <img src=""> data.
Lars Magne Ingebrigtsen [Sat, 7 Dec 2013 01:44:15 +0000 (02:44 +0100)]
* net/shr.el (shr-tag-img): Don't bug out on <img src=""> data.

10 years agoCommit missing ChangeLog entry.
Michael Albinus [Fri, 6 Dec 2013 15:35:11 +0000 (16:35 +0100)]
Commit missing ChangeLog entry.

10 years agoBug#16045
Michael Albinus [Fri, 6 Dec 2013 15:34:06 +0000 (16:34 +0100)]
Bug#16045

* progmodes/compile.el (compilation-start):
* progmodes/grep.el (rgrep): Revert change of 2012-12-20T11:15:38Z!michael.albinus@gmx.de.

* net/tramp-sh.el (tramp-sh-handle-start-file-process):
Handle long command lines, lasting from "sh -c ...".  (Bug#16045)

10 years agoRevert inadvertently commited changes in grep.el.
Eli Zaretskii [Fri, 6 Dec 2013 15:18:23 +0000 (17:18 +0200)]
Revert inadvertently commited changes in grep.el.

10 years agoFix bug #16070 with crashes when toggling buffer's multibyteness.
Eli Zaretskii [Fri, 6 Dec 2013 15:13:35 +0000 (17:13 +0200)]
Fix bug #16070 with crashes when toggling buffer's multibyteness.

 src/buffer.c (Fset_buffer_multibyte): Invalidate buffer caches.

10 years agoorg.texi: Don't include Emacs version within Org's version
Bastien Guerry [Fri, 6 Dec 2013 14:43:10 +0000 (15:43 +0100)]
org.texi: Don't include Emacs version within Org's version

Thanks to Glenn for reporting this.

10 years agoNEWS trivia
Glenn Morris [Fri, 6 Dec 2013 14:31:42 +0000 (09:31 -0500)]
NEWS trivia

10 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Touch
Dmitry Gutov [Fri, 6 Dec 2013 14:24:10 +0000 (16:24 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Touch
up the last change.

10 years agoMerge Org 8.2.4
Bastien Guerry [Fri, 6 Dec 2013 11:21:31 +0000 (12:21 +0100)]
Merge Org 8.2.4

10 years ago* xterm.c (input_signal_count): Remove.
Dmitry Antipov [Fri, 6 Dec 2013 05:49:05 +0000 (09:49 +0400)]
* xterm.c (input_signal_count): Remove.
(x_dispatch_event): Define unconditionally.
(x_make_frame_visible): Process X events until the frame
is really visible (Bug#16027).
* xterm.h (x_dispatch_event): Declare unconditionally.

10 years ago* progmodes/octave.el (inferior-octave-prompt): Use shy groups.
Leo Liu [Fri, 6 Dec 2013 04:26:17 +0000 (12:26 +0800)]
* progmodes/octave.el (inferior-octave-prompt): Use shy groups.
(inferior-octave-startup): Always use "octave> " for prompt.
(octave-goto-function-definition)
(octave-sync-function-file-names)
(octave-find-definition-default-filename): Remove redundant backquotes.

10 years agoFix Bug#15874
Dmitry Gutov [Fri, 6 Dec 2013 04:22:08 +0000 (06:22 +0200)]
Fix Bug#15874

* lisp/progmodes/ruby-mode.el (ruby-mode-syntax-table): Don't modify
syntax for `?'.
(ruby-expr-beg): Expect that `!' will have syntax class "symbol"
where appropriate already.
(ruby-syntax-propertize-function): Propertize `?' and `!' at the
end of method names.

10 years ago* lisp/isearch.el (isearch--saved-overriding-local-map): New internal variable.
Juri Linkov [Fri, 6 Dec 2013 00:55:20 +0000 (02:55 +0200)]
* lisp/isearch.el (isearch--saved-overriding-local-map): New internal variable.
(isearch-mode): Set it to the initial value of `overriding-terminal-local-map'.
(isearch-pre-command-hook): Compare `overriding-terminal-local-map'
with `isearch--saved-overriding-local-map'.

Fixes: debbugs:16035

10 years agoAdd caching variant of `completion-table-dynamic'
Dmitry Gutov [Fri, 6 Dec 2013 00:48:52 +0000 (02:48 +0200)]
Add caching variant of `completion-table-dynamic'

* lisp/minibuffer.el (completion-table-with-cache): New function.

* lisp/progmodes/octave.el (inferior-octave-completion-table): Turn
back into function, use `completion-table-with-cache'.  Update all
references.

Fixes: debbugs:11906

10 years ago* lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Fix ^.
Cameron Desautels [Thu, 5 Dec 2013 20:25:54 +0000 (15:25 -0500)]
* lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Fix ^.
* test/automated/regexp-tests.el: New file.

Fixes: debbugs:16046

10 years agoFix some pixelwise breakage, more remain.
Jan Djärv [Thu, 5 Dec 2013 16:20:11 +0000 (17:20 +0100)]
Fix some pixelwise breakage, more remain.

* nsfns.m (ns_frame_parm_handlers): Add right/bottom_divider_width.

* nsterm.m (x_set_window_size): Handle pixelwise.

10 years agoeww: add command to view page source
Ted Zlatanov [Thu, 5 Dec 2013 16:04:53 +0000 (11:04 -0500)]
eww: add command to view page source

* net/eww.el (eww-current-source): New variable to store page
source.
(eww-display-html, eww-mode, eww-save-history)
(eww-restore-history): Use it.
(eww-view-source): New command to view page source.
Opportunistically uses `html-mode' to highlight the buffer.
(eww-mode-map): Install it.

10 years ago* dbus.texi (Type Conversion): Clarify unibyte-ness of strings.
Michael Albinus [Thu, 5 Dec 2013 15:34:30 +0000 (16:34 +0100)]
* dbus.texi (Type Conversion): Clarify unibyte-ness of strings.

10 years ago* automated/dbus-tests.el: New file.
Michael Albinus [Thu, 5 Dec 2013 15:31:57 +0000 (16:31 +0100)]
* automated/dbus-tests.el: New file.

10 years agoMinor changes, detected by test suite.
Michael Albinus [Thu, 5 Dec 2013 15:29:59 +0000 (16:29 +0100)]
Minor changes, detected by test suite.

* net/dbus.el (dbus-unregister-service)
(dbus-escape-as-identifier, dbus-unescape-from-identifier):
Fix docstring.
(dbus-unregister-service): Skip :serial entries in
`dbus-registered-objects-table'.
(dbus-byte-array-to-string): New optional arg MULTIBYTE.

10 years agoIn x_new_font calculate new frame sizes from new font size (Bug#16028).
Martin Rudalics [Thu, 5 Dec 2013 13:46:30 +0000 (14:46 +0100)]
In x_new_font calculate new frame sizes from new font size (Bug#16028).

* w32term.c (x_new_font):
* xterm.c (x_new_font): Calculate new frame size from new font
size (Bug#16028).

10 years ago* src/lisp.h (FOR_EACH_TAIL): New macro.
Stefan Monnier [Wed, 4 Dec 2013 22:10:46 +0000 (17:10 -0500)]
* src/lisp.h (FOR_EACH_TAIL): New macro.
* src/fns.c (Fdelq): Use it to avoid inf-loops; remove QUIT.

10 years agoTrim whitespace in lm-keywords-list
Ted Zlatanov [Wed, 4 Dec 2013 21:32:05 +0000 (16:32 -0500)]
Trim whitespace in lm-keywords-list

* emacs-lisp/lisp-mnt.el (lm-keywords-list): Trim whitespace
around keywords with extra `split-string' argument.

10 years ago* src/window.c (select_window): Call second wset_redisplay before we change
Stefan Monnier [Wed, 4 Dec 2013 21:08:21 +0000 (16:08 -0500)]
* src/window.c (select_window): Call second wset_redisplay before we change
selected_window.

Fixes: debbugs:16034

10 years ago* bidi.c (LRM_CHAR, RLM_CHAR): Remove; no longer used.
Paul Eggert [Wed, 4 Dec 2013 19:19:45 +0000 (11:19 -0800)]
* bidi.c (LRM_CHAR, RLM_CHAR): Remove; no longer used.

10 years agoAvoid compiler warning in w32xfns.c.
Eli Zaretskii [Wed, 4 Dec 2013 19:05:16 +0000 (21:05 +0200)]
Avoid compiler warning in w32xfns.c.

 src/w32xfns.c: Include window.h, to avoid a compiler warning.

10 years ago* src/window.c (window_scroll): Mark window for redisplay.
Stefan Monnier [Wed, 4 Dec 2013 18:46:47 +0000 (13:46 -0500)]
* src/window.c (window_scroll): Mark window for redisplay.
(scroll_command, Fscroll_other_window): Don't cause redisplay now that
window_scroll takes care of it.
(Fset_window_point, Fdelete_other_windows_internal)
(set_window_buffer, Fwindow_resize_apply, resize_frame_windows)
(Fsplit_window_internal, Fdelete_window_internal)
(Fresize_mini_window_internal, Fset_window_configuration)
(apply_window_adjustment): Use fset_redisplay and wset_redisplay to
cause redisplay instead of forcing a complete redisplay.
* src/xdisp.c (wset_redisplay): Don't set windows_or_buffers_changed if
we're only affecting the selected_window.

Fixes: debbugs:16034

10 years agoFix bug #16043 with crashes when displaying new bidi control characters.
Eli Zaretskii [Wed, 4 Dec 2013 16:58:05 +0000 (18:58 +0200)]
Fix bug #16043 with crashes when displaying new bidi control characters.

 src/bidi.c (bidi_get_type, bidi_get_category): Handle the isolate
 directional control characters.  Update type and category
 determination according to the UBA from Unicode v6.3.
 (bidi_category_t): New category EXPLICIT_FORMATTING.
 src/dispextern.h (bidi_type_t): Update to include new bidirectional
 properties introduced with Unicode v6.3.

 admin/unidata/unidata-gen.el (unidata-prop-alist): Update bidi-class
 to include the new isolate-related classes introduced with Unicode
 v6.3.
 (unidata-encode-val): Accept an additional optional argument, a
 warning message to emit when UnicodeData.txt defines bidi-class
 values that are not in unidata-prop-alist.  Add a comment
 explaining what should maintainers do if/when such a warning ever
 appears.
 (unidata-gen-table): Call unidata-encode-val with 3rd arg non-nil
 when generating uni-bidi.el.

10 years agoAdd ChangeLog for last commit: In windmove-other-window-loc handle navigation between...
Martin Rudalics [Wed, 4 Dec 2013 14:22:50 +0000 (15:22 +0100)]
Add ChangeLog for last commit: In windmove-other-window-loc handle navigation between windows (Bug#16017).

* windmove.el (windmove-other-window-loc): Handle navigation
between windows (excluding the minibuffer window - Bug#16017).

10 years agoIn XTflash fix coordinate of bottom area to flash (Bug#16044).
Martin Rudalics [Wed, 4 Dec 2013 14:11:33 +0000 (15:11 +0100)]
In XTflash fix coordinate of bottom area to flash (Bug#16044).

* xterm.c (XTflash): Fix coordinate of bottom area to flash
(Bug#16044).

10 years ago* net/dbus.el (dbus-byte-array-to-string): Accept also byte arrays
Michael Albinus [Wed, 4 Dec 2013 14:10:09 +0000 (15:10 +0100)]
* net/dbus.el (dbus-byte-array-to-string): Accept also byte arrays
in D-Bus type syntax.
(dbus-unescape-from-identifier): Use `byte-to-string' in order to
preserve unibyte strings.  (Bug#16048)

10 years ago* font.h (struct font_bitmap): Remove unused 'extra' member.
Dmitry Antipov [Wed, 4 Dec 2013 13:35:41 +0000 (17:35 +0400)]
* font.h (struct font_bitmap): Remove unused 'extra' member.
* ftfont.c (ftfont_get_bitmap): Adjust users.

10 years ago* font.c (font_list_entities): Remove dummy assignment.
Dmitry Antipov [Wed, 4 Dec 2013 13:08:30 +0000 (17:08 +0400)]
* font.c (font_list_entities): Remove dummy assignment.
* font.h (struct font) [HAVE_WINDOW_SYSTEM]: Group members which are
used on graphic displays only.  Remove unused 'font_encoder' member.
* nsfont.m (nsfont_open):
* w32font.c (w32font_open_internal): Adjust users.

10 years agoFix eldoc-in-minibuffer's modeline update.
Stefan Monnier [Wed, 4 Dec 2013 04:42:01 +0000 (23:42 -0500)]
Fix eldoc-in-minibuffer's modeline update.
* lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message):
Call force-mode-line-update is the proper buffer.

Fixes: debbugs:16042

10 years agoRemember log-edit comment when the buffer is killed
Dmitry Gutov [Wed, 4 Dec 2013 00:37:33 +0000 (02:37 +0200)]
Remember log-edit comment when the buffer is killed

* lisp/vc/log-edit.el (log-edit-add-new-comment): Rename to
`log-edit-remember-comment', make argument optional.  Adjust all
callers.
(log-edit-mode): Add `log-edit-remember-comment' to
`kill-buffer-hook' locally.
(log-edit-kill-buffer): Don't remember comment explicitly since
the buffer is killed anyway.

10 years ago* lisp/isearch.el (isearch-mode, isearch-done): Don't set arg LOCAL
Juri Linkov [Wed, 4 Dec 2013 00:12:02 +0000 (02:12 +0200)]
* lisp/isearch.el (isearch-mode, isearch-done): Don't set arg LOCAL
in add-hook and remove-hook for multi-buffer search.

* doc/lispref/searching.texi (Search and Replace): Fix `unread-command-events'
and add ref.

Fixes: debbugs:16035

10 years agoUse bool for boolean.
Paul Eggert [Tue, 3 Dec 2013 22:36:49 +0000 (14:36 -0800)]
Use bool for boolean.

* tparam.c (tparam1):
* undo.c (record_point, record_property_change):
Use bool for boolean, for local vars that are always true or false.

10 years agoMinor integer overflow fixes.
Paul Eggert [Tue, 3 Dec 2013 21:37:41 +0000 (13:37 -0800)]
Minor integer overflow fixes.

* window.c (Fset_window_new_pixel): Don't let new_pixel go negative.
This improves on the previous fix to this function.
(window_resize_check): When summing up pixel counts, don't rely on
undefined behavior if the sum overflows.

Fixes: debbugs:16033

10 years agoAdd to last fix: In gtk resizing count tool and menubars.
Martin Rudalics [Tue, 3 Dec 2013 18:08:14 +0000 (19:08 +0100)]
Add to last fix: In gtk resizing count tool and menubars.

10 years agoAgain fix last fix.
Martin Rudalics [Tue, 3 Dec 2013 17:22:05 +0000 (18:22 +0100)]
Again fix last fix.

10 years agoFix last fix (Bug#16036)
Martin Rudalics [Tue, 3 Dec 2013 11:33:13 +0000 (12:33 +0100)]
Fix last fix (Bug#16036)

10 years ago* notifications.el (notifications-close-notification): Call the
Tom Regner [Tue, 3 Dec 2013 08:24:39 +0000 (09:24 +0100)]
* notifications.el (notifications-close-notification): Call the
D-Bus method with `id' being an `:uint32'.  (Bug#16030)

10 years agoFix issues related to pixelwise resizing. (Bug#16013) (Bug#16033)
Martin Rudalics [Tue, 3 Dec 2013 07:45:54 +0000 (08:45 +0100)]
Fix issues related to pixelwise resizing.  (Bug#16013) (Bug#16033)

* window.c (Fset_window_new_pixel): Don't choke at negative
argument value (Bug#16033).

* xfns.c (Fx_create_frame): Add another call to change_frame_size
to avoid crash in window_box_height.

* gtkutil.h: Fix external declaration of xg_frame_set_char_size.
* gtkutil.c (xg_frame_set_char_size, style_changed_cb): Fix size
calculation.
* xterm.c (x_set_window_size): Fix size calculation (Bug#16013).