bpt/emacs.git
14 years agoAdd --parent-id argument to emacsclient.
Chong Yidong [Sat, 29 May 2010 23:50:47 +0000 (19:50 -0400)]
Add --parent-id argument to emacsclient.

* lib-src/emacsclient.c (longopts, decode_options, print_help_and_exit):
New arg `-parent-id'.
(main): Send parent-id to Emacs.

* lisp/server.el (server-process-filter): Receive parent-id argument
from emacsclient.
(server-create-window-system-frame): New arg.  Pass parent-id as
frame parameter.

14 years agoRegenerate configure.
Glenn Morris [Sat, 29 May 2010 18:57:11 +0000 (11:57 -0700)]
Regenerate configure.

14 years agoAdd some comments related to how epaths.h gets built.
Glenn Morris [Sat, 29 May 2010 18:54:16 +0000 (11:54 -0700)]
Add some comments related to how epaths.h gets built.

14 years ago* ansi-color.el: Delete unused escape sequences (Bug#6085).
Chong Yidong [Sat, 29 May 2010 18:25:00 +0000 (14:25 -0400)]
* ansi-color.el: Delete unused escape sequences (Bug#6085).
(ansi-color-drop-regexp): New constant.
(ansi-color-apply, ansi-color-filter-region)
(ansi-color-apply-on-region): Delete unrecognized control sequences.
(ansi-color-apply): Build string list before calling concat.

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

 lisp/subr.el (right-arrow-command, left-arrow-command): Move to bindings.el.
 lisp/bindings.el (right-char, left-char): Move from subr.el and
 rename from right-arrow-command and left-arrow-command.
 (right-word, left-word): New functions.
 (global-map) <right>: Bind to right-char.
 (global-map) <left>: Bind to left-char.
 (global-map) <C-right>: Bind to right-word.
 (global-map) <C-left>: Bind to left-word.

 doc/emacs/basic.texi (Moving Point): Update due to renaming of commands bound
 to arrows.  Document bidi-aware behavior of C-<right> and C-<left>.

14 years agoFix cursor motion in bidi-reordered continued lines.
Eli Zaretskii [Sat, 29 May 2010 12:51:01 +0000 (15:51 +0300)]
Fix cursor motion in bidi-reordered continued lines.

 xdisp.c (try_cursor_movement): Backup to non-continuation line
 only after finding point's row.  Fix the logic.  Rewrite the loop
 over continuation lines in bidi-reordered buffers.  Return
 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.

14 years agoFinish debugging of cursor motion in bidi-reordered lines.
Eli Zaretskii [Sat, 29 May 2010 10:49:21 +0000 (13:49 +0300)]
Finish debugging of cursor motion in bidi-reordered lines.

 xdisp.c (try_cursor_movement): Fix the logic.  Rewrite the loop
 over continuation lines in bidi-reordered buffers.  Return
 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.

14 years agoFix bug #6294.
Eli Zaretskii [Sat, 29 May 2010 07:55:40 +0000 (10:55 +0300)]
Fix bug #6294.

 lisp/ls-lisp.el (ls-lisp-classify-file): New function.
 (ls-lisp-insert-directory): Call it if switches include -F.
 (ls-lisp-classify): Call ls-lisp-classify-file.
 (insert-directory): Remove blanks from switches.

14 years ago* image-dired.el (image-dired-dired-toggle-marked-thumbs):
Juri Linkov [Fri, 28 May 2010 19:18:47 +0000 (22:18 +0300)]
* image-dired.el (image-dired-dired-toggle-marked-thumbs):
Replace LOCALP arg of `dired-get-filename' 'no-dir with nil.
(Bug#5270)

14 years ago* fileio.c (Fdelete_file): Pass TRASH arg to handler call.
Michael Albinus [Fri, 28 May 2010 14:57:11 +0000 (16:57 +0200)]
* fileio.c (Fdelete_file): Pass TRASH arg to handler call.

14 years ago* net/tramp.el (tramp-debug-message): Add `tramp-compat-funcall'
Michael Albinus [Fri, 28 May 2010 14:48:56 +0000 (16:48 +0200)]
* net/tramp.el (tramp-debug-message): Add `tramp-compat-funcall'
to ignored backtrace functions.
(with-progress-reporter): Expand docstring.
(tramp-handle-delete-file): Implement TRASH argument.
(tramp-get-remote-trash): New defun.

14 years ago* net/tramp-compat.el (tramp-compat-delete-file): Use
Michael Albinus [Fri, 28 May 2010 13:28:36 +0000 (15:28 +0200)]
* net/tramp-compat.el (tramp-compat-delete-file): Use
`symbol-value' for backward compatibility.

* net/tramp.el (tramp-handle-make-symbolic-link)
(tramp-handle-load)
(tramp-do-copy-or-rename-file-via-buffer)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-handle-process-file, tramp-handle-call-process-region)
(tramp-handle-shell-command, tramp-handle-file-local-copy)
(tramp-handle-insert-file-contents, tramp-handle-write-region)
(tramp-delete-temp-file-function): Use `delete-file' instead
of `tramp-compat-delete-file'.

* net/tramp-fish.el (tramp-fish-handle-delete-directory)
(tramp-fish-handle-make-symbolic-link)
(tramp-fish-handle-process-file): Use `delete-file' instead
of `tramp-compat-delete-file'.

* net/tramp-ftp.el (tramp-ftp-file-name-handler): Use
`delete-file' instead of `tramp-compat-delete-file'.

* net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): Rename arg.
(tramp-gvfs-handle-write-region): Use `delete-file' instead of
`tramp-compat-delete-file'.

* net/tramp-imap.el (tramp-imap-do-copy-or-rename-file): Use
`delete-file' instead of `tramp-compat-delete-file'.

* 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): Use `delete-file' instead of
`tramp-compat-delete-file'.
(tramp-smb-handle-delete-directory): Use 'trash as arg.

14 years agoPrevent unnecessary scrolling in bidi-reordered buffers.
Eli Zaretskii [Fri, 28 May 2010 12:00:47 +0000 (15:00 +0300)]
Prevent unnecessary scrolling in bidi-reordered buffers.

 xdisp.c (try_cursor_movement): back up to non-continuation line only
 after finding point's row..

14 years agomerge trunk
Kenichi Handa [Fri, 28 May 2010 06:45:43 +0000 (15:45 +0900)]
merge trunk

14 years agoHandle face-ignored-fonts
Kenichi Handa [Fri, 28 May 2010 06:42:43 +0000 (15:42 +0900)]
Handle face-ignored-fonts

14 years ago* configure.in: Simplify some of the *bsd $canonical tests.
Glenn Morris [Fri, 28 May 2010 04:25:06 +0000 (21:25 -0700)]
* configure.in: Simplify some of the *bsd $canonical tests.

14 years agoMove some old ChangeLog entries to the right files.
Glenn Morris [Fri, 28 May 2010 03:52:19 +0000 (20:52 -0700)]
Move some old ChangeLog entries to the right files.

14 years ago* configure.in: Simplify some of the $canonical tests.
Glenn Morris [Fri, 28 May 2010 03:34:15 +0000 (20:34 -0700)]
* configure.in: Simplify some of the $canonical tests.

14 years ago* src/Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
Glenn Morris [Fri, 28 May 2010 03:29:09 +0000 (20:29 -0700)]
* src/Makefile.in (LIBES): Remove $LOADLIBES, it is never set.

14 years ago* etc/MACHINES: Remove some old information no longer of relevance.
Glenn Morris [Fri, 28 May 2010 03:25:50 +0000 (20:25 -0700)]
* etc/MACHINES: Remove some old information no longer of relevance.
Switch to outline-mode.

14 years ago* etc/PROBLEMS: Remove some more obsolete information.
Glenn Morris [Fri, 28 May 2010 03:23:08 +0000 (20:23 -0700)]
* etc/PROBLEMS: Remove some more obsolete information.
Also some re-filling.

14 years agoChange delete-by-moving-to-trash so Lisp calls explicitly request trashing.
Chong Yidong [Thu, 27 May 2010 23:30:11 +0000 (19:30 -0400)]
Change delete-by-moving-to-trash so Lisp calls explicitly request trashing.

* src/fileio.c (Fdelete_file): Change meaning of optional arg to mean
whether to trash.
(internal_delete_file, Frename_file): Callers changed.
(delete_by_moving_to_trash): Doc fix.
(Fdelete_directory_internal): Don't move to trash.

* src/callproc.c (delete_temp_file):
* src/buffer.c (Fkill_buffer): Callers changed.

* src/lisp.h: Update prototype.

* lisp/diff.el (diff-sentinel):
* lisp/epg.el (epg--make-temp-file, epg-decrypt-string)
(epg-verify-string, epg-sign-string, epg-encrypt-string):
* lisp/jka-compr.el (jka-compr-partial-uncompress)
(jka-compr-call-process, jka-compr-write-region):
* lisp/server.el (server-sentinel): Remove optional arg from
delete-file, reverting 2010-05-03 change.

* lisp/dired.el (dired-delete-file): New arg TRASH.
(dired-internal-do-deletions): New arg TRASH.  Use progress
reporter.
(dired-do-flagged-delete, dired-do-delete): Use trash.

* lisp/files.el (delete-directory): New arg TRASH.

* lisp/speedbar.el (speedbar-item-delete): Allow trashing.

* lisp/net/ange-ftp.el (ange-ftp-del-tmp-name, ange-ftp-delete-file)
(ange-ftp-rename-remote-to-remote)
(ange-ftp-rename-local-to-remote)
(ange-ftp-rename-remote-to-local, ange-ftp-load)
(ange-ftp-compress, ange-ftp-uncompress): Remove optional arg from
`delete-file'.
(ange-ftp-delete-directory): Add optional arg to `delete-file', to
allow trashing.

* lisp/net/tramp-compat.el (tramp-compat-delete-file): Rewrite to
handle new TRASH arg of `delete-file'.

* lisp/net/tramp-fish.el (tramp-fish-handle-delete-directory)
(tramp-fish-handle-delete-file)
(tramp-fish-handle-make-symbolic-link)
(tramp-fish-handle-process-file): Use null TRASH arg in
`tramp-compat-delete-file' call.

* lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): Use null TRASH
arg in `tramp-compat-delete-file' call.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): Rename arg.
(tramp-gvfs-handle-write-region): Use null TRASH arg in
`tramp-compat-delete-file' call.

* lisp/net/tramp-imap.el (tramp-imap-handle-delete-file): Rename arg.
(tramp-imap-do-copy-or-rename-file): Use null TRASH arg in
`tramp-compat-delete-file' call.

* lisp/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): Use null TRASH arg in
tramp-compat-delete-file call.
(tramp-smb-handle-delete-directory): Use tramp-compat-delete-file.
(tramp-smb-handle-delete-file): Rename arg.

* lisp/net/tramp.el (tramp-handle-delete-file): Change FORCE arg to TRASH.
(tramp-handle-make-symbolic-link, tramp-handle-load)
(tramp-do-copy-or-rename-file-via-buffer)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-handle-process-file, tramp-handle-call-process-region)
(tramp-handle-shell-command, tramp-handle-file-local-copy)
(tramp-handle-insert-file-contents, tramp-handle-write-region)
(tramp-delete-temp-file-function): Use null TRASH arg in
tramp-compat-delete-file call.

14 years agoFix redisplay crash (Bug#6177).
Chong Yidong [Thu, 27 May 2010 15:49:01 +0000 (11:49 -0400)]
Fix redisplay crash (Bug#6177).

* xdisp.c (redisplay_window): After redisplay, check if point is
still valid before setting it (Bug#6177).

14 years agoLet htmlfontify recognize face aliases (Bug#6279).
Chong Yidong [Thu, 27 May 2010 15:28:58 +0000 (11:28 -0400)]
Let htmlfontify recognize face aliases (Bug#6279).

* progmodes/verilog-mode.el (verilog-type-font-keywords): Use
font-lock-constant-face, not obsolete font-lock-reference-face.

* htmlfontify.el (hfy-face-resolve-face): New function.
(hfy-face-to-style): Use it (Bug#6279).

14 years agomerge trunk
Kenichi Handa [Thu, 27 May 2010 07:08:37 +0000 (16:08 +0900)]
merge trunk

14 years ago* etc/PROBLEMS: Remove some more old information.
Glenn Morris [Thu, 27 May 2010 06:13:23 +0000 (23:13 -0700)]
* etc/PROBLEMS: Remove some more old information.

14 years ago* etc/PROBLEMS: Remove old information no longer of relevance.
Glenn Morris [Thu, 27 May 2010 05:51:43 +0000 (22:51 -0700)]
* etc/PROBLEMS: Remove old information no longer of relevance.

14 years agoDo not preprocess src/Makefile.in.
Glenn Morris [Thu, 27 May 2010 05:43:27 +0000 (22:43 -0700)]
Do not preprocess src/Makefile.in.

* configure.in: Do not preprocess src/Makefile.in.
(cpp_undefs, CPP_NEED_TRADITIONAL): Remove.
(AC_EGREP_CPP): Test no longer needed.
* configure: Regenerate.

* config.bat: Do not preprocess src/Makefile.in.

* make-dist: No more Makefile.c files.

* INSTALL, src/README: Makefiles are not preprocessed.

* src/Makefile.in, src/autodeps.mk, src/deps.mk, src/ns.mk:
Convert comments to Makefile format.

* lib-src/Makefile.in (distclean): No more Makefile.c.
* src/Makefile.in (bootstrap-clean): No more Makefile.c.

* admin/notes/cpp: Remove file.

* admin/quick-install-emacs (AVOID): No more Makefile.c files.

* etc/PROBLEMS, etc/MACHINES: Remove details of cpp problems which can
no longer occur.

14 years agoProvide hooks to use a different tokenizer in SMIE.
Stefan Monnier [Thu, 27 May 2010 04:41:36 +0000 (00:41 -0400)]
Provide hooks to use a different tokenizer in SMIE.
* lisp/emacs-lisp/smie.el (smie-forward-token-function)
(smie-backward-token-function): New vars.
(smie-backward-sexp, smie-forward-sexp)
(smie-indent-hanging-p, smie-indent-calculate): Use them.
(smie-default-backward-token): Rename from smie-backward-token and
skip comments.
(smie-default-forward-token): Rename from smie-forward-token and
skip comments.
(smie-next-sexp): Handle nil results from next-token.
(smie-indent-calculate): Add a new case for special `fixindent' comments.

14 years agolanguage/hebrew.el (hebrew-shape-gstring): Check if a glyph element of GSTRING is...
Kenichi Handa [Thu, 27 May 2010 04:24:30 +0000 (13:24 +0900)]
language/hebrew.el (hebrew-shape-gstring): Check if a glyph element of GSTRING is nil.

14 years agoAvoid (expand-file-name ".").
Stefan Monnier [Wed, 26 May 2010 14:19:15 +0000 (10:19 -0400)]
Avoid (expand-file-name ".").
* org.el (org-file-complete-link):
* progmodes/ada-xref.el (ada-gnat-parse-gpr):
* emulation/edt.el (edt-load-keys): Avoid (expand-file-name ".").

14 years ago* eshell.texi (Built-ins): Describe, how to disable a built-in command
Michael Albinus [Wed, 26 May 2010 10:13:45 +0000 (12:13 +0200)]
* eshell.texi (Built-ins): Describe, how to disable a built-in command
by an alias.

14 years ago* configure.in: Comments.
Glenn Morris [Wed, 26 May 2010 06:48:25 +0000 (23:48 -0700)]
* configure.in: Comments.

14 years agoReplace YMF_PASS_LDFLAGS with autoconf.
Glenn Morris [Wed, 26 May 2010 06:41:58 +0000 (23:41 -0700)]
Replace YMF_PASS_LDFLAGS with autoconf.

* configure.in (YMF_PASS_LDFLAGS): Remove.
(PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): New output variables.
* configure: Regenerate.

* src/Makefile.in (YMF_PASS_LDFLAGS): Remove.
(temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.

* msdos/sed1v2.inp (@PRE_EDIT_LDFLAGS@, @POST_EDIT_LDFLAGS@): Edit to nothing.

14 years ago* lisp/emulation/edt.el (edt-load-keys): Use locate-library.
Glenn Morris [Wed, 26 May 2010 04:06:09 +0000 (21:06 -0700)]
* lisp/emulation/edt.el (edt-load-keys): Use locate-library.
This simplifies the code, and handles compressed .el.gz files, which
the previous version did not.

14 years ago* configure, configure.in: Fix typo in previous.
Glenn Morris [Wed, 26 May 2010 03:58:41 +0000 (20:58 -0700)]
* configure, configure.in: Fix typo in previous.

14 years agoRegenerate configure.
Glenn Morris [Wed, 26 May 2010 03:53:25 +0000 (20:53 -0700)]
Regenerate configure.

14 years agoAdd GNUSTEP_LOCAL_HEADERS/LIBRARIES to build flags.
Glenn Morris [Wed, 26 May 2010 03:50:16 +0000 (20:50 -0700)]
Add GNUSTEP_LOCAL_HEADERS/LIBRARIES to build flags.
* configure.in (CPPFLAGS, CFLAGS, REAL_CFLAGS):
Add $GNUSTEP_LOCAL_HEADERS.
(LDFLAGS, LD_SWITCH_SYSTEM_TEMACS): Add $GNUSTEP_LOCAL_LIBRARIES.

14 years agoRemove some NS_IMPL_GNUSTEP build dead code.
Glenn Morris [Wed, 26 May 2010 03:42:07 +0000 (20:42 -0700)]
Remove some NS_IMPL_GNUSTEP build dead code.

* configure.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS)
(GNUSTEP_MAKEFILES): Remove.
(LD_SWITCH_SYSTEM_TEMACS): Move NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
stuff to here.

* src/Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
Remove.
(TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.

* msdos/sed1v2.inp (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
No longer present.

Comments:
See http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00846.html.
Nothing from gui.make was used at all in src/Makefile.in.  The only
thing used from base.make was $CONFIG_SYSTEM_LIBS, but because we only
set shared _after_ sourcing base.make, it was always empty.  We can
move the remaining flags, set in configure, to the standard variable
LD_SWITCH_SYSTEM_TEMACS.

14 years ago* src/Makefile.in: Fix comment typo.
Glenn Morris [Wed, 26 May 2010 03:36:05 +0000 (20:36 -0700)]
* src/Makefile.in: Fix comment typo.

14 years agoFix for finding a static composition.
Kenichi Handa [Wed, 26 May 2010 01:14:51 +0000 (10:14 +0900)]
Fix for finding a static composition.

14 years agoRename relative filenames in ChangeLog entries according to root.
Chong Yidong [Tue, 25 May 2010 22:50:56 +0000 (18:50 -0400)]
Rename relative filenames in ChangeLog entries according to root.

* lisp/log-edit.el (log-edit-strip-single-file-name): Default to nil.
(log-edit-changelog-entries): Doc fix.
(log-edit-changelog-insert-entries): Args changed.  Rename
relative filenames in ChangeLog entries.  Delete tabs.
(log-edit-insert-changelog-entries): Reorganize return value of
`log-edit-changelog-entries' to pass filenames to
log-edit-changelog-insert-entries.

14 years agolisp/ChangeLog: Fix typos.
Juanma Barranquero [Tue, 25 May 2010 19:13:41 +0000 (21:13 +0200)]
lisp/ChangeLog: Fix typos.

14 years ago* dired.el (dired-mode-map): Rebind "\C-t\C-t" from
Thierry Volpiatto [Tue, 25 May 2010 17:43:58 +0000 (20:43 +0300)]
* dired.el (dired-mode-map): Rebind "\C-t\C-t" from
`image-dired-dired-insert-marked-thumbs' to
`image-dired-dired-toggle-marked-thumbs'.

* image-dired.el: Require cl when compiling.
(image-dired-dired-toggle-marked-thumbs): Rename from
`image-dired-dired-insert-marked-thumbs'.  Add ARG.  Doc fix.
Use interactive spec "P".  Set LOCALP arg of `dired-get-filename'
to 'no-dir.  Skip files whose names don't match
`image-file-name-regexp'.  When file has a thumbnail overlay,
delete it.  (Bug#5270)

14 years ago* image-mode.el (image-mode): Add image-after-revert-hook to after-revert-hook.
Juri Linkov [Tue, 25 May 2010 16:03:53 +0000 (19:03 +0300)]
* image-mode.el (image-mode): Add image-after-revert-hook to after-revert-hook.
(image-after-revert-hook): New function.  (Bug#5669)

14 years ago* image.el (image-animated-p): When delay between animated images is 0,
Juri Linkov [Tue, 25 May 2010 15:54:53 +0000 (18:54 +0300)]
* image.el (image-animated-p): When delay between animated images is 0,
set it to 10 (0.1 sec).  (Bug#6258)

14 years ago* net/tramp.el (tramp-handle-insert-directory): Don't use
Michael Albinus [Tue, 25 May 2010 13:33:55 +0000 (15:33 +0200)]
* net/tramp.el (tramp-handle-insert-directory): Don't use
`forward-word', it's default syntax could be changed.

14 years ago* net/tramp.el (tramp-progress-reporter-update): New defun.
Michael Albinus [Tue, 25 May 2010 08:45:35 +0000 (10:45 +0200)]
* net/tramp.el (tramp-progress-reporter-update): New defun.
(with-progress-reporter): Use it.
(tramp-process-actions):
* net/tramp-gvfs.el (tramp-gvfs-handler-askquestion): Preserve
current message, in order to let progress reporter continue
afterwards.  (Bug#6257)

14 years agoRelocate NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
Glenn Morris [Tue, 25 May 2010 04:25:15 +0000 (21:25 -0700)]
Relocate NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.

* src/Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
Move before TEMACS_LDFLAGS.
(TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
(temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.

14 years agoDo not include config.h in src/Makefile.in.
Glenn Morris [Tue, 25 May 2010 04:17:52 +0000 (21:17 -0700)]
Do not include config.h in src/Makefile.in.
* src/Makefile.in (NOT_C_CODE): No longer define.
(config.h): No longer include.

14 years agoRegenerate configure.
Glenn Morris [Tue, 25 May 2010 03:56:27 +0000 (20:56 -0700)]
Regenerate configure.

14 years agoMove some stuff from LD_SWITCH_SYSTEM to LD_SWITCH_SYSTEM_TEMACS.
Glenn Morris [Tue, 25 May 2010 03:53:12 +0000 (20:53 -0700)]
Move some stuff from LD_SWITCH_SYSTEM to LD_SWITCH_SYSTEM_TEMACS.

* configure.in (LD_SWITCH_SYSTEM): Move some gnu-linux stuff...
(LD_SWITCH_SYSTEM_TEMACS): ... to here.

* src/Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
variables it may reference.

14 years agoRemove LD_SWITCH_SYSTEM_EXTRA.
Glenn Morris [Tue, 25 May 2010 03:46:15 +0000 (20:46 -0700)]
Remove LD_SWITCH_SYSTEM_EXTRA.

* configure.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
(LD_SWITCH_SYSTEM_TEMACS): Put darwin stuff from LD_SWITCH_SYSTEM_EXTRA
here instead.

* src/Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
(TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.

* msdos/sed1v2.inp (LD_SWITCH_SYSTEM_EXTRA): No longer present.

14 years ago* net/rcirc.el (rcirc-default-user-name, rcirc-default-full-name): Add :version.
Glenn Morris [Tue, 25 May 2010 03:38:41 +0000 (20:38 -0700)]
* net/rcirc.el (rcirc-default-user-name, rcirc-default-full-name): Add :version.

14 years agorcirc update.
Ryan Yeske [Tue, 25 May 2010 03:35:31 +0000 (20:35 -0700)]
rcirc update.
* lisp/net/rcirc.el (rcirc-server-alist): Add :pass.
(rcirc-default-user-name): Change to "user".
(rcirc-default-full-name): Change to "unknown".
(rcirc-user-name-history): Add variable.
(rcirc): When prompting for connection paramaters, also prompt for
username and password.
(rcirc-connect): Take a PASS argument. If PASS is non-nil, send
value to server when connecting.

14 years ago* emacs-lisp/smie.el (smie-set-prec2tab): Check override before use.
Stefan Monnier [Tue, 25 May 2010 02:32:40 +0000 (22:32 -0400)]
* emacs-lisp/smie.el (smie-set-prec2tab): Check override before use.
(smie-merge-prec2s): Pass the tables as separate args.
(smie-bnf-precedence-table): Adjust call accordingly.
(smie-prec2-levels): Set levels at the end.

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)