1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
Commit graph

110359 commits

Author SHA1 Message Date
Eli Zaretskii
a5cc4ddeb8 Fix bug #13953 with spontaneous frame resizes on MS-Windows.
src/w32term.c (w32_read_socket) <WM_WINDOWPOSCHANGED>: Remove old
 and incorrect code.  Treat WM_WINDOWPOSCHANGED like WM_ACTIVATE
 and WM_ACTIVATEAPP.
 (w32fullscreen_hook): If the frame is visible, reset
 f->want_fullscreen flag after changing the frame size.  If the
 frame is not visible, set f->want_fullscreen to FULLSCREEN_WAIT.
2013-03-14 19:37:51 +02:00
Tassilo Horn
d35f586402 * doc-view.el (doc-view-insert-image): Don't modify overlay
associated with pseudo winprops entry, and implement horizontal
centering of image in case it's smaller than the window
(bug#13887).
2013-03-14 16:24:04 +01:00
Glenn Morris
2407788fbb Auto-commit of generated files. 2013-03-14 06:17:38 -04:00
Daniel Colascione
3fc5e44aaa * emacs.c (main): Call syms_of_cygw32 on CYGWIN non-NTGUI builds
too so that these builds can use Cygwin's file conversion
functions.  (We've been building and linking cygw32.o all along
and just not using it.)
2013-03-13 11:28:50 -08:00
Karl Fogel
1c4a85eda0 * saveplace.el (save-place-alist-to-file): Don't sort
`save-place-alist', just pretty-print it (bug#13882).
2013-03-13 13:54:05 -05:00
Paul Eggert
47d7532e09 File synchronization fixes.
* admin/CPP-DEFINES (BSD_SYSTEM, HAVE_FSYNC): Remove.
* admin/merge-gnulib (GNULIB_MODULES): Add fsync, fdatasync.
* configure.ac (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
(fsync): Remove check; now done by gnulib.
* lib/fdatasync.c, lib/fsync.c, m4/fdatasync.m4, m4/fsync.m4:
New files, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib-src/Makefile.in (LIB_FDATASYNC): New macro.
(emacsclient${EXEEXT}): Use it.
* lib-src/emacsclient.c (main): Use fdatasync, not fsync, since we don't
care about metadata.  Keep trying if interrupted.
* lib-src/movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since
fsync is available everywhere (or there is a substitute).  Don't
report an error if fsync returns EINVAL.
* nt/inc/ms-w32.h (fdatasync): New macro, suggested by Eli Zaretskii.
* src/Makefile.in (LIB_FDATASYNC): New macro.
(LIBES): Use it.
* src/conf_post.h (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
* src/fileio.c (Fwrite_region, write_region_inhibit_fsync):
Don't worry about HAVE_FSYNC, since a substitute fsync is
available if the system lacks one.
(Fwrite_regin): Retry fsync if interrupted.

Fixes: debbugs:13944
2013-03-13 11:42:22 -07:00
Eli Zaretskii
c7ffccaf17 Fix bug #13937 with creating a maximized frame on MS-Windows.
src/w32term.c (w32_read_socket): If we Emacs frame is being
 activated, call w32fullscreen_hook, to make sure the new frame
 dimensions are in effect.
2013-03-13 19:31:06 +02:00
Dmitry Antipov
ffcd945ec5 * window.c (Fscroll_other_window): Use SET_PT_BOTH because both
character and byte positions can be obtained from marker.
2013-03-13 19:41:54 +04:00
Dmitry Antipov
8a7debc14c * xdisp.c (init_iterator): Simplify because both character and byte
positions are either specified or -1.  Add eassert.  Adjust comment.
2013-03-13 19:21:46 +04:00
Michael Albinus
dba720f1d1 Fix last change. 2013-03-13 12:42:21 +01:00
Michael Albinus
85b66a2100 * net/tramp-sh.el (tramp-sh-handle-insert-directory): Check,
whether `default-file-name-coding-system' is bound.  It isn't in
XEmacs.
2013-03-13 12:38:13 +01:00
Glenn Morris
2393bc7411 Auto-commit of generated files. 2013-03-13 06:17:36 -04:00
Paul Eggert
d9df6f40e3 Static checking by Sun C 5.12.
* lib-src/etags.c (analyse_regex): Omit unreachable code.
* src/alloc.c (buffer_memory_full) [REL_ALLOC]:
* src/bytecode.c (exec_byte_code):
* src/dispnew.c (init_display):
* src/eval.c (error):
* src/fileio.c (Fsubstitute_in_file_name):
* src/keyboard.c (Fevent_convert_list):
* src/keymap.c (Fsingle_key_description):
* src/term.c (maybe_fatal, fatal):
* src/xfns.c (Fx_display_backing_store, Fx_display_visual_class):
* src/xsmfns.c (Fhandle_save_session):
Omit unreachable code.
* src/keymap.c (map_keymap_char_table_item): Cast void * to
a function pointer type; the C Standard requires this.
2013-03-13 00:27:34 -07:00
Paul Eggert
2c3f72f4b5 Merge from gnulib: putenv: port to Solaris 10. 2013-03-13 00:15:17 -07:00
Paul Eggert
7fd8c501a0 * sysdep.c: Remove a use of BSD_SYSTEM, which I'm trying to phase out.
Include <sys/param.h> unconditionally, as that works elsewhere and
is simpler here.  Include <sys/sysctl.h> if DARWIN_OS ||
__FreeBSD__, not if BSD_SYSTEM, since it's needed only for Darwin
and FreeBSD now.
2013-03-12 22:04:46 -07:00
Stefan Monnier
e7f7cb1aa3 * lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Don't use
backquotes for `obsolete'.

Fixes: debbugs:13929
2013-03-12 22:19:31 -04:00
Stefan Monnier
175600dafc * lisp/international/mule.el (find-auto-coding): Include file name in
obsolescence warning.

Fixes: debbugs:13922
2013-03-12 22:08:33 -04:00
Paul Eggert
9e3edd30c3 * movemail.c: Don't grant more read permissions than necessary.
The old 0333 dates back to before we called setuid,
so it was needed back then to ensure user-readability,
but 0377 should suffice now.
2013-03-12 18:05:40 -07:00
Paul Eggert
f58afc72bd * movemail.c (main): Call umask on all systems.
This is OK since Emacs already assumes umask elsewhere.
2013-03-12 17:54:47 -07:00
Paul Eggert
5615c9a9af Merge from gnulib.
This incorporates:
2013-03-12 mktime: fix configure typo
2013-03-11 regex: port to mingw's recent addition of undeclared alarm
2013-03-11 putenv: avoid compilation warning on mingw
2013-03-11 unistd: don't prevent Tru64 Unix from using gnulib strtod.
2013-03-12 17:38:42 -07:00
Paul Eggert
84c3ab6860 Mention etc/HELLO. 2013-03-12 16:53:35 -07:00
Paul Eggert
4ef8c23161 Remove incorrect comment about hanja3.el. 2013-03-12 13:54:53 -07:00
Paul Eggert
5c592c9a1a Add coding tags for iso-2022-7bit files that are not already tagged.
* HELLO, tutorials/TUTORIAL.ko, tutorials/TUTORIAL.th:
Add coding tag.  For TUTORIAL.th this prevents Emacs from
misinterpreting the file.
2013-03-12 09:53:31 -07:00
Ted Zlatanov
ca68a22e64 * progmodes/cfengine.el: add CFEngine 3-specific indentation. 2013-03-12 11:49:26 -04:00
Paul Eggert
48b9bb83f2 Prefer UTF-8 in documentation. 2013-03-11 19:40:08 -07:00
Paul Eggert
932e8ec6f3 Prefer UTF-8 in commentary. 2013-03-11 19:25:36 -07:00
Stefan Monnier
940e509914 Use locate-user-emacs-file.
* lisp/type-break.el (type-break-file-name):
* lisp/textmodes/remember.el (remember-data-file):
* lisp/strokes.el (strokes-file):
* lisp/shadowfile.el (shadow-initialize):
* lisp/saveplace.el (save-place-file):
* lisp/ps-bdf.el (bdf-cache-file):
* lisp/progmodes/idlwave.el (idlwave-config-directory):
* lisp/net/quickurl.el (quickurl-url-file):
* lisp/international/kkc.el (kkc-init-file-name):
* lisp/ido.el (ido-save-directory-list-file):
* lisp/emulation/viper.el (viper-custom-file-name):
* lisp/emulation/vip.el (vip-startup-file):
* lisp/calendar/todo-mode.el (todo-file-do, todo-file-done, todo-file-top):
* lisp/calendar/timeclock.el (timeclock-file): Use locate-user-emacs-file.
2013-03-11 22:08:21 -04:00
Paul Eggert
cc72580827 Switch encodings of tutorials, thai-word to UTF-8.
* etc/refcards/ru-refcard.tex:
* etc/tutorials/TUTORIAL.bg, etc/tutorials/TUTORIAL.bg, etc/tutorials/TUTORIAL.cn:
* etc/tutorials/TUTORIAL.cs, etc/tutorials/TUTORIAL.de, etc/tutorials/TUTORIAL.eo:
* etc/tutorials/TUTORIAL.es, etc/tutorials/TUTORIAL.fr, etc/tutorials/TUTORIAL.it:
* etc/tutorials/TUTORIAL.nl, etc/tutorials/TUTORIAL.pl, etc/tutorials/TUTORIAL.pt_BR:
* etc/tutorials/TUTORIAL.ro, etc/tutorials/TUTORIAL.sk, etc/tutorials/TUTORIAL.sv:
* etc/tutorials/TUTORIAL.zh:
* lisp/language/thai-word.el:
Switch to UTF-8.

Fixes: debbugs:13880
2013-03-11 18:14:08 -07:00
Paul Eggert
2b0fae5e18 * admin/notes/unicode: Fix "the these" typo. 2013-03-11 15:35:04 -07:00
Paul Eggert
1b610f5143 * notes/unicode: Improve notes about Emacs source file encoding. 2013-03-11 15:32:07 -07:00
Stefan Monnier
e56221d550 * lisp/recentf.el (recentf-save-file): Use locate-user-emacs-file.
Fixes: debbugs:13870
2013-03-11 16:37:00 -04:00
Thierry Volpiatto
c6bdd11071 * lisp/net/net-utils.el (net-utils-remove-ctrl-m-filter):
Use with-current-buffer and don't move point.
(net-utils-run-simple): Remove useless code.
(net-utils-remove-ctl-m): Remove unused custom.
2013-03-11 14:30:49 -04:00
Per Starbäck
bd3921f0b8 * lisp/international/characters.el (glyphless-set-char-table-range): New fun.
(update-glyphless-char-display): Use it.

Fixes: debbugs:13744
2013-03-11 13:45:23 -04:00
Ted Zlatanov
ccc4f9f186 Update ChangeLog for 2013-03-11T17:17:13Z!tzz@lifelogs.com. 2013-03-11 13:21:31 -04:00
Ted Zlatanov
526cb962b5 * progmodes/cfengine.el: Update for CFEngine 3.4.2 and higher. 2013-03-11 13:17:13 -04:00
Jean-Philippe Gravel
6ff2c8f1fe * lisp/progmodes/gdb-mi.el: Speed up initialization. Use lexical-binding.
Fix up docstring according to conventions.
(gdbmi-debug-mode): New var.
(gdbmi-start-with, gdbmi-same-start, gdbmi-is-number, gdbmi-bnf-init)
(gdbmi-bnf-output, gdbmi-bnf-skip-unrecognized, gdbmi-bnf-gdb-prompt)
(gdbmi-bnf-result-record, gdbmi-bnf-out-of-band-record)
(gdbmi-bnf-async-record, gdbmi-bnf-stream-record)
(gdbmi-bnf-console-stream-output, gdbmi-bnf-target-stream-output)
(gdbmi-bnf-log-stream-output, gdbmi-bnf-result-and-async-record-impl)
(gdbmi-bnf-incomplete-record-result): New functions.
(gdb-car<): Remove function.
(gdbmi-record-list): Remove variable.
(gdbmi-bnf-state, gdbmi-bnf-offset): New vars.
(gdbmi-bnf-result-state-configs): New const.
(gud-gdbmi-marker-filter): Rewrite.
(gdb-ignored-notification, gdb-thread-created, gdb-thread-exited)
(gdb-thread-selected, gdb-running, gdb-starting, gdb-stopped):
Add `token' argument.
(gdb-done, gdb-error): New functions.
(gdb-done-or-error): Add `is-complete' argument.  Change arg order.

Fixes: debbugs:10580
2013-03-11 13:13:39 -04:00
Ted Zlatanov
b388e7ad07 * control.texi (Pattern matching case statement): Fix typo. 2013-03-11 13:05:30 -04:00
Glenn Morris
ae0d461554 Merge from emacs-24; up to 2012-12-25T17:37:29Z!eliz@gnu.org 2013-03-11 09:31:55 -07:00
Stefan Monnier
2523c845da * lisp/term/xterm.el (xterm--report-background-handler): Don't burp
upon timeout.
(xterm--version-handler): Extract from terminal-init-xterm.
(xterm--query): Don't mishandle timeout.  Remove debugging messages.
Allow multiple handlers.
(terminal-init-xterm): Handle OSX's Terminal.app's incorrect answer.

Fixes: debbugs:6758
2013-03-11 10:08:44 -04:00
Glenn Morris
c69f46735f Small updates for make-manuals admin scripts
* admin/admin.el (make-manuals): Add emacs-lisp-intro and some more
doc/misc manuals.
(manual-html-mono, manual-html-node, manual-txt): Pass -I to makeinfo.
2013-03-11 01:09:21 -07:00
Stefan Monnier
9b59398006 * lisp/term/xterm.el: Don't discard input. Use lexical-binding.
(xterm--report-background-handler, xterm--query): New functions.
(terminal-init-xterm): Use them.

Fixes: debbugs:6758
2013-03-11 00:24:15 -04:00
Michael Mauger
e18e61cf27 * progmodes/sql.el Version 3.2
Please note that my address changed to <michael@mauger.com>; the
<mmaug@yahoo.com> address remains active.
(sql-connection-alist): Updates documentation to fix bug#13715.
(sql-connect): Handle missing `sql-connection-alist' correctly.
(sql-mode-oracle-font-lock-keywords): Add missing keywords.
(sql-magic-go, sql-magic-semicolon): Mark with `delete-selection'
property.
(sql-default-value): New function.
(sql-get-login-ext, sql-get-login): Fixes bug where buffer-local
values were not used.
(sql-rename-buffer): Make sure alternate buffer name has no text
properties.
(sql-input-sender, sql-execute-feature): Fetch variable with
`buffer-local-value' rather than `with-current-buffer'.
(sql-*): Use #' function syntax consistently.
(sql-*): Use message/error/user-error consistently.
2013-03-11 00:09:37 -04:00
Paul Eggert
307d0e95ee Spelling fixes. 2013-03-10 21:07:45 -07:00
Paul Eggert
cb0290dfa2 * insdel.c (adjust_after_replace): Use bool for boolean. 2013-03-10 21:02:06 -07:00
Stefan Monnier
25c09217a0 * lisp/xt-mouse.el (xterm-mouse-event-read): Remove.
(xterm-mouse--read-event-sequence-1000)
(xterm-mouse--read-event-sequence-1006): Use read-event instead.
2013-03-10 22:56:18 -04:00
Glenn Morris
24958590a0 Add 24.3 release to ChangeLogs 2013-03-10 19:35:23 -07:00
Stefan Monnier
cbae07d5e0 * src/keyboard.c: Move keyboard decoding to read_key_sequence.
(decode_keyboard_code): Remove.
(tty_read_avail_input): Don't try to decode input.
(read_decoded_char): New function.
(read_key_sequence): Use it.
2013-03-10 21:17:40 -04:00
Daniel Colascione
819e2da92a 2013-03-10 Daniel Colascione <dancol@dancol.org>
* w32term.h (GUISTR, GUI_ENCODE_FILE, GUI_ENCODE_SYSTEM, GUI_FN)
	(GUI_SDATA, guichar_t): Macros to abstract out differences between
	NTGUI_UNICODE and !NTGUI_UNICODE builds, some moved out of
	w32fns.c.

	* w32term.c (construct_drag_n_drop): Use the above macros to make
	drag-and-drop work for non-ASCII filenames in cygw32 builds.

	* w32fns.c (x_set_name, x_set_title): Use the above macros to
	properly display non-ASCII frame titles in cygw32 builds.

	* w32fns.c (Fw32_shell_execute): Use the above macros to properly
	call ShellExecute in cygw32 builds.

	* w32fn.c (Fx_file_dialog): Use the above macros to simplify the
	common file dialog code.

	* w32fns.c (Ffile_system_info): Remove from cygw32 builds, which
	can just use du like other systems.

	* coding.c (from_unicode_buffer): Declare.
	* coding.c (from_unicode_buffer): Implement.
2013-03-10 14:55:25 -08:00
Stefan Monnier
d2e24f924a * src/lread.c: Minor cleanup.
(FROM_FILE_P): New macro.
(skip_dyn_bytes, unreadchar, read1): Use it.
(read_list): Consolidate duplicated code.
2013-03-10 17:52:01 -04:00
Stefan Monnier
99ec16475a * src/bytecode.c (struct byte_stack): Remove `constants' when unused. 2013-03-10 17:46:55 -04:00