1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
Commit graph

112528 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
6f94cbbcb5 (imagemagick_compute_animated_image): Clean up code slightly 2013-08-15 19:26:34 +02:00
Stefan Monnier
10fa0ed328 * lisp/emacs-lisp/debug.el (debugger-setup-buffer): Put point on the
previous line.
(debugger-eval-expression, debugger-record-expression):
Use read--expression (bug#15102).

Fixes: debbugs:15101
2013-08-15 13:21:19 -04:00
Lars Magne Ingebrigtsen
a5b5f73f32 (imagemagick_compute_animated_image): Respect the GIF disposal methods. 2013-08-15 19:20:06 +02:00
Michael Albinus
b74f0d960f Declare external variables. 2013-08-15 19:02:09 +02:00
Ken Brown
0fe73012cd Revert last change to gmalloc.c; update some comments. 2013-08-15 12:37:15 -04:00
Paul Eggert
691a357f3a Fix minor problems found by static checking.
* frame.c (delete_frame):
* xdisp.c (next_element_from_display_vector):
Avoid uninitialized local.
* image.c (imagemagick_compute_animated_image): Port to C89.
Prefer usual GNU indentation style for loops.
Be more careful about bizarrely large sizes, by using ptrdiff_t
instead of int.
2013-08-15 09:28:42 -07:00
Lars Magne Ingebrigtsen
f196836bc0 Further image.c compilation warning fixes 2013-08-15 18:03:56 +02:00
Lars Magne Ingebrigtsen
995be755ab (imagemagick_compute_animated_image): Implement a simple cache
(imagemagick_compute_animated_image): Fix some compilation
warnings.  Implement a very simple cache to make the animation
usable at all, but it should be replaced with a per-image cache.
2013-08-15 18:01:13 +02:00
Dmitry Antipov
42fe2e88d6 Fix infinite frame selection loop (Bug#15025).
* frame.c (delete_frame): Prefer fast ad-hoc loop to next_frame.
2013-08-15 19:37:03 +04:00
Eli Zaretskii
0542623943 Fix bug #15099 with 'box' face attribute in display tables.
src/xdisp.c (next_element_from_display_vector): Support 'box' face attribute
 in the face definitions of a display vector.
2013-08-15 18:28:53 +03:00
Eli Zaretskii
d39a3da6f3 Fix bug #15090 with redisplay under linum-mode and visual-line-mode.
src/xdisp.c (compute_window_start_on_continuation_line): When
 WORD_WRAP is in effect, use move_it_to instead of move_it_by_lines
 to make sure we end up setting the window start at the leftmost
 visible character of the display line.  This avoids funky
 horizontal shifting because the window start is not kept on the
 same position.
2013-08-15 18:20:03 +03:00
Lars Magne Ingebrigtsen
6e856b69ff * image.c (imagemagick_compute_animated_image): Implement animated images.
Fixes: debbugs:14700
2013-08-15 17:10:12 +02:00
Dmitry Antipov
d5a1acfaa5 * lisp.h (FOR_EACH_ALIST_VALUE): New macro
to do `for' loops over alist values.
* buffer.h (FOR_EACH_BUFFER):
* process.c (FOR_EACH_PROCESS): Use it.
(handle_child_signal, status_notify, Fget_buffer_process)
(kill_buffer_processes): Use FOR_EACH_PROCESS.
2013-08-15 18:52:53 +04:00
Michael Albinus
5d89d9d256 Remove byte compiler warnings, visible when compiling with
`byte-compile-force-lexical-warnings' set to t.

* net/tramp.el (tramp-debug-message, tramp-message, tramp-error)
(tramp-error-with-buffer): Rename ARGS to ARGUMENTS and BUFFER to BUF.
(tramp-handle-unhandled-file-name-directory)
(tramp-handle-file-notify-add-watch, tramp-action-login)
(tramp-action-succeed, tramp-action-permission-denied)
(tramp-action-terminal, tramp-action-process-alive): Prefix unused
arguments with "_".

* net/tramp-adb.el (tramp-adb-parse-device-names)
(tramp-adb-handle-insert-directory, tramp-adb-handle-delete-file)
(tramp-adb-handle-copy-file): Prefix unused arguments with "_".
(tramp-adb-handle-file-truename): Remove unused arguments.

* net/tramp-cache.el (tramp-flush-directory-property)
(tramp-flush-connection-property, tramp-list-connections)
(tramp-parse-connection-properties): Prefix unused arguments with "_".

* net/tramp-compat.el (tramp-compat-make-temp-file): Rename
FILENAME to F.

* net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-handle-write-region, tramp-bluez-parse-device-names)
(tramp-zeroconf-parse-workstation-device-names)
(tramp-zeroconf-parse-webdav-device-names)
(tramp-synce-parse-device-names): Prefix unused arguments with "_".

* net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
(tramp-gw-aux-proc-sentinel): Prefix unused arguments with "_".

* net/tramp-sh.el (tramp-sh-handle-file-truename): Remove unused
arguments.
(tramp-sh-handle-copy-file, tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-file-contents-literally)
(tramp-sh-handle-file-notify-add-watch): Prefix unused arguments
with "_".
(tramp-do-copy-or-rename-file, tramp-barf-if-no-shell-prompt):
Remove unused variables.

* net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file, tramp-smb-handle-delete-file)
(tramp-smb-read-file-entry): Prefix unused arguments with "_".

* net/tramp-uu.el (tramp-uu-b64-alphabet, tramp-uu-b64-char-to-byte):
Make them a defconst.
(tramp-uuencode-region): Remove unused variable.
2013-08-15 16:29:08 +02:00
Xue Fuqiao
7cbbcaa0dd * doc/lispref/markers.texi (The Region): Add/move indexes. 2013-08-15 16:27:22 +08:00
Glenn Morris
8e5c7e6f4e Stop keeping etc/refcards generated PDFs in the repository
They are on the gnu.org website and will be in the release tarfiles.

* admin/make-tarball.txt: Mention generating pdfs in etc/refcards.

* etc/refcards/calccard.pdf, etc/refcards/cs-dired-ref.pdf:
* etc/refcards/cs-refcard.pdf, etc/refcards/de-refcard.pdf:
* etc/refcards/dired-ref.pdf, etc/refcards/fr-dired-ref.pdf:
* etc/refcards/fr-refcard.pdf, etc/refcards/gnus-booklet.pdf:
* etc/refcards/gnus-refcard.pdf, etc/refcards/orgcard.pdf:
* etc/refcards/pl-refcard.pdf, etc/refcards/pt-br-refcard.pdf:
* etc/refcards/refcard.pdf, etc/refcards/ru-refcard.pdf:
* etc/refcards/sk-dired-ref.pdf, etc/refcards/sk-refcard.pdf:
Remove generated files from repository.
2013-08-14 23:38:44 -07:00
Glenn Morris
4fa4485689 Cleanup for etc/refcards/Makefile and related items
* .bzrignore: Unignore etc/refcards/Makefile.

* make-dist: Do not distribute etc/refcards TeX intermediate files.

* Makefile.in (install-arch-indep):
Do not install etc/refcards TeX intermediate files.

* etc/refcards/Makefile: Rewrite to use portable Makefile syntax.
Add language-specific targets.
(distclean, extraclean): New rules.

*  etc/refcards/README: Add copyright and license.  Add Makefile details.
Mention http and FSF store versions.
2013-08-14 23:31:14 -07:00
Xue Fuqiao
555d556547 * admin/notes/hydra: More information about Hydra. 2013-08-15 14:23:40 +08:00
Dmitry Antipov
9c25330708 * term.c (get_named_tty, create_tty_output, tty_free_frame_resources)
(tty_free_frame_resources, delete_tty): Prefer eassert to emacs_abort.
* image.c (make_image_cache): For struct image_cache, prefer xmalloc
to xzalloc and so avoid redundant call to memset.
* xterm.c (x_term_init): Avoid unnecessary initializations of dpyinfo
members because it is allocated with xzalloc and so already zeroed.
2013-08-15 09:23:40 +04:00
Ken Brown
05e64f9f63 * src/gmalloc.c [CYGWIN]: Rename memalign (Bug#15094). 2013-08-14 15:09:51 -04:00
Dmitry Antipov
5b71542de3 Utility function and macro to copy Lisp string to C string.
* lisp.h (xlispstrdupa): New macro.
(xlispstrdup): New prototype.
* alloc.c (xlispstrdup): New function.
* callint.c (Fcall_interactively):
* fileio.c (Ffile_name_directory, Fexpand_file_name)
(Fsubstitute_in_file_name):
* frame.c (Fmake_terminal_frame): Use xlispstrdupa.
* image.c (x_create_bitmap_from_file):
* w32term.c (w32_term_init):
* xterm.c (x_term_init): Use xlispstrdup.
2013-08-14 20:36:16 +04:00
Xue Fuqiao
d48d97ee4a Refine previous change. 2013-08-14 22:02:46 +08:00
Xue Fuqiao
7510a061cb * src/marker.c (set_marker): Reformat documentation. 2013-08-14 21:58:25 +08:00
Lars Magne Ingebrigtsen
4ce82fb8d9 * image.c (imagemagick_load_image): Make animated pictures work.
There's still some problems with background color settings, though.

Fixes: debbugs:14700
2013-08-14 15:50:03 +02:00
Juanma Barranquero
14d1e4634c lisp/frameset.el: Allow orphaned minibufferless frames.
(frameset-filter-minibuffer): Deal with the case that the minibuffer
parameter was already set in FILTERED.  Doc fix.
(frameset--record-minibuffer-relationships): Allow saving a
minibufferless frame without its corresponding minibuffer frame.
(frameset--reuse-frame): Accept a match from an orphaned minibufferless
frame, if the frame id matches.
(frameset--minibufferless-last-p): Sort non-orphaned minibufferless
frames before orphaned ones.
(frameset-restore): Warn about orphaned windows, instead of error out.
2013-08-14 15:41:02 +02:00
Juanma Barranquero
62f33baed9 lisp/frameset.el: Use gv-setter declaration.
(frameset--prop-setter): New function.
(frameset-prop): Add gv-setter declaration.
2013-08-14 15:30:13 +02:00
Lars Magne Ingebrigtsen
6c195442ea * url-http.el (url-http-parse-headers): Always place point at the
start of the buffer instead of just 80% of the time.
2013-08-14 15:03:25 +02:00
Lars Magne Ingebrigtsen
71530c97bf * decompress.c (unwind_decompress): Always restore point. 2013-08-14 14:47:05 +02:00
Xue Fuqiao
5faf4899f0 * doc/emacs/files.texi (Filesets): Add an index. 2013-08-14 18:45:10 +08:00
Glenn Morris
1ee025605e Auto-commit of generated files. 2013-08-14 06:17:37 -04:00
Martin Rudalics
c660a885df Fix some issues in window.el.
* window.el (window-make-atom): Don't overwrite parameter
already present.
(display-buffer-in-atom-window): Handle special case where we
split an already atomic window.
(window--major-non-side-window, display-buffer-in-side-window)
(window--side-check): Ignore minibuffer window when walking
window tree.
(window-deletable-p): Return 'frame only if no other frame uses
our minibuffer window.
(record-window-buffer): Run buffer-list-update-hook.
(split-window): Make sure window--check-frame won't destroy an
existing atomic window in case the new window gets nested
inside.
(display-buffer-at-bottom): Ignore minibuffer window when
walking window tree.  Don't split a side window.
(pop-to-buffer): Don't set-buffer here, the select-window call
should do that.
(mouse-autoselect-window-select): Autoselect only if we are in the
text portion of the window.
2013-08-14 11:14:32 +02:00
Dmitry Antipov
94a4e898b6 * xdisp.c (redisplay_window): If window_end_valid is cleared due to
non-zero windows_or_buffers_changed, clear current_matrix_up_to_date_p
and so do not call to try_cursor_movement for that window.
2013-08-14 11:25:45 +04:00
Paul Eggert
aab1fcdf81 * xdisp.c (cursor_type_changed): Now static. 2013-08-14 00:05:54 -07:00
Paul Eggert
01c3051fc3 * image.c (imagemagick_filename_hint): New arg HINT_BUFFER.
Use changed.  This avoids the need to call xmalloc and for the
caller to call xfree, and avoids memory leaks in some situations.
2013-08-14 00:00:25 -07:00
Dmitry Antipov
2084152aee * xdisp.c (adjust_window_ends): Move duplicated code to new function.
(try_window, try_window_reusing_current_matrix, try_window_id): Use it.
2013-08-14 10:06:56 +04:00
Dmitry Antipov
02455cb66a * window.h (struct window): Convert window_end_pos and
window_end_vpos from Lisp_Object to ptrdiff_t and int, respectively.
(wset_window_end_pos, wset_window_end_vpos): Remove.
* dispnew.c (adjust_glyph_matrix):
* window.c (Fwindow_end, replace_window, set_window_buffer)
(make_window):
* xdisp.c (check_window_end, move_it_to, redisplay_internal)
(set_vertical_scroll_bar, redisplay_window, try_window)
(try_window_reusing_current_matrix, find_first_unchanged_at_end_row)
(try_window_id, decode_mode_spec, mouse_face_from_buffer_pos)
(note_mouse_highlight): Adjust users.
(try_cursor_movement): Likewise.  Convert old precondition to eassert.
Add comment.
2013-08-14 09:41:48 +04:00
Dmitry Antipov
da5707e8ec Fix --enable-gcc-warnings errors introduced in 2013-08-13 commit.
* image.c (imagemagick_filename_hint): Use `const char *' and
prefer SSDATA to SDATA to avoid warnings.
2013-08-14 08:27:32 +04:00
Dmitry Antipov
2555426703 Cleanup window fringes, margins and scroll bars adjustments.
* window.c (set_window_fringes, set_window_margins)
(set_window_scroll_bars, apply_window_adjustment): New functions.
(set_window_buffer, Fset_window_margins, Fset_window_fringes)
(Fset_window_scroll_bars): Use them.
2013-08-14 08:09:37 +04:00
Dmitry Antipov
38a2c91021 * window.h (struct window): Convert scroll_bar_width
from Lisp_Object to integer.  Adjust comment.
(WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
Adjust users.
* window.c (wset_scroll_bar_width): Remove.
(make_window): Initialize scroll_bar_width.
(Fsplit_window_internal): Use direct assignment.
(Fset_window_configuration, save_window_save):
Convert Lisp_Object to integer and back where appropriate.
(Fset_window_scroll_bars): Adjust user.  Return t if any scroll
bar was actually changed, and mention this in docstring.
2013-08-14 08:07:14 +04:00
Ulrich Mueller
af79c3cb0b * configure.ac (EMACS_CONFIGURATION): Escape backslashes.
Fixes: debbugs:15091
2013-08-13 22:15:01 -04:00
Daniel Hackney
281c7202cc * package-test.el: Remove tar-package-building functions. Tar file
used for testing is included in the repository.
(package-test-install-texinfo, package-test-cleanup-built-files): Remove.
2013-08-13 20:56:58 -04:00
Paul Eggert
2d065031e4 * decompress.c: Minor simplifications.
(Fzlib_decompress_region): Don't bother verifying
that avail_out <= UINT_MAX, as that was confusing.
Mention the restriction in a comment instead.
Prefer 'int' to 'ptrdiff_t' when 'int' is wide enough.
2013-08-13 14:17:09 -07:00
Jan Djärv
a5bd5abb64 Fix OSX 10.4 compiler errors.
* nsmenu.m (x_activate_menubar): Check for OSX >= 10.5
(trackingNotification:): Call ns_check_menu_open only for OSX >= 10.5.
2013-08-13 22:18:30 +02:00
Lars Magne Ingebrigtsen
c6b7ccaaf6 Rename :content-type to :format in `create-image' 2013-08-13 22:13:02 +02:00
Lars Magne Ingebrigtsen
cfa1f436cb White-space cleanup. 2013-08-13 20:24:37 +02:00
Lars Magne Ingebrigtsen
66e7901a78 * image.c (imagemagick_filename_hint): Check for errors in the alist structure. 2013-08-13 20:22:04 +02:00
Lars Magne Ingebrigtsen
21c58ae2a8 Make shr feed Content-Type to the image-creating libraries
This finally makes it possible to display icons.

* net/eww.el (eww-display-image): Ditto.

* net/shr.el (shr-parse-image-data): New function to grab both the
data itself and the Content-Type.
(shr-put-image): Use it.
2013-08-13 20:09:50 +02:00
Eli Zaretskii
2fa611b72b Fix the Windows build broken by 2013-08-13T15:29:25Z!dmantipov@yandex.ru.
src/window.c (Fwindow_margins): Return nil when there's no marginal
 area, as per the documented API.
 src/w32term.c (x_scroll_bar_create): Use ALLOCATE_PSEUDOVECTOR, not
 Fmake_vector, as scroll bar's struct members are not all Lisp
 objects now.  This avoids crashes in GC.
 src/w32term.h (struct scroll_bar): Convert fringe_extended_p to a
 bool, so its address could be taken.
2013-08-13 21:01:18 +03:00
Lars Magne Ingebrigtsen
8259030d68 Enable giving hints to ImageMagick via :content-type
2013-08-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* image.el (image-content-type-suffixes): New variable.

2013-08-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* image.c (imagemagick_filename_hint): New function to possibly
	apply `image-content-type-suffixes'.
	(imagemagick_load_image): Use it.
2013-08-13 19:45:34 +02:00
Fabián Ezequiel Gallina
ad75644970 * lisp/progmodes/python.el (python-imenu--build-tree)
(python-imenu--put-parent): Simplify and Fix (GH bug 146).

* test/automated/python-tests.el (python-imenu-create-index-4)
(python-imenu-create-flat-index-2): New tests.
2013-08-13 13:36:32 -03:00