Dave Love [Mon, 24 Feb 2003 22:51:41 +0000 (22:51 +0000)]
(read-envvar-name): Decode names.
(substitute-env-vars): Use eval-when-compile and char class.
(setenv): Doc fix. Encode the data (after checking that's
possible).
(getenv): Encode the name and decode the result.
(query-replace-read-args): Return just 3 values.
(query-replace, query-replace-regexp)
(query-replace-regexp-eval, map-query-replace-regexp)
(replace-string, replace-regexp): Read the start and end args
separately so that the expressions are recorded in command-history.
(inhibit-startup-hooks): New variable.
(normal-top-level): Obey that variable.
(command-line-1): Run emacs-startup-hook before term-setup-hook.
Set inhibit-startup-hooks too.
(fix_command): New subroutine, from Fcall_interactively.
Detect (when ... (region-beginning)) etc.
(Fcall_interactively): Call fix_command.
(Qif, Qwhen): New variables.
(syms_of_callint): Init and staticpro them.
Kai Großjohann [Sun, 23 Feb 2003 10:48:29 +0000 (10:48 +0000)]
(directory_files_internal): Don't expand directory.
(Fdirectory_files, Fdirectory_files_and_attributes): Do it here
instead. From Lars Hansen <larsh@math.ku.dk>.
Stefan Monnier [Sun, 23 Feb 2003 02:19:02 +0000 (02:19 +0000)]
Merge changes from CPerl-5.0.
(toplevel): Require man.
(condition-case): Don't autoload tmm-prompt (it's in loaddefs.el).
(cperl-electric-backspace-untabify): New var.
(cperl-electric-backspace): Use it.
(cperl-vc-header-alist): Extract numeric version from the Id.
(cperl-build-manpage): New fun.
(cperl-menu): Use it. Add toggle-autohelp.
(cperl-mode) <defun-prompt_regexp>: Understand prototypes.
(cperl-electric-brace): Use `cperl-after-block-p' for detection.
(cperl-electric-keyword): Make $if (etc: "$@%&*") non-electric.
'(' after keyword would insert a doubled paren.
(cperl-calculate-indent): Update syntaxification before checks.
Fix wrong indent of blocks starting with POD.
(cperl-find-pods-heres): If no end of HERE-doc found, mark to the end
of buffer. This enables recognition of end of HERE-doc "as one types".
Require "\n" after trailing tag of HERE-doc.
\( made non-quoting outside of string/comment (gdj-contributed).
Likewise for \$. Remove `here-doc-group' text property at start
(makes this property reliable).
Text property `first-format-line' ==> t.
Do not recognize $opt_s and $opt::s as s///.
(cperl-after-block-p): Optional arg pre-block to check for a pre-block
Recognize `continue' blocks too.
(cperl-after-expr-p): Update syntaxification before checks. Work after
here-docs, formats, and PODs too (affects many electric constructs).
(cperl-fix-line-spacing): Allow "_" in $vars of foreach etc.
(cperl-perldoc): Use case-sensitive search.
Stefan Monnier [Sun, 23 Feb 2003 01:42:24 +0000 (01:42 +0000)]
Merge changes from CPerl-4.35.
(cperl-xemacs-p): Move.
(cperl-can-font-lock): New var to replace window-system.
(cperl-enable-font-lock): Use it.
(cperl-use-major-mode): New var.
(cperl-mode): Use it.
(cperl-calculate-indent): Remove code whose removal was missed
in some earlier merge.
(cperl-tags-hier-init): Use display-popup-menus-p.
Stefan Monnier [Sat, 22 Feb 2003 22:22:27 +0000 (22:22 +0000)]
(string_to_multibyte): Remove unused var i.
(Flanginfo): Fix int/Lisp_Object mixup.
(void_call2): New fun.
(Fmap_char_table): Use it in place of call2.
Kim F. Storm [Fri, 21 Feb 2003 12:50:58 +0000 (12:50 +0000)]
Add run-time check to catch users trying
to use older versions of CUA-mode, rather than the version
distributed with Emacs. Use autoload cookies and eval-after-load.
Kim F. Storm [Fri, 21 Feb 2003 12:43:31 +0000 (12:43 +0000)]
(command-line): Clarify and tidy up the message
printed when there are errors in the user-init-file.
Do not encapsulate the error data; it's read by humans here.
Do not split windows when displaying the *Message* buffer.
Kenichi Handa [Thu, 20 Feb 2003 08:43:22 +0000 (08:43 +0000)]
(print-fontset): If FONTSET is nil,
use the default fontset.
(describe-fontset): If the current frame is not using a fontset,
call print-fontset with nil.
Kenichi Handa [Thu, 20 Feb 2003 08:40:35 +0000 (08:40 +0000)]
(check_fontset_name): If NAME is nil, return the
default fontset.
(override_font_info): New function.
(Ffontset_info): If FONTSET is not the default fontset, merge
FONTSET onto the copy of the default fontset, and work on that
copy.
Jan Djärv [Tue, 18 Feb 2003 21:30:08 +0000 (21:30 +0000)]
* xterm.c (x_list_fonts): If maxnames is less than 0, get all font
names.
* xfaces.c (x_face_list_fonts): Allocate struct font_name here.
(sorted_font_list): Moved allocation of struct font_name to
x_face_list_fonts.
(Fx_font_family_list): Set font-list-limit to -1 to get all font names.
(Fx_list_fonts): Set maxnames to -1 to get all font names.