]> git.eshelyaron.com Git - emacs.git/log
emacs.git
14 years agoHandle lines truncated on right.
Eli Zaretskii [Sat, 22 May 2010 14:13:04 +0000 (17:13 +0300)]
Handle lines truncated on right.

 xdisp.c (find_row_edges): Handle the truncated_on_right_p rows.

14 years agoTest and debug find_row_edges on TTY display.
Eli Zaretskii [Sat, 22 May 2010 12:38:26 +0000 (15:38 +0300)]
Test and debug find_row_edges on TTY display.

 xdisp.c (find_row_edges): Handle the case of characters
 delivered from display vector.  Fix tests related to it->method.

14 years agoCompleted initial debugging and testing of reimplemented cursor motion.
Eli Zaretskii [Wed, 19 May 2010 20:24:21 +0000 (23:24 +0300)]
Completed initial debugging and testing of reimplemented cursor motion.

 .gdbinit (prowlims): Display row->minpos and row->maxpos.
 Display truncated_on_left_p and truncated_on_right_p flags.
 Formatting fixes.
 (pmtxrows): Display the ordinal number of each row.  Don't display
 rows beyond the last one.
 xdisp.c (RECORD_MAX_MIN_POS): New macro.
 (display_line): Use it to record the minimum and maximum buffer
 positions for glyphs in the row being assembled.  If word wrap is
 in effect, restore minimum and maximum positions seen up to the
 wrap point, when iterator returns to it.
 (find_row_edges): Fix logic; eol_pos should be tested before the
 rest.
 (try_window_reusing_current_matrix): Give up if in bidi-reordered
 row and cursor not already at point.  Restore original pre-bidi
 code for unidirectional buffers.
 bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
 reallocation of the cache.  (Bug#6210)
 (bidi_cache_iterator_state): Don't zero out new_paragraph (it is
 not copied by bidi_copy_it).

14 years agoInitial reimplementation of calculating line edge positions in bidi lines.
Eli Zaretskii [Tue, 18 May 2010 15:22:15 +0000 (18:22 +0300)]
Initial reimplementation of calculating line edge positions in bidi lines.

 dispextern.h (struct glyph_row): New members minpos and maxpos.
 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
 and maxpos members instead of start.pos and end.pos, respectively.
 xdisp.c (display_line): Compare IT_CHARPOS with the position in
 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
 (try_window_reusing_current_matrix, try_window_id): Use
 ROW->minpos rather than ROW->start.pos.
 (init_from_display_pos, init_iterator): Use EMACS_INT for
 character and byte positions.
 (find_row_edges): Renamed from find_row_end.  Accept additional
 arguments for minimum and maximum buffer positions seen by
 display_line for this row.  Don't use iterator to find the
 position following the maximum one; instead, increment the
 position found by display_line directly.
 (display_line): Record minimum and maximum buffer positions for
 glyphs in this row.  Record the position of the newline that
 terminates the line.
 dispnew.c (increment_row_positions, check_matrix_invariants):
 Increment and check row->start.pos and row->end.pos, in addition
 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.

14 years agoFix ChangeLog typos.
Juanma Barranquero [Tue, 18 May 2010 08:33:29 +0000 (10:33 +0200)]
Fix ChangeLog typos.

14 years ago* charset.c (load_charset_map_from_file): Don't call close after fclose.
Juanma Barranquero [Tue, 18 May 2010 08:08:33 +0000 (10:08 +0200)]
* charset.c (load_charset_map_from_file): Don't call close after fclose.

14 years agomsdos/sed1x.inp: Add copyright notice.
Eli Zaretskii [Tue, 18 May 2010 07:57:27 +0000 (10:57 +0300)]
msdos/sed1x.inp: Add copyright notice.

14 years ago* progmodes/prolog.el (smie-indent-basic): Declare for byte-compiler.
Juanma Barranquero [Tue, 18 May 2010 07:52:10 +0000 (09:52 +0200)]
* progmodes/prolog.el (smie-indent-basic): Declare for byte-compiler.

14 years ago* emacs-lisp/smie.el: Fix typos in docstrings.
Juanma Barranquero [Tue, 18 May 2010 07:44:07 +0000 (09:44 +0200)]
* emacs-lisp/smie.el: Fix typos in docstrings.

14 years agoAdvise against unnecessary merges from trunk to feature branches.
Eli Zaretskii [Tue, 18 May 2010 07:38:35 +0000 (10:38 +0300)]
Advise against unnecessary merges from trunk to feature branches.

14 years ago* s/gnu-linux.h: Combine two conditionals.
Glenn Morris [Tue, 18 May 2010 03:03:14 +0000 (20:03 -0700)]
* s/gnu-linux.h: Combine two conditionals.

14 years ago* src/[ms]/template.h: Comments.
Glenn Morris [Tue, 18 May 2010 02:59:15 +0000 (19:59 -0700)]
* src/[ms]/template.h: Comments.

14 years agoRegenerate configure.
Glenn Morris [Tue, 18 May 2010 02:54:25 +0000 (19:54 -0700)]
Regenerate configure.

14 years ago* admin/notes/bzr: New file.
Glenn Morris [Tue, 18 May 2010 02:52:21 +0000 (19:52 -0700)]
* admin/notes/bzr: New file.
More mailing-list wisdom.  Probably should be merged with commits.

14 years agoSince Cygwin does not set SYSTEM_MALLOC, $(VMLIMIT_OBJ) == vm-limit.o.
Glenn Morris [Tue, 18 May 2010 02:49:28 +0000 (19:49 -0700)]
Since Cygwin does not set SYSTEM_MALLOC, $(VMLIMIT_OBJ) == vm-limit.o.

* configure.in (POST_ALLOC_OBJ) [cygwin]: Omit vm-limit.o.
(POST_ALLOC_OBJ) [!cygwin]: Set to empty.

* src/Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
$(POST_ALLOC_OBJ).

14 years agoSet rallocobj with configure, not cpp.
Glenn Morris [Tue, 18 May 2010 02:44:07 +0000 (19:44 -0700)]
Set rallocobj with configure, not cpp.

* configure.in (REL_ALLOC): Unset on gnu, gnu-linux if DOUG_LEA_MALLOC.
(RALLOC_OBJ): New output variable.
* config.bat (RALLOC_OBJ): Edit to empty if sys_malloc.

* src/Makefile.in (RALLOC_OBJ): New, set by configure.
(rallocobj): Replace with the previous variable.
(otherobj): Use $RALLOC_OBJ.

* src/s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
* src/s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.

* msdos/sed1v2.inp (RALLOC_OBJ): Edit to ralloc.o.

14 years agoDefine some malloc objects with configure, not cpp.
Glenn Morris [Tue, 18 May 2010 02:30:13 +0000 (19:30 -0700)]
Define some malloc objects with configure, not cpp.

* configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables.
* config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc.

* src/Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
(gmallocobj, vmlimitobj): Replace with previous two variables.
(otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.

* msdos/sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o.
(VMLIMIT_OBJ): Edit to vm-limit.o.

14 years ago* Makefile.in (${lispsource}loaddefs.el): Update loaddefs.el after a pull.
Stefan Monnier [Mon, 17 May 2010 21:02:06 +0000 (17:02 -0400)]
* Makefile.in (${lispsource}loaddefs.el): Update loaddefs.el after a pull.
* Makefile.in (src): Provide the name of the VCS file that witnesses a pull.
($(srcdir)/src/config.in): Handle accidental removal of src/config.in.

14 years agoProvide a simple generic indentation engine and use it for Prolog.
Stefan Monnier [Mon, 17 May 2010 19:27:26 +0000 (15:27 -0400)]
Provide a simple generic indentation engine and use it for Prolog.
* emacs-lisp/smie.el: New file.
* progmodes/prolog.el (prolog-smie-op-levels)
(prolog-smie-indent-rules): New var.
(prolog-mode-variables): Use them to configure SMIE.
(prolog-indent-line, prolog-indent-level): Remove.

14 years agoCombine the two stamp-oldxmenu cases.
Glenn Morris [Mon, 17 May 2010 05:15:03 +0000 (22:15 -0700)]
Combine the two stamp-oldxmenu cases.

* configure.in (OLDXMENU_DEPS): New output variable.
* configure: Regenerate.

* src/Makefile.in (OLDXMENU_DEPS): New, set by configure.
(stamp-oldxmenu): Use $OLDXMENU_DEPS.

* msdos/sed1v2.inp (OLDXMENU_DEPS): Edit to empty.
* msdos/sed1x.inp (OLDXMENU_DEPS): Edit to ${OLDXMENU} ../src/${OLDXMENU}.

14 years agocalc-vec.el (math-vector-avg): Put the vector elements in order
Jay Belanger [Mon, 17 May 2010 04:16:29 +0000 (23:16 -0500)]
calc-vec.el (math-vector-avg):  Put the vector elements in order
before computing the averages.

14 years ago* src/Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
Glenn Morris [Mon, 17 May 2010 00:01:22 +0000 (17:01 -0700)]
* src/Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.

14 years ago* src/Makefile.in (clean): Get rid of HAVE_NS conditional.
Glenn Morris [Sun, 16 May 2010 23:46:44 +0000 (16:46 -0700)]
* src/Makefile.in (clean): Get rid of HAVE_NS conditional.

14 years ago* configure.in (ns_appbindir, ns_appresdir): Set using $ns_appdir.
Glenn Morris [Sun, 16 May 2010 23:38:13 +0000 (16:38 -0700)]
* configure.in (ns_appbindir, ns_appresdir): Set using $ns_appdir.
* configure: Regenerate.

14 years agoTweak ns_app*dir values set by configure.
Glenn Morris [Sun, 16 May 2010 23:31:05 +0000 (16:31 -0700)]
Tweak ns_app*dir values set by configure.

* configure.in (ns_appdir, ns_appbindir): Add trailing "/" to value.
* Makefile.in (install-arch-dep): Update for above change.

* src/Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
trailing "/".

14 years agoRemove one variable from Makefile.in.
Glenn Morris [Sun, 16 May 2010 23:21:06 +0000 (16:21 -0700)]
Remove one variable from Makefile.in.

* Makefile.in (ns_appdir): Remove.
(install-arch-dep): Test $ns_appresdir instead of $ns_appdir.

14 years agoSimplify temacs build rule.
Glenn Morris [Sun, 16 May 2010 23:01:56 +0000 (16:01 -0700)]
Simplify temacs build rule.

* configure.in (TEMACS_LDFLAGS2): New output variable.
* configure: Regenerate.

* msdos/sed1v2.inp (TEMACS_LDFLAGS2): Edit to $(LDFLAGS).

* src/Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
(temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.

14 years agoSimplify temacs build rule.
Glenn Morris [Sun, 16 May 2010 17:58:27 +0000 (10:58 -0700)]
Simplify temacs build rule.

* configure.in (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New output variable.
(START_FILES): Set to empty if NS_IMPL_GNUSTEP.
(GNUSTEP_SYSTEM_HEADERS, GNUSTEP_SYSTEM_LIBRARIES): Do not output,
nothing uses.

* configure: Regenerate.

* src/Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
(NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
(LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
(temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
Make most of the NS_IMPL_GNUSTEP case the same as the default case.

* msdos/sed1v2.inp (GNUSTEP_SYSTEM_LIBRARIES): Remove.
(NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): Edit to empty.

14 years agoRemove unused Makefile variables STARTFLAGS.
Glenn Morris [Sun, 16 May 2010 06:40:19 +0000 (23:40 -0700)]
Remove unused Makefile variables STARTFLAGS.
* src/Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
Remove ${STARTFLAGS}, nothing ever sets it.

14 years ago* configure.in: Remove references to usg5-4 and bsd-common, $opsys
Dan Nicolaescu [Sun, 16 May 2010 05:58:55 +0000 (22:58 -0700)]
* configure.in: Remove references to usg5-4 and bsd-common, $opsys
does not use them.
(X11R5_INHIBIT_I18N): Remove, unused.

14 years ago* m/ia64.h (UNEXEC): Remove reference to CANNOT_EXEC, not used anymore.
Dan Nicolaescu [Sun, 16 May 2010 05:40:10 +0000 (22:40 -0700)]
* m/ia64.h (UNEXEC): Remove reference to CANNOT_EXEC, not used anymore.

14 years agoRemove reference to CANNOT_EXEC, not used anymore.
Dan Nicolaescu [Sun, 16 May 2010 05:34:48 +0000 (22:34 -0700)]
Remove reference to CANNOT_EXEC, not used anymore.

14 years agocalc-vec.el (calc-histogram):
Jay Belanger [Sun, 16 May 2010 04:43:09 +0000 (23:43 -0500)]
calc-vec.el (calc-histogram):
(calcFunc-histogram):  Allow vectors as inputs.
(math-vector-avg): New function.

calc.texi (Manipulating Vectors): Mention that vectors can be used to
determine bins for `calc-histogram'.

14 years agocalc-ext.el (math-group-float): Have the number of digits being
Jay Belanger [Sun, 16 May 2010 02:18:52 +0000 (21:18 -0500)]
calc-ext.el (math-group-float):  Have the number of digits being
grouped depend on the radix (Bug#6189).

14 years ago* src/Makefile.in (LIBX_BASE): Always define.
Glenn Morris [Sun, 16 May 2010 00:30:14 +0000 (17:30 -0700)]
* src/Makefile.in (LIBX_BASE): Always define.

14 years ago* src/Makefile.in (LIBX_OTHER): Move out of cpp section.
Glenn Morris [Sun, 16 May 2010 00:21:58 +0000 (17:21 -0700)]
* src/Makefile.in (LIBX_OTHER): Move out of cpp section.

14 years ago* src/Makefile.in (LIBXT): Always define.
Glenn Morris [Sun, 16 May 2010 00:02:13 +0000 (17:02 -0700)]
* src/Makefile.in (LIBXT): Always define.

14 years agoRegenerate configure, src/config.in.
Glenn Morris [Sat, 15 May 2010 22:36:29 +0000 (15:36 -0700)]
Regenerate configure, src/config.in.

14 years agoAlways define LIBXMENU in src/Makefile.in.
Glenn Morris [Sat, 15 May 2010 22:33:24 +0000 (15:33 -0700)]
Always define LIBXMENU in src/Makefile.in.

* configure.in (LIBXMENU): Set to empty if !HAVE_X_WINDOWS.

* src/Makefile.in (LIBXMENU): Always define.

* msdos/sed1v2.inp (LIBXMENU): Edit to empty.
* msdos/sed1x.inp (LIBXMENU): Expect empty initial value.

14 years agosrc/Makefile.in (OLDXMENU): Move out of cpp section.
Glenn Morris [Sat, 15 May 2010 22:15:49 +0000 (15:15 -0700)]
src/Makefile.in (OLDXMENU): Move out of cpp section.

14 years agoAlways define OLDXMENU in src/Makefile.in.
Glenn Morris [Sat, 15 May 2010 22:01:22 +0000 (15:01 -0700)]
Always define OLDXMENU in src/Makefile.in.

* src/Makefile.in (OLDXMENU): Always define.

* msdos/sed1v2.inp (OLDXMENU): Edit to empty.
* msdos/sed1x.inp (OLDXMENU): Expect empty initial value.

14 years agomsdos/ChangeLog missing from previous commit.
Glenn Morris [Sat, 15 May 2010 21:51:12 +0000 (14:51 -0700)]
msdos/ChangeLog missing from previous commit.

14 years agoAlways define LIBX_OTHER in src/Makefile.in.
Glenn Morris [Sat, 15 May 2010 21:47:58 +0000 (14:47 -0700)]
Always define LIBX_OTHER in src/Makefile.in.

* src/Makefile.in (LIBX_OTHER): Always define.

* msdos/sed1v2.inp (LIBX_OTHER): Edit to empty.
* msdos/sed1x.inp (LIBX_OTHER): Expect empty initial value.

14 years agoRegenerate configure.
Glenn Morris [Sat, 15 May 2010 21:34:03 +0000 (14:34 -0700)]
Regenerate configure.

14 years agoAlways define FONT_OBJ; to empty in the non-X case.
Glenn Morris [Sat, 15 May 2010 21:31:19 +0000 (14:31 -0700)]
Always define FONT_OBJ; to empty in the non-X case.

* configure.in (FONT_OBJ): Set to empty if !HAVE_X_WINDOWS.

* src/Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
(obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.

* msdos/sed1v2.inp (FONT_OBJ): Edit to empty for non-X case.
* msdos/sed1x.inp (FONT_OBJ): Edit to xfont.o for X case.

14 years ago* lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (bug#5916)
Ken Raeburn [Sat, 15 May 2010 21:19:05 +0000 (17:19 -0400)]
* lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (bug#5916)
(LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.

14 years ago* emacs.c (main): Initialize initial-environment and process-environment
Ken Raeburn [Sat, 15 May 2010 21:16:20 +0000 (17:16 -0400)]
* emacs.c (main): Initialize initial-environment and process-environment
before generating from env, not after.

14 years agoUpdate scripts and text to refer to version number string in emacs.c
Ken Raeburn [Sat, 15 May 2010 21:12:44 +0000 (17:12 -0400)]
Update scripts and text to refer to version number string in emacs.c
instead of version.el.

14 years agoHandle --version reasonably in CANNOT_DUMP configuration.
Ken Raeburn [Sat, 15 May 2010 21:11:37 +0000 (17:11 -0400)]
Handle --version reasonably in CANNOT_DUMP configuration.

* src/emacs.c (emacs_version, emacs_copyright): New string
variables.
(Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
(syms_of_emacs): Defvar them, and initialize them from the C
string variables.
(main): If initialization hasn't been done, print initial version
info from the C strings, instead of starting an interactive session.
* lisp/version.el (emacs-copyright, emacs-version): Don't define
here.
* configure.in: Look for version string in its new place.

14 years agoAvoid crashes when stepping with right-arrow through "^L^L".
Eli Zaretskii [Sat, 15 May 2010 14:43:55 +0000 (17:43 +0300)]
Avoid crashes when stepping with right-arrow through "^L^L".

 bidi.c (bidi_paragraph_init): Remove redundant assertion that we are at
 the beginning of a line after call to bidi_find_paragraph_start.

14 years agoPrevent an error signal when clicking on Options->Mule->Describe Lang Env.
Eli Zaretskii [Sat, 15 May 2010 14:06:58 +0000 (17:06 +0300)]
Prevent an error signal when clicking on Options->Mule->Describe Lang Env.

 international/mule-cmds.el (mule-menu-keymap): Fix definition of
 "Describe Language Environment" menu item.

14 years agolisp/language/hebrew.el ("Hebrew", "Windows-1255"): Doc fix.
Eli Zaretskii [Sat, 15 May 2010 13:50:16 +0000 (16:50 +0300)]
lisp/language/hebrew.el ("Hebrew", "Windows-1255"): Doc fix.

14 years agoImplement bidi-sensitive movement with arrow keys.
Eli Zaretskii [Sat, 15 May 2010 13:23:48 +0000 (16:23 +0300)]
Implement bidi-sensitive movement with arrow keys.

 src/bidi.c (bidi_paragraph_init): Don't leave alone garbage values
 of bidi_it->paragraph_dir.  Call bidi_initialize if needed.
 src/xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
 (syms_of_xdisp): Defsubr it.
 src/cmds.c (Fforward_char, Fbackward_char): Doc fix.
 src/subr.el (right-arrow-command, left-arrow-command): New functions.
 src/bindings.el (global-map): Bind them to right and left arrow keys.
 etc/NEWS: Mention current-bidi-paragraph-direction

14 years agoDon't override standard definition of convert-standard-filename.
Eli Zaretskii [Sat, 15 May 2010 08:31:40 +0000 (11:31 +0300)]
Don't override standard definition of convert-standard-filename.
Add obsolete aliases for dos-fns.el functions.

 files.el (convert-standard-filename): Call
 w32-convert-standard-filename and dos-convert-standard-filename on
 the corresponding systems.
 w32-fns.el (w32-convert-standard-filename): Rename from
 convert-standard-filename.  Doc fix.
 dos-fns.el (dos-convert-standard-filename): Doc fix.
 (convert-standard-filename): Don't defalias.
 (register-name-alist, make-register, register-value)
 (set-register-value, intdos): Obsolete aliases for the
 corresponding dos-* functions and variables.
 (dos-intdos): Add a doc string.

14 years agoconfig.bat: Remove support for DJGPP v1.x.
Eli Zaretskii [Sat, 15 May 2010 07:51:52 +0000 (10:51 +0300)]
config.bat: Remove support for DJGPP v1.x.

14 years agoFix "config msdos" step.
Eli Zaretskii [Sat, 15 May 2010 07:19:59 +0000 (10:19 +0300)]
Fix "config msdos" step.

 src/Makefile.in: Fix MSDOS-related comments.
 msdos/sed3v2.inp (INSTALLABLES): Edit out extra ${EXEEXT} after "emacsclient".
 (emacsserver, timer, wakeup): Remove edit-out commands.
 msdos/sed1v2.inp (MSDOS_OBJ): Add w16select.o.
 (TERMCAP_OBJ): Add termcap.o.

14 years agoFix a typo in msdos/ChangeLog.
Eli Zaretskii [Sat, 15 May 2010 06:25:23 +0000 (09:25 +0300)]
Fix a typo in msdos/ChangeLog.

14 years agocalc-aent.el (math-read-token, math-find-user-tokens):
Jay Belanger [Sat, 15 May 2010 04:50:25 +0000 (23:50 -0500)]
calc-aent.el (math-read-token, math-find-user-tokens):
calc-lang.el (math-read-big-rec, math-lang-read-symbol)
(math-compose-tex-func):
calccomp.el (math-compose-expr):
calc-ext.el (math-format-flat-expr-fancy):
calc-store.el (calc-read-var-name):
calc-units.el (calc-explain-units-rec): Allow Greek letters.

calc.el (var-π, var-φ, var-γ): New variables.

calc-aent.el (math-read-replacement-list):  Add "micro" symbol.

calc-units.el (math-unit-prefixes): Add mu for micro.
(math-standard-units):  Add units.

14 years ago* progmodes/asm-mode.el (asm-mode): Use define-derived-mode.
Stefan Monnier [Sat, 15 May 2010 04:10:22 +0000 (00:10 -0400)]
* progmodes/asm-mode.el (asm-mode): Use define-derived-mode.

14 years ago* progmodes/prolog.el (prolog-mode): Use define-derived-mode.
Stefan Monnier [Sat, 15 May 2010 04:08:03 +0000 (00:08 -0400)]
* progmodes/prolog.el (prolog-mode): Use define-derived-mode.

14 years ago* pcomplete.el (pcomplete-completions-at-point): New function,
Stefan Monnier [Sat, 15 May 2010 03:50:26 +0000 (23:50 -0400)]
* pcomplete.el (pcomplete-completions-at-point): New function,
extracted from pcomplete-std-complete.
(pcomplete-std-complete): Use it.

14 years ago* lwlib/Makefile.in (mostlyclean): Remove references to non-existent files.
Glenn Morris [Sat, 15 May 2010 02:02:28 +0000 (19:02 -0700)]
* lwlib/Makefile.in (mostlyclean): Remove references to non-existent files.

14 years agoRegenerate configure.
Glenn Morris [Sat, 15 May 2010 01:58:36 +0000 (18:58 -0700)]
Regenerate configure.

14 years agoChoose dependency of oldxmenu using configure.
Glenn Morris [Sat, 15 May 2010 01:55:24 +0000 (18:55 -0700)]
Choose dependency of oldxmenu using configure.

* configure.in (OLDXMENU_TARGET): New output variable.

* src/Makefile.in (OLDXMENU_TARGET): New, set by configure.
(really-lwlib, really-oldXMenu): Always define.
($OLDXMENU): Depend on $OLDXMENU_TARGET.

* msdos/sed1v2.inp (OLDXMENU_TARGET): Edit to empty.
* msdos/sed1x.inp (OLDXMENU_TARGET): Edit to really-oldxmenu.

14 years ago* msdos/sed1v2.inp (LIBXT_OTHER): Exit to empty.
Glenn Morris [Sat, 15 May 2010 01:45:18 +0000 (18:45 -0700)]
* msdos/sed1v2.inp (LIBXT_OTHER): Exit to empty.

14 years ago* lisp/org/org-docview.el: Fix copyright years.
Glenn Morris [Sat, 15 May 2010 01:09:16 +0000 (18:09 -0700)]
* lisp/org/org-docview.el: Fix copyright years.

14 years ago* lib-src/Makefile.in: Break some long lines.
Glenn Morris [Sat, 15 May 2010 01:05:11 +0000 (18:05 -0700)]
* lib-src/Makefile.in: Break some long lines.

14 years agoIf HAVE_X11, also HAVE_X_WINDOWS and HAVE_MENUS.
Glenn Morris [Sat, 15 May 2010 00:54:24 +0000 (17:54 -0700)]
If HAVE_X11, also HAVE_X_WINDOWS and HAVE_MENUS.

* src/Makefile.in: Simplify cpp conditional.

* admin/CPP-DEFINES: Comment.

14 years agoMinor NS build fixes.
Glenn Morris [Sat, 15 May 2010 00:48:53 +0000 (17:48 -0700)]
Minor NS build fixes.

* Makefile.in (install-arch-dep): Update odd NS rule for Emacs version.

* src/Makefile.in (${ns_appdir}): Simplify using umask.

14 years agoRemove references to CVS directories etc in Makefiles.
Glenn Morris [Sat, 15 May 2010 00:42:22 +0000 (17:42 -0700)]
Remove references to CVS directories etc in Makefiles.

* Makefile.in (install-arch-indep): Remove references to RCS, CVS,
and other files that no longer exist.

* leim/Makefile.in (install): Remove references to CVS-related files.

* lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
Remove references to CVS, RCS and Old directories.

* src/Makefile.in (${ns_appdir}): Remove references to CVS-related files.

14 years agocalc-bin.el (math-format-twos-complement): Group digits when appropriate.
Jay Belanger [Fri, 14 May 2010 23:46:11 +0000 (18:46 -0500)]
calc-bin.el (math-format-twos-complement): Group digits when appropriate.

14 years ago* progmodes/sh-script.el (sh-mode-default-syntax-table): Remove.
Stefan Monnier [Fri, 14 May 2010 21:21:12 +0000 (17:21 -0400)]
* progmodes/sh-script.el (sh-mode-default-syntax-table): Remove.
(sh-mode-syntax-table): Give it a default value instead.
(sh-header-marker): Make buffer-local.
(sh-mode): Move make-local-variable to the corresponding setq.
(sh-add-completer): Avoid gratuitously let-binding a buffer-local var.
Use complete-with-action.

14 years ago* eval.c (specbind): Disallow let-binding frame-local vars.
Stefan Monnier [Fri, 14 May 2010 17:53:42 +0000 (13:53 -0400)]
* eval.c (specbind): Disallow let-binding frame-local vars.
Remove left-over duplicate test.  Add comment.

14 years ago* simple.el (prog-mode): New (abstract) major mode.
Stefan Monnier [Fri, 14 May 2010 16:41:01 +0000 (12:41 -0400)]
* simple.el (prog-mode): New (abstract) major mode.
* emacs-lisp/lisp-mode.el (emacs-lisp-mode, lisp-mode): Use it.
* progmodes/sh-script.el (sh-mode): Remove redundant var assignment.

14 years agoMake the cache of bidi iterator states dynamically allocated.
Eli Zaretskii [Fri, 14 May 2010 15:19:07 +0000 (18:19 +0300)]
Make the cache of bidi iterator states dynamically allocated.

 bidi.c (bidi_cache_shrink): New function.
 (bidi_init_it): Call it.
 (bidi_cache_iterator_state): Enlarge the cache if needed.

14 years agoRename bidi_get_next_char_visually to bidi_move_to_visually_next.
Eli Zaretskii [Fri, 14 May 2010 14:30:45 +0000 (17:30 +0300)]
Rename bidi_get_next_char_visually to bidi_move_to_visually_next.

 bidi.c (bidi_move_to_visually_next): Renamed from
 bidi_get_next_char_visually.  All callers changed.

14 years agoFix comments from 2010-05-14T04:14:23Z!handa@etlken.
Eli Zaretskii [Fri, 14 May 2010 13:44:12 +0000 (16:44 +0300)]
Fix comments from 2010-05-14T04:14:23Z!handa@etlken.

14 years ago* progmodes/sql.el: Fix typos in docstrings.
Juanma Barranquero [Fri, 14 May 2010 13:31:36 +0000 (15:31 +0200)]
* progmodes/sql.el: Fix typos in docstrings.

14 years agoFix spelling and remove merge marks due to 2010-05-14T04:14:23Z!handa@etlken.
Eli Zaretskii [Fri, 14 May 2010 09:02:50 +0000 (12:02 +0300)]
Fix spelling and remove merge marks due to 2010-05-14T04:14:23Z!handa@etlken.

14 years agoSynch with Gnus trunk.
Katsumi Yamaoka [Fri, 14 May 2010 07:48:21 +0000 (07:48 +0000)]
Synch with Gnus trunk.
(gnus-summary-save-article): Don't bother to re-fetch article unless
 decoding article to be saved.

14 years agomerge trunk
Kenichi Handa [Fri, 14 May 2010 07:29:06 +0000 (16:29 +0900)]
merge trunk

14 years agoNo harm in always defining some ns_ Makefile variables.
Glenn Morris [Fri, 14 May 2010 04:23:23 +0000 (21:23 -0700)]
No harm in always defining some ns_ Makefile variables.

* src/Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.

* msdos/sed1v2.inp (ns_appdir, ns_appbindir, ns_appsrc): Edit to empty.

14 years agomerge trunk
Kenichi Handa [Fri, 14 May 2010 04:15:58 +0000 (13:15 +0900)]
merge trunk

14 years agoFix bidi-composition interaction.
Kenichi Handa [Fri, 14 May 2010 04:14:23 +0000 (13:14 +0900)]
Fix bidi-composition interaction.

14 years agomerge trunk
Kenichi Handa [Fri, 14 May 2010 03:52:21 +0000 (12:52 +0900)]
merge trunk

14 years agofont.c (font_range): Return the range for the font found at first.
Kenichi Handa [Fri, 14 May 2010 03:47:38 +0000 (12:47 +0900)]
font.c (font_range): Return the range for the font found at first.

14 years agoMove some undefs from src/Makefile.in to configure.
Glenn Morris [Fri, 14 May 2010 03:36:40 +0000 (20:36 -0700)]
Move some undefs from src/Makefile.in to configure.

* configure.in (cpp_undefs): Add mktime, register, X11.

* src/Makefile.in (mktime, X11, register): Move undefs to configure.

* admin/CPP-DEFINES: Remove X11.

14 years ago* admin/CPP-DEFINES: Updates.
Glenn Morris [Fri, 14 May 2010 03:19:52 +0000 (20:19 -0700)]
* admin/CPP-DEFINES: Updates.

14 years agoRegenerate configure, src/config.in.
Glenn Morris [Fri, 14 May 2010 03:17:27 +0000 (20:17 -0700)]
Regenerate configure, src/config.in.

14 years agoReplace some msdos cpp.
Glenn Morris [Fri, 14 May 2010 03:13:39 +0000 (20:13 -0700)]
Replace some msdos cpp.

* src/Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
(MSDOS_X_OBJ): New variable.
(MSDOS_SUPPORT_REAL): New constant.
(MSDOS_SUPPORT): Set as a variable, not with cpp.
(obj): Use MSDOS_X_OBJ.
(lisp): Use MSDOS_SUPPORT as a variable.

* msdos/sed1v2.inp (MSDOS_OBJ): Edit to dosfns.o msdos.o.
(MSDOS_SUPPORT): Edit to $(MSDOS_SUPPORT_REAL).
* msdos/sed1x.inp (MSDOS_X_OBJ): Edit to w16select.o termcap.o.

14 years agoDefine MOUSE_, TOOLTIP_, WINDOW_SUPPORT with configure.
Glenn Morris [Fri, 14 May 2010 03:05:00 +0000 (20:05 -0700)]
Define MOUSE_, TOOLTIP_, WINDOW_SUPPORT with configure.

* configure.in (GPM_MOUSE_SUPPORT): Remove.
(MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): New output variables.
(HAVE_WINDOW_SYSTEM, HAVE_MOUSE): Move out of AC_BOTTOM.

* src/Makefile.in (REAL_MOUSE_SUPPORT): New constant.
(GPM_MOUSE_SUPPORT): Now it's a constant.
(MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure, not cpp.

* msdos/sed2x.inp (HAVE_WINDOW_SYSTEM): Define.
* msdos/sed1x.inp (TOOLTIP_SUPPORT): Edit to ${lispsource}tooltip.elc.
(WINDOW_SUPPORT): Edit to $(BASE_WINDOW_SUPPORT) $(X_WINDOW_SUPPORT).
* msdos/sed1v2.inp (MOUSE_SUPPORT): Edit to $(REAL_MOUSE_SUPPORT).
(TOOLTIP_SUPPORT, WINDOW_SUPPORT): Edit to empty.

14 years ago* msdos/sed1v2.inp (FONT_OBJ): Use the plain X version (no XFT, Freetype).
Glenn Morris [Fri, 14 May 2010 02:51:50 +0000 (19:51 -0700)]
* msdos/sed1v2.inp (FONT_OBJ): Use the plain X version (no XFT, Freetype).
Hopefully this is the right thing for msdos with X.

14 years agoMinor build simplification for NS.
Glenn Morris [Fri, 14 May 2010 02:46:09 +0000 (19:46 -0700)]
Minor build simplification for NS.

* configure.in (NS_IMPL_GNUSTEP_INC): New output variable.
(GNUSTEP_MAKEFILES): Do not output.

* src/Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.

* msdos/sed1v2.inp (@NS_IMPL_GNUSTEP_INC@): Edit to nil.

14 years ago* src/Makefile.in (ns_appresdir): Remove, unused.
Glenn Morris [Fri, 14 May 2010 02:36:46 +0000 (19:36 -0700)]
* src/Makefile.in (ns_appresdir): Remove, unused.

14 years ago* src/Makefile.in (SHELL): Move outside cpp section.
Glenn Morris [Fri, 14 May 2010 02:32:29 +0000 (19:32 -0700)]
* src/Makefile.in (SHELL): Move outside cpp section.
Some comment formatting.

14 years ago* s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
Glenn Morris [Fri, 14 May 2010 02:28:28 +0000 (19:28 -0700)]
* s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).

14 years agocalc.texi: Remove "\turnoffactive" commands throughout.
Jay Belanger [Thu, 13 May 2010 22:33:11 +0000 (17:33 -0500)]
calc.texi:  Remove "\turnoffactive" commands throughout.

14 years agoAdd TeX open-block and close-block keybindings to SGML, and vice versa.
Chong Yidong [Thu, 13 May 2010 21:52:20 +0000 (17:52 -0400)]
Add TeX open-block and close-block keybindings to SGML, and vice versa.

* textmodes/tex-mode.el (tex-mode-map): Bind C-c C-t to
latex-open-block and C-c / to latex-close-block.

* textmodes/sgml-mode.el (sgml-mode-map): Bind C-c C-o to sgml-tag
and C-c C-e to sgml-close-tag.

14 years ago* net/tramp.el (with-progress-reporter): Create reporter object
Michael Albinus [Thu, 13 May 2010 20:45:58 +0000 (22:45 +0200)]
* net/tramp.el (with-progress-reporter): Create reporter object
only when the message would be displayed.  Handled nested calls.
(tramp-handle-load, tramp-handle-file-local-copy)
(tramp-handle-insert-file-contents, tramp-handle-write-region)
(tramp-maybe-send-script, tramp-find-shell): Use
`with-progress-reporter'.
(tramp-handle-dired-compress-file, tramp-maybe-open-connection):
Fix message text.

* net/tramp-smb.el (tramp-smb-handle-copy-file)
(tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
(tramp-smb-handle-write-region, tramp-smb-maybe-open-connection):
Use `with-progress-reporter'.

14 years agolwlib-Xaw.c (make_dialog): Remove extra arg to XtVaGetSubresources.
Jan D [Thu, 13 May 2010 17:48:56 +0000 (19:48 +0200)]
lwlib-Xaw.c (make_dialog): Remove extra arg to XtVaGetSubresources.