Jan Djärv
3f53a2bd1a
* Makefile.in (${ns_appdir}): Add touch to avoid removal with equal timestamps.
2013-03-16 13:58:47 +01:00
Eli Zaretskii
53761081f7
Fix problems with MSVC build reported in bug #13939 .
...
nt/inc/stdint.h (UINTPTR_MAX): Define.
nt/nmake.defs (libc): Fix syntax of !if conditional.
2013-03-16 10:55:38 +02:00
Eli Zaretskii
12bc3154f5
Revert inadvertently committed changes in lispref/frames.texi.
2013-03-16 10:22:31 +02:00
Eli Zaretskii
98e775e640
Fix command-line-normalize-file-name for DOS/Windows file names.
...
lisp/startup.el (command-line-normalize-file-name): Fix handling of
backslashes in DOS and Windows file names. Reported by Xue Fuqiao
<xfq.free@gmail.com> in
http://lists.gnu.org/archive/html/help-gnu-emacs/2013-03/msg00245.html .
2013-03-16 10:20:36 +02:00
Paul Eggert
cded56c19b
* coding.c (decode_coding_gap): Fix typo caught by static checking.
2013-03-15 13:03:31 -07:00
Juanma Barranquero
5a96718d79
nt/config.nt: Sync with autogen/config.in.
...
(BSD_SYSTEM, BSD_SYSTEM_AHB, HAVE_ALARM, HAVE__PUTENV): Remove.
(HAVE_DECL_ALARM, HAVE_DECL_FDATASYNC, HAVE_DECL__PUTENV)
(HAVE_FDATASYNC): New macros.
2013-03-15 18:12:03 +01:00
Kenichi Handa
646859d33a
merge trunk
2013-03-16 01:04:47 +09:00
Kenichi Handa
8a44e6d176
Optimize ASCII file reading with EOL format detection and decoding.
2013-03-16 01:03:54 +09:00
Michael Albinus
d7251c31ab
Sync with Tramp 2.2.7.
...
* trampver.texi: Update release number.
2013-03-15 15:19:06 +01:00
Michael Albinus
2edd602933
Sync with Tramp 2.2.7.
...
* net/trampver.el: Update release number.
2013-03-15 15:17:25 +01:00
Eli Zaretskii
5f795e34b3
Match the effect of FULLSCREEN_BOTH and FULLSCREEN_MAXIMIZED to docs on Windows.
...
src/w32term.c (w32fullscreen_hook): Swap FULLSCREEN_BOTH and
FULLSCREEN_MAXIMIZED.
Fixes: debbugs:13935
2013-03-15 12:07:29 +02:00
Eli Zaretskii
4e2df81da5
src/ChangeLog: Fix a typo in a recent entry.
2013-03-15 09:32:28 +02:00
Dmitry Antipov
f258b4be00
* region-cache.c (find_cache_boundary, move_cache_gap)
...
(insert_cache_boundary, delete_cache_boundaries, set_cache_region):
Simplify debugging check and convert to eassert. Adjust comment.
(pp_cache): Put under ENABLE_CHECKING.
2013-03-15 11:23:49 +04:00
Tassilo Horn
f35ffe5e37
* doc-view.el Fix bug#13887.
...
(doc-view-insert-image): Don't modify overlay associated to
non-live windows, and implement horizontal centering of image in
case it's smaller than the window.
(doc-view-new-window-function): Force redisplay of new windows on
doc-view buffers.
2013-03-14 22:33:07 +01:00
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