bpt/emacs.git
14 years agoReplace Lisp calls to delete-backward-char by delete-char.
Stefan Monnier [Tue, 25 May 2010 02:11:08 +0000 (22:11 -0400)]
Replace Lisp calls to delete-backward-char by delete-char.
* bs.el, expand.el, ido.el, image-dired.el, lpr.el, pcomplete.el,
skeleton.el, term.el, time.el, wid-edit.el, woman.el,
calc/calc-graph.el, calc/calc-help.el, calc/calc-incom.el,
calc/calc.el, emacs-cl-extra.el, emacs-cl-loaddefs.el,
emulation/cua-rect.el, emulation/viper-ex.el, eshell/esh-test.el,
eshell/eshell.el, gnus/gnus-uu.el, gnus/nndoc.el, gnus/nnrss.el,
gnus/rfc2047.el, gnus/utf7.el, international/utf-7.el,
language/ethio-util.el, mh-e/mh-alias.el, mh-e/mh-search.el,
net/imap.el, net/rcirc.el, obsolete/complete.el, play/decipher.el,
progmodes/ada-mode.el, progmodes/cc-awk.el, progmodes/dcl-mode.el,
progmodes/ps-mode.el, progmodes/verilog-mode.el,
progmodes/vhdl-mode.el, textmodes/bibtex.el, textmodes/fill.el,
textmodes/reftex-auc.el, textmodes/rst.el, textmodes/sgml-mode.el,
textmodes/table.el, textmodes/texinfmt.el: Replace Lisp calls to
delete-backward-char by calls to delete-char.

14 years agoAdd Hebrew shaper.
Kenichi Handa [Tue, 25 May 2010 01:25:08 +0000 (10:25 +0900)]
Add Hebrew shaper.

14 years agomerge trunk
Kenichi Handa [Tue, 25 May 2010 01:03:44 +0000 (10:03 +0900)]
merge trunk

14 years agoMerge from emacs-23
Stefan Monnier [Tue, 25 May 2010 00:54:13 +0000 (20:54 -0400)]
Merge from emacs-23

14 years agomerge trunk
Kenichi Handa [Tue, 25 May 2010 00:35:50 +0000 (09:35 +0900)]
merge trunk

14 years agoFix bidi-composition interaction in backward scanning..
Kenichi Handa [Tue, 25 May 2010 00:32:24 +0000 (09:32 +0900)]
Fix bidi-composition interaction in backward scanning..

14 years ago* emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
Stefan Monnier [Mon, 24 May 2010 21:01:10 +0000 (17:01 -0400)]
* emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
Add delete-backward-char.

14 years agoMention multi-planes text-properties
Stefan Monnier [Mon, 24 May 2010 20:48:46 +0000 (16:48 -0400)]
Mention multi-planes text-properties

14 years ago* process.c (Fmake_network_process): Set :host to nil if it's not used.
Stefan Monnier [Mon, 24 May 2010 20:46:41 +0000 (16:46 -0400)]
* process.c (Fmake_network_process): Set :host to nil if it's not used.
Suggested by Masatake YAMATO <yamato@redhat.com>.

14 years agoAdapt make-dist to new version location.
Romain Francoise [Mon, 24 May 2010 11:35:41 +0000 (13:35 +0200)]
Adapt make-dist to new version location.

* make-dist: Look for version in src/emacs.c.
Use lisp/subr.el rather than lisp/version.el for location check.

14 years ago* dispextern.h: Fix typo in previous change.
Juanma Barranquero [Sun, 23 May 2010 19:02:25 +0000 (21:02 +0200)]
* dispextern.h: Fix typo in previous change.

14 years agodispextern.h (init_iterator): Sync prototype with changed definition.
Eli Zaretskii [Sun, 23 May 2010 16:57:15 +0000 (19:57 +0300)]
dispextern.h (init_iterator): Sync prototype with changed definition.

14 years agoRedesign bidi-aware edge positions of glyph rows, fix bug #6036.
Eli Zaretskii [Sat, 22 May 2010 19:32:21 +0000 (22:32 +0300)]
Redesign bidi-aware edge positions of glyph rows, fix bug #6036.

 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.  Fix logic; eol_pos
 should be tested before the rest.  Handle the case of characters
 delivered from display vector (bug#6036).  Fix tests related to
 it->method.  Handle the truncated_on_right_p rows.
 (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.  Record the
 position of the newline that terminates the line.  If word wrap is
 in effect, restore minimum and maximum positions seen up to the
 wrap point, when iterator returns to it.
 (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.
 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.
 .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.
 bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
 it is not copied by bidi_copy_it.

14 years agoFix bug #6237.
Eli Zaretskii [Sat, 22 May 2010 19:09:51 +0000 (22:09 +0300)]
Fix bug #6237.

 w32.c (sys_write): Break writes into chunks smaller than 32MB.

14 years ago* admin/notes/bugtracker: More about recovering from moderation mistakes.
Glenn Morris [Sat, 22 May 2010 17:39:35 +0000 (10:39 -0700)]
* admin/notes/bugtracker: More about recovering from moderation mistakes.

14 years agoAdd ChangeLog change missing in last checkin.
Chong Yidong [Sat, 22 May 2010 17:16:35 +0000 (13:16 -0400)]
Add ChangeLog change missing in last checkin.

14 years agoRename image-refresh to image-flush.
Chong Yidong [Sat, 22 May 2010 16:48:01 +0000 (12:48 -0400)]
Rename image-refresh to image-flush.

* image.c (Fimage_flush): Rename from image-refresh.

* image.el (image-refresh): Define as an alias for image-flush.

* image-mode.el (image-toggle-display-image): Caller changed.

* display.texi (Image Cache): Update documentation about image
caching.

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 agoRemove cirsular dependency when using separate build dir (Bug #6246).
Jan Djärv [Sat, 22 May 2010 11:59:09 +0000 (13:59 +0200)]
Remove cirsular dependency when using separate build dir (Bug #6246).

 * Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPS): New (Bug #6246).
 (all): Depend onSTAMP_INST_SCRIPTS, STAMP_SCRIPS (Bug #6246).
 (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
 New rules (Bug #6246).
 (clean): Remove stamp-* (Bug #6246).

14 years agoRegenerate configure
Andreas Schwab [Sat, 22 May 2010 11:26:01 +0000 (13:26 +0200)]
Regenerate configure

14 years ago* progmodes/grep.el (grep-read-files): Fix multi-pattern aliases.
Juri Linkov [Fri, 21 May 2010 20:43:04 +0000 (23:43 +0300)]
* progmodes/grep.el (grep-read-files): Fix multi-pattern aliases.
Remove "all" from grep-files-aliases.  Split grep-files-aliases by
whitespace, call wildcard-to-regexp on substrings and concat them
with "\\|".  (Bug#6114)

14 years agoFix a bug which happens when doing (c-parse-state) in a CPP construct:
Alan Mackenzie [Fri, 21 May 2010 19:51:48 +0000 (19:51 +0000)]
Fix a bug which happens when doing (c-parse-state) in a CPP construct:
Exclude any "new" CPP construct from taking part in the scanning.

14 years agoImprove image cache clearing logic (Bug#6230).
Chong Yidong [Fri, 21 May 2010 17:29:27 +0000 (13:29 -0400)]
Improve image cache clearing logic (Bug#6230).

* xdisp.c (redisplay_internal): Clear caches even if redisplaying
just one window.

* image.c (Vimage_cache_eviction_delay): Decrease to 300.
(clear_image_cache): If the number of cached images is unusually
large, decrease the cache eviction delay.

14 years ago* configure.in (MKDEPDIR): Parallel build tweak.
Glenn Morris [Fri, 21 May 2010 16:31:45 +0000 (09:31 -0700)]
* configure.in (MKDEPDIR): Parallel build tweak.
* src/Makefile.in: Comment.

14 years ago* net/tramp.el (tramp-do-copy-or-rename-file)
Michael Albinus [Fri, 21 May 2010 14:16:42 +0000 (16:16 +0200)]
* net/tramp.el (tramp-do-copy-or-rename-file)
(tramp-handle-file-local-copy, tramp-maybe-open-connection): Tune
`with-progress-reporter' messages.
(tramp-handle-vc-registered):
* net/tramp-fish.el (tramp-fish-handle-file-local-copy)
(tramp-fish-handle-insert-file-contents)
(tramp-fish-maybe-open-connection):
* net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* net/tramp-imap.el (tramp-imap-do-copy-or-rename-file)
(tramp-imap-handle-insert-file-contents)
(tramp-imap-handle-file-local-copy): Use `with-progress-reporter'.

14 years agoBackport from trunk: close bug#6190.
enami tsugutomo [Fri, 21 May 2010 04:06:34 +0000 (21:06 -0700)]
Backport from trunk: close bug#6190.
* src/s/netbsd.h: If terminfo is found, use it in preference to termcap.

14 years ago* add-log.el: Highlight all authors in multi-author ChangeLog entries.
Juanma Barranquero [Fri, 21 May 2010 01:46:38 +0000 (03:46 +0200)]
* add-log.el: Highlight all authors in multi-author ChangeLog entries.

14 years ago* src/Makefile.in: Comment fix.
Glenn Morris [Fri, 21 May 2010 01:43:44 +0000 (18:43 -0700)]
* src/Makefile.in: Comment fix.

14 years agoRevert previous change.
Glenn Morris [Fri, 21 May 2010 01:39:21 +0000 (18:39 -0700)]
Revert previous change.
I misunderstood EXEEXT (I don't think it can be working though).

14 years agoMinor Makefile fix.
Glenn Morris [Fri, 21 May 2010 01:31:13 +0000 (18:31 -0700)]
Minor Makefile fix.
* src/Makefile.in (temacs${EXEEXT}, prefix-args, mostlyclean):
prefix-args neither gets nor needs the $EXEEXT extension.

14 years agoDerive Fortran modes from prog-mode.
Glenn Morris [Fri, 21 May 2010 01:13:57 +0000 (18:13 -0700)]
Derive Fortran modes from prog-mode.
* progmodes/fortran.el (fortran-mode):
* progmodes/f90.el (f90-mode): Derive from prog-mode.

14 years ago* smerge-mode.el: Fix typos.
Juanma Barranquero [Fri, 21 May 2010 01:05:50 +0000 (03:05 +0200)]
* smerge-mode.el: Fix typos.

14 years ago* src/Makefile.in: Fix comment format in cpp section.
Glenn Morris [Fri, 21 May 2010 00:55:17 +0000 (17:55 -0700)]
* src/Makefile.in: Fix comment format in cpp section.

14 years agoRegenerate configure.
Glenn Morris [Fri, 21 May 2010 00:51:50 +0000 (17:51 -0700)]
Regenerate configure.

14 years agoHandle some HAVE_NS Makefile conditionals with configure.
Glenn Morris [Fri, 21 May 2010 00:48:14 +0000 (17:48 -0700)]
Handle some HAVE_NS Makefile conditionals with configure.

* configure.in (ns_frag): New output file.

* src/Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
Move these rules to ns.mk.
* ns.mk: New file.  Copyright years based on date of nextstep merge.

* msdos/sed1v2.inp(@ns_frag@): Edit to nothing.

14 years agoBuild simplifications for oldxmenu.
Glenn Morris [Fri, 21 May 2010 00:40:12 +0000 (17:40 -0700)]
Build simplifications for oldxmenu.

* configure.in (OLDXMENU): Set to "nothing" if !HAVE_X11 || USE_GTK.
(OLDXMENU_TARGET): Set to empty if USE_GTK.

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

* msdos/sed1x.inp (OLDXMENU): Replace any initial value.
* msdos/sed1v2.inp (OLDXMENU): Edit to "nothing".

14 years ago* msdos/mainmake.v2: Comment fix.
Glenn Morris [Fri, 21 May 2010 00:33:54 +0000 (17:33 -0700)]
* msdos/mainmake.v2: Comment fix.

14 years agoHandle CANNOT_DUMP (partially) with configure.
Glenn Morris [Fri, 21 May 2010 00:28:47 +0000 (17:28 -0700)]
Handle CANNOT_DUMP (partially) with configure.

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

* src/Makefile.in (CANNOT_DUMP): New, set by configure.
(emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.

* msdos/sed1v2.inp (CANNOT_DUMP): Edit to no.

14 years agoMinor loadup.el fix.
Glenn Morris [Fri, 21 May 2010 00:22:58 +0000 (17:22 -0700)]
Minor loadup.el fix.
* lisp/loadup.el [CANNOT_DUMP]: Update for bootstrap-emacs no longer
having a relative path in src/Makefile.in.

14 years ago* help-mode.el (help-make-xrefs): For Info node links turn
Kevin Ryde [Thu, 20 May 2010 23:54:55 +0000 (02:54 +0300)]
* help-mode.el (help-make-xrefs): For Info node links turn
newlines into spaces.  Link node names with newlines are matched
by help-xref-info-regexp and buttonized, this change ensures they
can be followed successfully with RET.  (Bug#6206)

14 years ago* gnus-start.el (gnus-level-unsubscribed): Doc fix. (Bug#6206)
Kevin Ryde [Thu, 20 May 2010 23:43:54 +0000 (02:43 +0300)]
* gnus-start.el (gnus-level-unsubscribed): Doc fix.  (Bug#6206)

14 years ago* fileio.c (Fdelete_file): Change interative spec to use
Juri Linkov [Thu, 20 May 2010 23:08:52 +0000 (02:08 +0300)]
* fileio.c (Fdelete_file): Change interative spec to use
`read-file-name' like in `find-file-read-args' where the default
value is `default-directory' instead of `buffer-file-name'.
http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html

14 years ago* locate.el (locate): Use pop-to-buffer instead of
Juri Linkov [Thu, 20 May 2010 22:55:11 +0000 (01:55 +0300)]
* locate.el (locate): Use pop-to-buffer instead of
switch-to-buffer-other-window.  (Bug#6204)

14 years ago* replace.el (replace-highlight): Fix lazy-highlighting
Juri Linkov [Thu, 20 May 2010 22:49:53 +0000 (01:49 +0300)]
* replace.el (replace-highlight): Fix lazy-highlighting
for `M-s w str M-% str RET'.

14 years ago* isearch.el (isearch-yank-word-or-char): Pull next subword
Masatake YAMATO [Thu, 20 May 2010 22:33:09 +0000 (01:33 +0300)]
* isearch.el (isearch-yank-word-or-char): Pull next subword
when `subword-mode' is activated.  (Bug#6220)

14 years ago* isearch.el (isearch-update-post-hook): New hook.
Mark A. Hershberger [Thu, 20 May 2010 22:16:19 +0000 (01:16 +0300)]
* isearch.el (isearch-update-post-hook): New hook.
(isearch-update): Use the new hook.  (Bug#6225)

14 years ago* isearch.el (isearch-mode-map): Bind more keys to isearch-help-map:
Juri Linkov [Thu, 20 May 2010 22:01:57 +0000 (01:01 +0300)]
* isearch.el (isearch-mode-map): Bind more keys to isearch-help-map:
[f1], [help], and (char-to-string help-char) instead of "\C-h".
(Bug#6222)

14 years ago* isearch.el (isearch-yank-string): Use isearch-process-search-string.
Juri Linkov [Thu, 20 May 2010 21:49:49 +0000 (00:49 +0300)]
* isearch.el (isearch-yank-string): Use isearch-process-search-string.
(Bug#6223)

14 years agoRemove obsolete comment.
Juri Linkov [Thu, 20 May 2010 21:38:59 +0000 (00:38 +0300)]
Remove obsolete comment.

14 years ago* dired-x.el (dired-jump, dired-jump-other-window): Add arg
Juri Linkov [Thu, 20 May 2010 21:33:58 +0000 (00:33 +0300)]
* dired-x.el (dired-jump, dired-jump-other-window): Add arg
FILE-NAME to read from the minibuffer when called interactively
with prefix argument instead of using buffer-file-name.
http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00534.html

* dired.el: Update autoloads.

14 years ago* nxml/nxml-mode.el (nxml-mode-map): Bind C-c / to
Chong Yidong [Thu, 20 May 2010 15:12:20 +0000 (11:12 -0400)]
* nxml/nxml-mode.el (nxml-mode-map): Bind C-c / to
nxml-finish-element, for consistency with SGML mode.

* progmodes/octave-mod.el (octave-mode-map): Bind C-c / to
octave-close-block.

14 years agoDoc fix (Bug#6224).
Kevin Ryde [Thu, 20 May 2010 14:53:30 +0000 (10:53 -0400)]
Doc fix (Bug#6224).

* keyboard.c (Vlast_command, Vkeyboard_translate_table)
(Voverriding_terminal_local_map, Vsystem_key_alist)
(Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).

14 years agoDoc fix (Bug#6224).
Chong Yidong [Thu, 20 May 2010 14:50:32 +0000 (10:50 -0400)]
Doc fix (Bug#6224).

* keyboard.c (Vlast_command, Vkeyboard_translate_table)
(Voverriding_terminal_local_map, Vsystem_key_alist)
(Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).

14 years agoUse terminfo rather than termcap on recent NetBSD.
enami tsugutomo [Thu, 20 May 2010 06:37:29 +0000 (23:37 -0700)]
Use terminfo rather than termcap on recent NetBSD.

* configure.in: On NetBSD, if terminfo is found, use it in preference
to termcap.  (Bug#6190)

14 years ago* config.bat: Need to add the deps.mk file before running cpp.
Glenn Morris [Thu, 20 May 2010 06:24:35 +0000 (23:24 -0700)]
* config.bat: Need to add the deps.mk file before running cpp.

14 years ago* src/autodeps.mk, src/deps.mk: Comments need to be in C format.
Glenn Morris [Thu, 20 May 2010 06:20:39 +0000 (23:20 -0700)]
* src/autodeps.mk, src/deps.mk: Comments need to be in C format.

14 years agoRegenerate configure, src/config.in.
Glenn Morris [Thu, 20 May 2010 06:15:26 +0000 (23:15 -0700)]
Regenerate configure, src/config.in.

14 years agoHandle auto-depend with configure.
Glenn Morris [Thu, 20 May 2010 06:11:27 +0000 (23:11 -0700)]
Handle auto-depend with configure.

* make-dist (src): Include *.mk.
* config.bat: Concatenate deps.mk onto the end of src/Makefile.
* configure.in (DEPFLAGS, MKDEPDIR): New output variables.
(deps_frag): New output file.
(AUTO_DEPEND): Remove this definition.

* src/Makefile.in (DEPDIR): New constant.
(DEPFLAGS): Set with configure, not cpp.
(MKDEPDIR): New, set by configure.
(.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
(clean): Use $DEPDIR.
(deps_frag): Include from configure.
Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
* src/deps.mk, src/autodeps.mk: New files, extracted from Makefile.in.

* msdos/sed1v2.inp (DEPFLAGS, deps_frag): Edit to empty.
(MKDEPDIR): Edit to ':'.

14 years ago* configure.in (--with-gtk, --with-gcc): Remove option stubs.
Glenn Morris [Thu, 20 May 2010 05:48:16 +0000 (22:48 -0700)]
* configure.in (--with-gtk, --with-gcc): Remove option stubs.

14 years ago* emacs-lisp/cl-loaddefs.el: Update autoload checksum.
Juanma Barranquero [Thu, 20 May 2010 01:32:08 +0000 (03:32 +0200)]
* emacs-lisp/cl-loaddefs.el: Update autoload checksum.

14 years ago* composite.el: Require cl when compiling; fix typos in docstrings.
Juanma Barranquero [Thu, 20 May 2010 01:27:49 +0000 (03:27 +0200)]
* composite.el: Require cl when compiling; fix typos in docstrings.

14 years ago* emacs-lisp/cl-macs.el (window-parameter): Add defsetf with
Juri Linkov [Wed, 19 May 2010 20:37:57 +0000 (23:37 +0300)]
* emacs-lisp/cl-macs.el (window-parameter): Add defsetf with
set-window-parameter.

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 ago* net/tramp.el (tramp-methods): Add `tramp-async-args' attribute
Michael Albinus [Wed, 19 May 2010 18:56:18 +0000 (20:56 +0200)]
* net/tramp.el (tramp-methods): Add `tramp-async-args' attribute
where appropriate.
(tramp-maybe-open-connection): Use it.

14 years agoFix C-e when bidi reordering is in effect.
Eli Zaretskii [Wed, 19 May 2010 17:16:07 +0000 (20:16 +0300)]
Fix C-e when bidi reordering is in effect.

 simple.el (move-end-of-line): Make sure we are at line beginning
 before backing up to end of previous line.

14 years ago* url-util.el (url-unhex-string): Don't accidentally decode as latin-1.
Stefan Monnier [Wed, 19 May 2010 15:23:53 +0000 (11:23 -0400)]
* url-util.el (url-unhex-string): Don't accidentally decode as latin-1.
* editfns.c (Fbyte_to_string): New function.
* NEWS: Add sections for Emacs-23.3.

14 years ago* password-cache.el (password-cache-remove): Fix docstring.
Michael Albinus [Wed, 19 May 2010 12:52:27 +0000 (14:52 +0200)]
* password-cache.el (password-cache-remove): Fix docstring.

14 years ago* net/secrets.el: Autoload the widget functions.
Michael Albinus [Wed, 19 May 2010 12:47:37 +0000 (14:47 +0200)]
* net/secrets.el: Autoload the widget functions.
(secrets-search-items, secrets-create-item)
(secrets-get-attributes, secrets-expand-item): Attributes will be
stored on the password database without leading ":", as all other
clients do as well.
(secrets-mode): Fix docstring.
(secrets-show-secrets): Provide it as autoloaded command only when
D-Bus support is available.  Check existence of Secret Service API.

14 years agoDecode RFC2047 encoded Subject lines for mail replies.
Peter S Galbraith [Wed, 19 May 2010 12:23:40 +0000 (08:23 -0400)]
Decode RFC2047 encoded Subject lines for mail replies.

14 years agoFix bug #6210.
Eli Zaretskii [Wed, 19 May 2010 07:22:41 +0000 (10:22 +0300)]
Fix bug #6210.

 bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
 reallocation of the cache.

14 years ago* textmodes/fill.el (fill-region): Don't fill past the end.
Stefan Monnier [Wed, 19 May 2010 03:51:55 +0000 (23:51 -0400)]
* textmodes/fill.el (fill-region): Don't fill past the end.

Fixes: debbugs:6201

14 years ago* indent.el (indent-region): Deactivate region (bug#6200).
Stefan Monnier [Wed, 19 May 2010 03:06:48 +0000 (23:06 -0400)]
* indent.el (indent-region): Deactivate region (bug#6200).

14 years ago* vc-dir.el (vc-dir): Don't pop-up-windows. (Bug#6204)
Glenn Morris [Wed, 19 May 2010 03:01:24 +0000 (20:01 -0700)]
* vc-dir.el (vc-dir): Don't pop-up-windows.  (Bug#6204)

14 years ago* etc/TODO: prog-mode updates.
Glenn Morris [Wed, 19 May 2010 02:56:44 +0000 (19:56 -0700)]
* etc/TODO: prog-mode updates.

14 years agoMinor msdos build change.
Glenn Morris [Wed, 19 May 2010 02:51:51 +0000 (19:51 -0700)]
Minor msdos build change.

* msdos/sed2v2.inp (ORDINARY_LINK): Set here rather than in s/msdos.h.
* src/s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.

14 years agoRegenerate configure, src/config.in.
Glenn Morris [Wed, 19 May 2010 02:46:42 +0000 (19:46 -0700)]
Regenerate configure, src/config.in.

14 years agoSet linker-related things with configure.
Glenn Morris [Wed, 19 May 2010 02:42:04 +0000 (19:42 -0700)]
Set linker-related things with configure.

* configure.in (LINKER, YMF_PASS_LDFLAGS): New output variables.
(ORDINARY_LINK): New AC_DEFINE.
(LIB_GCC): No need to set if ORDINARY_LINK.

* src/Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
(GNULIB_VAR): Remove.
(LIBES): Use LIB_GCC instead of GNULIB_VAR.

* src/m/ibms390x.h (LINKER):
* src/m/macppc.h (LINKER) [GNU_LINUX]:
* src/s/aix4-2.h (ORDINARY_LINK):
* src/s/cygwin.h (LINKER):
* src/s/darwin.h (ORDINARY_LINK):
* src/s/gnu.h (ORDINARY_LINK):
* src/s/netbsd.h (LINKER):
* src/s/usg5-4.h (ORDINARY_LINK):
Move to configure.

* msdos/sed1v2.inp (LD): Edit to $(CC).
(YMF_PASS_LDFLAGS): Edit to `flags'.

14 years ago* s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
Glenn Morris [Wed, 19 May 2010 02:27:01 +0000 (19:27 -0700)]
* s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
In any case, ORDINARY_LINK means uses the C compiler as the LINKER,
so setting LINKER=cc is redundant.

14 years agomerge trunk
Kenichi Handa [Wed, 19 May 2010 01:16:01 +0000 (10:16 +0900)]
merge trunk

14 years agomerge trunk
Kenichi Handa [Wed, 19 May 2010 01:10:29 +0000 (10:10 +0900)]
merge trunk

14 years agocomposite.el: Register compose-gstring-for-graphic in composition-function-table...
Kenichi Handa [Wed, 19 May 2010 01:09:50 +0000 (10:09 +0900)]
composite.el: Register compose-gstring-for-graphic in composition-function-table only for combining characters (Mn, Mc, Me).

14 years agocalc-trail.el (calc-trail-isearch-forward)
Jay Belanger [Tue, 18 May 2010 22:49:56 +0000 (17:49 -0500)]
calc-trail.el (calc-trail-isearch-forward)
(calc-trail-isearch-backward): Ensure that the new window
point is set correctly.

14 years agoStefan Monnier <monnier@iro.umontreal.ca>
Chong Yidong [Tue, 18 May 2010 20:51:12 +0000 (16:51 -0400)]
Stefan Monnier  <monnier@iro.umontreal.ca>

14 years ago* subr.el (read-quoted-char): Resolve modifiers after key remapping.
Stefan Monnier [Tue, 18 May 2010 20:31:44 +0000 (16:31 -0400)]
* subr.el (read-quoted-char): Resolve modifiers after key remapping.

Fixes: debbugs:6212

14 years agoAdd command `secrets-show-secrets'.
Michael Albinus [Tue, 18 May 2010 19:43:04 +0000 (21:43 +0200)]
Add command `secrets-show-secrets'.

14 years agoAdd visualization code for secrets.
Michael Albinus [Tue, 18 May 2010 19:34:26 +0000 (21:34 +0200)]
Add visualization code for secrets.
* net/secrets.el (secrets-mode): New major mode.
(secrets-show-secrets, secrets-show-collections)
(secrets-expand-collection, secrets-expand-item)
(secrets-tree-widget-after-toggle-function)
(secrets-tree-widget-show-password): New defuns.

14 years ago* emacs-lisp/smie.el (smie-next-sexp): Break inf-loop at BOB.
Stefan Monnier [Tue, 18 May 2010 19:24:24 +0000 (15:24 -0400)]
* emacs-lisp/smie.el (smie-next-sexp): Break inf-loop at BOB.
(smie-backward-sexp, smie-forward-sexp): Remove boundary condition now
handled in smie-next-sexp.
(smie-indent-calculate): Provide a starting indentation (so the
recursion is well-founded ;-).

14 years agoFix stack overflow in string creation (Bug#6214).
Chong Yidong [Tue, 18 May 2010 18:05:43 +0000 (14:05 -0400)]
Fix stack overflow in string creation (Bug#6214).
* character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
prevent stack overflow if number of arguments is too large
(Bug#6214).

14 years ago* character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
Chong Yidong [Tue, 18 May 2010 18:01:10 +0000 (14:01 -0400)]
* character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
prevent stack overflow if number of arguments is too large
(Bug#6214).

14 years agoFix handling of non-associative equal levels.
Stefan Monnier [Tue, 18 May 2010 16:03:51 +0000 (12:03 -0400)]
Fix handling of non-associative equal levels.
* emacs-lisp/smie.el (smie-prec2-levels): Choose distinct levels even
when it's not needed.
(smie-op-left, smie-op-right): New functions.
(smie-next-sexp): New function, extracted from smie-backward-sexp.
Better handle equal levels to distinguish the associative case from
the "multi-keyword construct" case.
(smie-backward-sexp, smie-forward-sexp): Use 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 ago* doc/emacs/ChangeLog: Fix typos.
Juanma Barranquero [Tue, 18 May 2010 11:49:10 +0000 (13:49 +0200)]
* doc/emacs/ChangeLog: Fix typos.

14 years agoDocument bidi-aware behavior of arrow keys and display features.
Eli Zaretskii [Tue, 18 May 2010 10:58:56 +0000 (13:58 +0300)]
Document bidi-aware behavior of arrow keys and display features.
 display.texi (Fringes): Document reversal of fringe arrows for R2L
 paragraphs.
 (Line Truncation): Fix wording for bidi display.
 basic.texi (Moving Point): Document bidi-aware behavior of the arrow keys.

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.