1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00
Commit Graph

114111 Commits

Author SHA1 Message Date
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
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
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
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
Michael Albinus
0494d994cd Commit missing ChangeLog entry. 2013-12-06 16:35:11 +01:00
Michael Albinus
4803595dfd 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)
2013-12-06 16:34:06 +01:00
Eli Zaretskii
a59d76e05f Revert inadvertently commited changes in grep.el. 2013-12-06 17:18:23 +02:00
Eli Zaretskii
6d6aa291f2 Fix bug #16070 with crashes when toggling buffer's multibyteness.
src/buffer.c (Fset_buffer_multibyte): Invalidate buffer caches.
2013-12-06 17:13:35 +02:00
Bastien Guerry
ed72f323bf org.texi: Don't include Emacs version within Org's version
Thanks to Glenn for reporting this.
2013-12-06 15:43:10 +01:00
Glenn Morris
652b969ea1 NEWS trivia 2013-12-06 09:31:42 -05:00
Dmitry Gutov
fa834a93da * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Touch
up the last change.
2013-12-06 16:24:10 +02:00
Bastien Guerry
73d3db828e Merge Org 8.2.4 2013-12-06 12:21:31 +01:00
Dmitry Antipov
64ed4306fc * 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.
2013-12-06 09:49:05 +04:00
Leo Liu
b2856a6f7c * 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.
2013-12-06 12:26:17 +08:00
Dmitry Gutov
af67e79a52 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.
2013-12-06 06:22:08 +02:00
Juri Linkov
bf09320951 * 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
2013-12-06 02:55:20 +02:00
Dmitry Gutov
16588fadd0 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
2013-12-06 02:48:52 +02:00
Cameron Desautels
bf4906d7ca * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Fix ^.
* test/automated/regexp-tests.el: New file.

Fixes: debbugs:16046
2013-12-05 15:25:54 -05:00
Jan Djärv
c619527c15 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.
2013-12-05 17:20:11 +01:00
Ted Zlatanov
ff69c18f0c 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.
2013-12-05 11:04:53 -05:00
Michael Albinus
543dd9697c * dbus.texi (Type Conversion): Clarify unibyte-ness of strings. 2013-12-05 16:34:30 +01:00
Michael Albinus
6e0458c49f * automated/dbus-tests.el: New file. 2013-12-05 16:31:57 +01:00
Michael Albinus
b85eff45cf 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.
2013-12-05 16:29:59 +01:00
Martin Rudalics
8bea269da3 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).
2013-12-05 14:46:30 +01:00
Stefan Monnier
105324ced4 * src/lisp.h (FOR_EACH_TAIL): New macro.
* src/fns.c (Fdelq): Use it to avoid inf-loops; remove QUIT.
2013-12-04 17:10:46 -05:00
Ted Zlatanov
39eb08995a Trim whitespace in lm-keywords-list
* emacs-lisp/lisp-mnt.el (lm-keywords-list): Trim whitespace
around keywords with extra `split-string' argument.
2013-12-04 16:32:05 -05:00
Stefan Monnier
22800ae936 * src/window.c (select_window): Call second wset_redisplay before we change
selected_window.

Fixes: debbugs:16034
2013-12-04 16:08:21 -05:00
Paul Eggert
c521fe2923 * bidi.c (LRM_CHAR, RLM_CHAR): Remove; no longer used. 2013-12-04 11:19:45 -08:00
Eli Zaretskii
913250cf96 Avoid compiler warning in w32xfns.c.
src/w32xfns.c: Include window.h, to avoid a compiler warning.
2013-12-04 21:05:16 +02:00
Stefan Monnier
5961ad6cd2 * 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
2013-12-04 13:46:47 -05:00
Eli Zaretskii
ad82612405 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.
2013-12-04 18:58:05 +02:00
Martin Rudalics
456760a5b4 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).
2013-12-04 15:22:50 +01:00
Martin Rudalics
2db4a1b634 In XTflash fix coordinate of bottom area to flash (Bug#16044).
* xterm.c (XTflash): Fix coordinate of bottom area to flash
(Bug#16044).
2013-12-04 15:11:33 +01:00
Michael Albinus
81961e4cea * 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)
2013-12-04 15:10:09 +01:00
Dmitry Antipov
a84c99500e * font.h (struct font_bitmap): Remove unused 'extra' member.
* ftfont.c (ftfont_get_bitmap): Adjust users.
2013-12-04 17:35:41 +04:00
Dmitry Antipov
a378aa9de7 * 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.
2013-12-04 17:08:30 +04:00
Stefan Monnier
8497f93806 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
2013-12-03 23:42:01 -05:00
Dmitry Gutov
dda6191643 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.
2013-12-04 02:37:33 +02:00
Juri Linkov
c085e5b909 * 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
2013-12-04 02:12:02 +02:00
Paul Eggert
5df474aaa9 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.
2013-12-03 14:36:49 -08:00
Paul Eggert
2654ac09cc 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
2013-12-03 13:37:41 -08:00
Martin Rudalics
0b254a38fa Add to last fix: In gtk resizing count tool and menubars. 2013-12-03 19:08:14 +01:00