Dan Nicolaescu
a4daeecfef
Pass CFLAGS to the linker.
...
* configure.in (PROFILING_LDFLAGS): Do not define, remove all uses.
* lib-src/Makefile.in (PROFILING_LDFLAGS): Remove, not needed.
* msdos/sed1v2.inp (PROFILING_LDFLAGS):
* msdos/sed3v2.inp (PROFILING_LDFLAGS): Remove, not defined anymore.
* src/Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
(PROFILING_LDFLAGS): Remove, not needed anymore.
2010-10-10 08:35:04 -07:00
Dan Nicolaescu
4cf3ad3065
* src/Makefile.in (CRT_DIR): Move near potential user.
...
(START_FILE): Move near CRT_DIR, it might use it.
2010-10-10 07:47:43 -07:00
Dan Nicolaescu
2cb72a7552
* src/Makefile.in: Use $(...) everywhere instead of ${...}
2010-10-10 07:43:05 -07:00
Dan Nicolaescu
4c62015720
Small sysdep.c cleanups.
...
* src/sysdep.c (LPASS8): Remove, unused.
(emacs_ospeed): Change from being a global to a local in the only
user: init_baud_rate.
2010-10-10 06:44:22 -07:00
Lars Magne Ingebrigtsen
bda6d2bd8f
Don't use foo() to talk about functions.
2010-10-09 16:31:56 +02:00
Lars Magne Ingebrigtsen
2e6c74c53f
(emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
...
According to the documentation, this is correct, and it seems to
make things work.
2010-10-09 15:54:57 +02:00
Lars Magne Ingebrigtsen
b845653dc0
Make emacs_gnutls_read() return the expected on errors.
...
Also interface cleanups.
2010-10-09 15:19:30 +02:00
Chong Yidong
3625b3e282
* xterm.c (x_draw_relief_rect): Clear corner pixels.
2010-10-08 23:30:31 -04:00
Michael Albinus
8b1c619f0b
* keyboard.c: Revert last change; it was not intended to be
...
synchronized with the trunk.
2010-10-08 14:41:49 +02:00
Juanma Barranquero
4628bef1ee
Merge changes from emacs-23 branch.
2010-10-08 12:14:47 +02:00
Chong Yidong
389454fb57
* xterm.c (x_draw_relief_rect): If box width is larger than 1,
...
draw the outermost line using the black relief, for legibility.
Omit drawing the four corner pixels.
2010-10-08 01:02:56 -04:00
Glenn Morris
2b7c934285
ChangeLog fix.
2010-10-07 20:19:47 -07:00
Kenichi Handa
93d50df81d
coding.c (complement_process_encoding_system): Fix previous change.
2010-10-08 09:43:16 +09:00
Chong Yidong
51b403bdcb
Don't add an echo dash for the first keystroke (Bug#7137).
...
* src/keyboard.c (echo_prompt): Function moved into read_key_sequence.
(read_key_sequence): Inline echo_prompt.
(echo_dash): Add a dash only if key is continued (Bug#7137).
2010-10-04 14:16:22 -04:00
Dan Nicolaescu
3e6ae1a4ae
Remove O_RDONLY, O_WRONLY definitions, not needed.
...
* src/unexcoff.c:
* src/lread.c:
* src/fileio.c:
* src/doc.c:
* src/callproc.c:
* src/alloc.c:
* src/termcap.c: Remove O_RDONLY O_WRONLY definitions.
2010-10-04 10:22:57 -07:00
Kenichi Handa
ff06de4f50
merge emacs-23
2010-10-04 10:53:48 +09:00
Kenichi Handa
5886ec9c0c
coding.c (complement_process_encoding_system): Fix previous change.
2010-10-04 10:47:51 +09:00
Lars Magne Ingebrigtsen
c1ae068bbb
Rework the gnutls boot interface.
...
From Teodor Zlatanov.
2010-10-04 00:37:37 +02:00
Glenn Morris
e2afe435ea
* src/fileio.c (Vdirectory_sep_char): Remove.
2010-10-03 14:27:04 -07:00
Dan Nicolaescu
b5437a05ec
* src/termhooks.h: Remove #ifdef CONSP.
2010-10-03 09:21:55 -07:00
Dan Nicolaescu
4777478a50
* configure.in (NO_INLINE, noinline): Move here from src/xterm.c.
...
* src/xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2010-10-03 08:39:21 -07:00
Dan Nicolaescu
a3d5088daa
Include <fcntl.h> unconditionally.
...
* src/termcap.c:
* src/sysdep.c:
* src/lread.c:
* src/keyboard.c:
* src/filelock.c:
* src/fileio.c:
* src/doc.c:
* src/callproc.c:
* src/alloc.c: Remove include guards for <fcntl.h>, process.c already
does it.
2010-10-03 08:19:34 -07:00
Dan Nicolaescu
8271973583
* src/process.c: Do not include <sys/wait.h>, syswait.h does it.
2010-10-03 07:48:21 -07:00
Dan Nicolaescu
9de940b59e
* src/sysdep.c (flush_pending_output): Remove code, does not do
...
anything on any platform.
2010-10-03 07:43:17 -07:00
Dan Nicolaescu
57507bf8b5
Remove unused code.
...
* src/sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
select emulation, all systems support select.
(set_exclusive_use): Remove, the only user is in an #if 0 block.
* src/process.c (create_process): Remove #if 0 code.
2010-10-03 07:16:48 -07:00
Dan Nicolaescu
dd5ecd6bb5
Remove unused arguments for unexec.
...
The third one is never used, and the last two are always passed as zero.
* src/emacs.c (unexec): Add declaration.
(Fdump_emacs): Only pass the first two arguments to unexec.
Simplify #ifdef.
* src/unexw32.c (unexec):
* src/unexsol.c (unexec):
* src/unexhp9k800.c (unexec):
* src/unexcw.c (unexec): Remove the last 3 arguments, unused.
* src/unexelf.c (unexec): Remove the last 3 arguments, unused.
(find_section): Use const.
* src/unexmacosx.c (unexec): Remove the last 3 arguments, unused.
(unexec_error): Declare it NO_RETURN.
* src/unexcoff.c (make_hdr): Assume bss_start is always zero, remove
it as an argument, remove data_start and entry_address arguments, unused.
(unexec): Remove bss_start, data_start and
entry_address arguments.
* src/unexaix.c (make_hdr): Assume bss_start is always zero, remove
it as an argument, remove data_start and entry_address arguments, unused.
(unexec): Remove bss_start, data_start and
entry_address arguments.
2010-10-03 06:59:56 -07:00
Juanma Barranquero
7f467e1413
src/makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2010-10-03 14:36:19 +02:00
Michael Albinus
a79b0f2863
* dbusbind.c (syms_of_dbusbind): Move putenv call ...
...
(Fdbus_init_bus): ... here. (Bug#7113)
2010-10-03 11:23:07 +02:00
Juanma Barranquero
74f1829da3
src/gnutls.c: Doc fixes. Make some functions static.
...
(emacs_gnutls_handshake, gnutls_make_error, gnutls_emacs_global_init)
(gnutls_emacs_global_deinit): Make static.
(Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
Fix typos in docstrings.
(Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
(Fgnutls_errorp): Doc fix; use ERR for the argument name.
2010-10-03 06:12:15 +02:00
Glenn Morris
7b2bf907f1
Doc fix.
...
* src/buffer.c (before-change-functions, after-change-functions):
Three-year overdue doc fix following 2007-08-13 change.
2010-10-02 18:23:50 -07:00
Chong Yidong
6926550f39
* keyboard.c (command_loop_1): Make sure the mark is really alive
...
before using it (Bug#7044).
2010-10-02 20:59:02 -04:00
Juanma Barranquero
54b65f7b40
Rework tags targets in Windows makefiles to protect against old/stupid makes.
...
* lib-src/makefile.w32-in (tags): Remove target.
* src/makefile.w32-in (tags): Rename target to full-tags.
2010-10-02 14:12:17 +02:00
Eli Zaretskii
383ebd154f
Invoke kill-emacs on SIGINT on Windows as well.
...
src/emacs.c (main): Remove !WINDOWSNT conditional.
(Fkill_emacs): Don't mention exemption on MS-Windows.
etc/NEWS: Fix the news entry regarding SIGINT in batch mode.
2010-10-02 10:24:14 +02:00
Glenn Morris
3226d6cacf
Remove some functions, variables and aliases obsolete since at least 21.1.
...
* doc/misc/misc.texi (Shell Mode): Remove reference to old function name.
* src/character.c (Fchar_bytes): Remove obsolete function.
(syms_of_character): Remove Schar_bytes.
* lisp/subr.el (char-bytes): Remove obsolete function.
* lisp/emacs-lisp/checkdoc.el (checkdoc-minor-keymap): Remove obsolete alias.
* lisp/isearch.el (isearch-return-char): Remove obsolete function.
* lisp/mouse.el: No longer provide mldrag.
(mldrag-drag-mode-line, mldrag-drag-vertical-line):
Remove obsolete aliases.
* lisp/comint.el (comint-kill-output): Remove obsolete alias.
* lisp/shell.el: Comment fix.
* lisp/composite.el (decompose-composite-char): Remove obsolete function.
* lisp/ps-def.el (decompose-composite-char): Remove unused function.
* lisp/iswitchb.el (iswitchb-default-keybindings): Remove obsolete function.
* lisp/outline.el (outline-visible): Remove obsolete function.
* lisp/term/pc-win.el (x-frob-font-slant, x-frob-font-weight):
* lisp/faces.el (internal-find-face, internal-get-face)
(frame-update-faces, frame-update-face-colors)
(x-frob-font-weight, x-frob-font-slant)
(internal-frob-font-weight, internal-frob-font-slant)
(x-make-font-bold, x-make-font-demibold, x-make-font-unbold)
(x-make-font-italic, x-make-font-oblique, x-make-font-unitalic)
(x-make-font-bold-italic): Remove functions and aliases, obsolete
since Emacs 21.1.
* lisp/emulation/viper-util.el (viper-get-face):
* lisp/obsolete/lucid.el (find-face, get-face): Use facep.
* lisp/vc/ediff-init.el (ediff-valid-color-p, ediff-get-face):
Remove unused functions.
* lisp/vc/ediff-util.el (ediff-submit-report): Doc fix.
* etc/NEWS: Mention above changes.
2010-10-01 19:46:13 -07:00
Glenn Morris
9c524fcb89
Run kill-emacs-hook in batch mode, and on SIGINT in batch mode.
...
See thread http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg00795.html
* src/emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
(main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
in batch-mode.
(Fkill_emacs): Doc fix. Also run the hook in batch mode.
(kill-emacs-hook): Doc fix.
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use kill-emacs-hook to
delete tempfile if interrupted during compilation.
* doc/lispref/os.texi (Killing Emacs): Hook now runs in batch mode.
* etc/NEWS: Mention these changes.
2010-10-01 19:30:11 -07:00
Kenichi Handa
1911a33b9d
Fix complementing of a coding system
2010-10-02 10:44:50 +09:00
Lars Magne Ingebrigtsen
1b21784963
xml.c: Rework the functions to take regions instead of strings,
...
and rename the functions to reflect clearly that they come from the
libxml package.
2010-10-02 02:36:47 +02:00
Eli Zaretskii
0ebf79dee2
Fix initial frame dimensions on MS-DOS.
...
term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
screen dimensions in tty->Wcm.
2010-10-01 22:18:24 +02:00
Eli Zaretskii
54cc6a8387
Fix bug #6349 with cursor positioning in truncated lines.
...
xdisp.c (set_cursor_from_row): When the row is truncated and
point is outside the range of displayed characters, position the
cursor inside the scroll margin.
2010-10-01 19:38:36 +02:00
Dan Nicolaescu
4cacd822d1
Do not include stdlib.h and string.h, config.h does it.
...
* src/xfont.c:
* src/w32term.c:
* src/w32reg.c:
* src/w32inevt.c:
* src/w32heap.c:
* src/w32console.c:
* src/w16select.c:
* src/unexsol.c:
* src/term.c:
* src/sound.c:
* src/scroll.c (m):
* src/gtkutil.c:
* src/font.c:
* src/filelock.c:
* src/fileio.c:
* src/dosfns.c:
* src/dbusbind.c:
* src/bidi.c:
* src/callproc.c:
* src/process.c:
* src/msdos.c:
* src/charset.c: Do not include stdlib.h and string.h, config.h does it.
* configure.in: Include stdlib.h and string.h unconditionally.
2010-10-01 06:56:33 -07:00
Dan Nicolaescu
0781e7abcf
* src/callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2010-10-01 06:06:44 -07:00
Dan Nicolaescu
9bf58201c2
Small process.c cleanups.
...
* src/process.c: Move #include <pty.h> earlier.
(SIGCHLD): Remove conditional definition, syssignal.h defines it.
(pty_name): Move definition later.
2010-10-01 06:04:07 -07:00
Dan Nicolaescu
088dcc3e8c
Use intern_c_string instead of intern.
...
* src/nsselect.m (syms_of_nsselect):
* src/nsmenu.m (syms_of_nsmenu):
* src/nsfns.m (syms_of_nsfns):
* src/msdos.c (syms_of_msdos):
* src/image.c (syms_of_image):
* src/charset.c (syms_of_charset): Use intern_c_string instead of intern.
2010-10-01 05:25:21 -07:00
Dan Nicolaescu
321401d15f
* src/point.h: Remove, unused.
2010-10-01 05:19:52 -07:00
Eli Zaretskii
73077a9af5
Support TAGS targets in the w32 build.
...
nt/makefile.w32-in (frc, TAGS, TAGS-gmake, TAGS-nmake): New targets.
emacs-src.tags: New file.
src/makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
(TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
(nt-TAGS-gmake, nt-TAGS-nmake): New targets.
lisp/makefile.w32-in (DEST, TAGS, TAGS-LISP, TAGS-nmake)
(TAGS-LISP-nmake, TAGS-gmake, TAGS-LISP-gmake, TAGS-SH)
(TAGS-LISP-SH, TAGS-CMD, TAGS-LISP-CMD): New targets.
lib-src/makefile.w32-in (tags, TAGS): New targets.
2010-10-01 13:45:16 +02:00
Dan Nicolaescu
55e572ef89
* src/xml.c (parse_string): Use const.
2010-09-30 16:26:40 -07:00
Lars Magne Ingebrigtsen
d4b6d95d51
(Fbacktrace): Don't overwrite print-level on exit.
...
Also only override Vprint_level if it isn't already bound, and
increase the level to 8 to produce more useful backtraces for bug
reports.
2010-09-30 16:28:22 +02:00
Kenichi Handa
fcaf88782b
Complement a coding system for encoding arguments and input to a process.
2010-09-30 13:28:34 +09:00
Dan Nicolaescu
e4b6db1206
* src/Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2010-09-29 18:20:51 -07:00
Juanma Barranquero
1becef93b4
src/w32console.c (vga_stdcolor_name): Remove unused function.
2010-09-30 02:09:04 +02:00