Commit graph

114154 commits

Author SHA1 Message Date
Stefan Monnier
afdadaf7b6 * lisp/simple.el (normal-erase-is-backspace-mode): Map kp-delete identically
to `delete'.

Fixes: debbugs:16109
2013-12-11 09:22:26 -05:00
Rüdiger Sonderfeld
ed4bc201f5 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.
2013-12-11 14:50:46 +01:00
Martin Rudalics
d94c40c1b7 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.
2013-12-11 11:03:46 +01:00
Paul Eggert
a8f9bc05c3 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.
2013-12-10 21:37:30 -08:00
Juri Linkov
bb8097b96b * 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
2013-12-11 03:11:24 +02:00
Juri Linkov
c1916ff5b8 * lisp/bindings.el: Map kp keys to non-kp keys systematically
with basic modifiers control, meta and shift.

Fixes: debbugs:14397
2013-12-11 02:45:10 +02:00
Juri Linkov
26ec2ce909 * src/term.c (term_get_fkeys_1): Remove non-standard IBM terminfo
as obsolete to avoid conflicts with <S-up>.

Fixes: debbugs:13471
2013-12-11 02:32:00 +02:00
Kenjiro NAKAYAMA
b68cf43cfb 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".
2013-12-10 19:27:27 -05:00
Juri Linkov
4cc51eaf09 * 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
2013-12-11 02:11:26 +02:00
Eli Zaretskii
ceac12b731 Fix bug #16099 with failed out-of-tree builds on MS-Windows.
lisp/Makefile.in (autoloads): Run $(srcdir)/loaddefs.el through
 unmsys--file-name.
2013-12-10 22:56:59 +02:00
Dmitry Antipov
e8374b3959 * font.c (font_find_for_lface): Ensure SAFE_FREE on return. 2013-12-10 07:36:36 +04:00
Paul Eggert
7d01e13ced * 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.
2013-12-09 18:44:28 -08:00
Dmitry Antipov
a71cfa02f3 * xdisp.c (display_tool_bar_line): Don't extend on a previously
drawn tool bar items (Bug#16058).
2013-12-10 06:32:52 +04:00
Ted Zlatanov
5a56578283 Remove finder.el require dependency in package.el
* emacs-lisp/package.el (package-keyword-button-action): Remove
finder.el require dependency.
2013-12-09 19:54:38 -05:00
Ted Zlatanov
a81fc7ba93 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'
2013-12-09 16:35:26 -05:00
Ken Brown
336fe071e5 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.
2013-12-09 15:46:07 -05:00
Eli Zaretskii
6aaca95125 Fix a thinko in last commit in autorevert.el.
lisp/autorevert.el (auto-revert-notify-add-watch): Exclude symlinks from
 file notifications.
2013-12-09 19:48:01 +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
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
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
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