summaryrefslogtreecommitdiff
path: root/lisp/startup.el
Commit message (Collapse)AuthorAgeFilesLines
* * startup.el (fancy-about-screen): In mode-line, applyChong Yidong2010-02-211-2/+4
| | | | mode-line-buffer-id face only to the buffer name (Bug#5613).
* Fix 2009-02-20 change to startup.el (Bug#5519).Chong Yidong2010-02-041-1/+1
| | | | * startup.el (command-line-1): Convert options beginning with a single dash as well (Bug#5519).
* Command line arg processing fix (Bug#5392)Chong Yidong2010-01-161-3/+10
| | | | | | | | * src/emacs.c (standard_args): Adjust arg priorities to reflect how they are processed in startup.el. * lisp/startup.el (command-line): Remove unused --icon-type arg. Handle --display arg, passing it to command-line-1 (Bug#5392).
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* (command-line-1): Use orig-argi to check for ignored X and NS options.Jan D.2010-01-091-2/+2
|
* (fancy-about-text): Fix wording of Guided Tour. (Bug#4960)Juri Linkov2009-11-291-1/+1
|
* * textmodes/tex-mode.el (tex-alt-dvi-print-command)Dan Nicolaescu2009-11-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (tex-dvi-print-command, tex-bibtex-command, tex-start-commands) (tex-start-options, slitex-run-command, latex-run-command) (tex-run-command, tex-directory): * textmodes/ispell.el (ispell-html-skip-alists) (ispell-tex-skip-alists, ispell-tex-skip-alists): * textmodes/fill.el (adaptive-fill-first-line-regexp): (adaptive-fill-regexp): * textmodes/dns-mode.el (auto-mode-alist): * progmodes/python.el (interpreter-mode-alist): * progmodes/etags.el (tags-compression-info-list): * progmodes/etags.el (tags-file-name): * net/browse-url.el (browse-url-galeon-program) (browse-url-firefox-program): * mail/sendmail.el (mail-signature-file) (mail-citation-prefix-regexp): * international/mule-conf.el (eight-bit): * international/latexenc.el (latex-inputenc-coding-alist): * international/fontset.el (x-pixel-size-width-font-regexp): * emacs-lisp/warnings.el (warning-type-format): * emacs-lisp/trace.el (trace-buffer): * emacs-lisp/lisp-mode.el (lisp-interaction-mode-map) (emacs-lisp-mode-map): * calendar/holidays.el (holiday-solar-holidays) (holiday-bahai-holidays, holiday-islamic-holidays) (holiday-christian-holidays, holiday-hebrew-holidays) (hebrew-holidays-4, hebrew-holidays-3, hebrew-holidays-2) (hebrew-holidays-1, holiday-oriental-holidays) (holiday-general-holidays): * x-dnd.el (x-dnd-known-types): * tool-bar.el (tool-bar): * startup.el (site-run-file): * shell.el (shell-dumb-shell-regexp): * rfn-eshadow.el (file-name-shadow-tty-properties) (file-name-shadow-properties): * paths.el (remote-shell-program, news-directory): * mouse.el ([C-down-mouse-3]): * menu-bar.el (menu-bar-tools-menu): * jka-cmpr-hook.el (jka-compr-load-suffixes) (jka-compr-mode-alist-additions, jka-compr-compression-info-list) (jka-compr-compression-info-list): * isearch.el (search-whitespace-regexp): * image-file.el (image-file-name-extensions): * find-dired.el (find-ls-option): * files.el (directory-listing-before-filename-regexp) (directory-free-space-args, insert-directory-program) (list-directory-brief-switches, magic-fallback-mode-alist) (magic-fallback-mode-alist, auto-mode-interpreter-regexp) (automount-dir-prefix): * faces.el (face-x-resources, x-font-regexp, x-font-regexp-head) (x-font-regexp-slant, x-font-regexp-weight, face-x-resources) (face-font-registry-alternatives, face-font-registry-alternatives) (face-font-family-alternatives): * facemenu.el (facemenu-add-new-face, facemenu-background-menu) (facemenu-foreground-menu, facemenu-face-menu): * epa-hook.el (epa-file-name-regexp): * dnd.el (dnd-protocol-alist): * textmodes/rst.el (auto-mode-alist): * button.el (default-button): Purecopy strings.
* * puresize.h (BASE_PURESIZE): Increase to 1470000.Dan Nicolaescu2009-10-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | * lread.c (Fload): Purecopy the file name when building Vpreloaded_file_list. * textmodes/ispell.el (ispell-skip-region-alist): * international/mule-conf.el (eight-bit): * international/fontset.el (font-encoding-alist): * startup.el (pure-space-overflow-message): * simple.el (overwrite-mode-textual, overwrite-mode-binary): * paths.el (gnus-nntp-service, rmail-spool-directory) (term-file-prefix): * files.el (save-some-buffers-action-alist): * cmuscheme.el (same-window-buffer-names): * ielm.el (same-window-buffer-names): * shell.el (same-window-buffer-names): * mail/sendmail.el (same-window-buffer-names): * progmodes/inf-lisp.el (same-window-buffer-names): * bindings.el (mode-line-client) (mode-line-column-line-number-mode-map): * language/tibetan.el (tibetan-precomposition-rule-regexp) (tibetan-precomposed-regexp): Purecopy string arguments.
* * textmodes/tex-mode.el (tex-dvi-view-command)Dan Nicolaescu2009-10-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (tex-show-queue-command, tex-open-quote): * progmodes/ruby-mode.el (auto-mode-alist) (interpreter-mode-alist): Purecopy strings. * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Purecopy item names. * emacs-lisp/derived.el (define-derived-mode): Purecopy the doc string for the hook, keymap and abbrev table. * emacs-lisp/byte-run.el (make-obsolete): Purecopy the current name. * x-dnd.el (x-dnd-xdnd-to-action): * startup.el (fancy-startup-text, fancy-about-text): Change to defconst from defvar. * ps-print.el (ps-page-dimensions-database): Purecopy initial value. * mouse.el (mouse-buffer-menu-mode-groups, x-fixed-font-alist): Purecopy initialization strings. * mail/sendmail.el (mail-header-separator) (mail-personal-alias-file): * mail/rmail.el (rmail-default-dont-reply-to-names) (rmail-ignored-headers, rmail-retry-ignored-headers) (rmail-highlighted-headers, rmail-secondary-file-directory) (rmail-secondary-file-regexp): * files.el (null-device, file-name-invalid-regexp) (locate-dominating-stop-dir-regexp) (inhibit-first-line-modes-regexps): Purecopy initialization strings. (interpreter-mode-alist): Use mapcar instead of mapc. * buff-menu.el (Buffer-menu-mode-map): Purecopy name. * bindings.el (mode-line-major-mode-keymap): Purecopy name. (completion-ignored-extensions): (debug-ignored-errors): Purecopy strings.
* The --quick command line option now ignores X resources and Registry settings.Juanma Barranquero2009-09-171-4/+2
| | | | | | | | | | | | | | | | | * etc/NEWS: Mention new behavior of -Q and new variable `inhibit-x-resources'. * lisp/startup.el (emacs-quick-startup): Remove variable and all uses. (command-line): Set `inhibit-x-resources' instead. (command-line-1): Use `inhibit-x-resources' instead. * src/emacs.c (inhibit_x_resources): New variable. (main) [HAVE_NS]: Don't process --quick command line option. (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it. * src/lisp.h (inhibit_x_resources): Declare it extern. * src/w32reg.c (x_get_string_resource): * src/xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
* (command-line): Initialize the window-system afterStefan Monnier2009-09-161-38/+40
| | | | processing the command-line.
* Revert unnecessary parts of previous change.Glenn Morris2009-09-151-7/+8
|
* (command-line-1): Give local variables with common names aGlenn Morris2009-09-151-46/+49
| | | | | distinguishing prefix, so as not to hide free variable warnings during bootstrap.
* * mail/sendmail.el (send-mail-function):Stefan Monnier2009-09-131-16/+0
| | | | | | | | | | | | | | | | | * tooltip.el (tooltip-mode): * simple.el (transient-mark-mode): * rfn-eshadow.el (file-name-shadow-mode): * frame.el (blink-cursor-mode): * font-core.el (global-font-lock-mode): * files.el (temporary-file-directory) (small-temporary-file-directory, auto-save-file-name-transforms): * epa-hook.el (auto-encryption-mode): * composite.el (global-auto-composition-mode): Use custom-initialize-delay. * startup.el (command-line): Don't explicitly call custom-reevaluate-setting for all the above vars. * custom.el (custom-initialize-safe-set) (custom-initialize-safe-default): Delete.
* * mwheel.el (mwheel-installed-bindings): New var.Stefan Monnier2009-09-121-2/+0
| | | | | | | | | (mouse-wheel-mode): Use it, so as to make sure we really remove all the bindings we set last time. Use custom-initialize-delay. * loadup.el: Load mwheel after term/*-win.el. * startup.el (command-line): Don't reevaluate mouse-wheel-down-event and mouse-wheel-up-event now that their first evaluation is done sufficiently late to be correct.
* * startup.el (tutorial-directory): Make it a defcustom.Stefan Monnier2009-09-121-7/+6
| | | | | | | | Use custom-initialize-delay rather than eval-at-startup to set it. * image.el (image-load-path): Make it a defcustom. Use custom-initialize-delay rather than eval-at-startup to set it. * subr.el (eval-at-startup): Remove. * font-lock.el (lisp-font-lock-keywords-2): Remove eval-at-startup.
* * custom.el (custom-delayed-init-variables): New var.Stefan Monnier2009-09-111-1/+8
| | | | | | | | | (custom-initialize-delay): New function. * startup.el (command-line): "Re"evaluate all vars in custom-delayed-init-variables. Don't reevaluate abbrev-file-name explicitly any more. * abbrev.el (abbrev-file-name): Use custom-initialize-delay to avoid creating a ~/.emacs.d at build-time (bug#4347).
* * keymap.c (QCadvertised_binding): New constant.Stefan Monnier2009-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | (syms_of_keymap): Initialize it. (Fwhere_is_internal): Try and use bindings from :advertised-binding if applicable. * progmodes/xscheme.el (xscheme-evaluation-commands): Put a :advertised-binding property rather than using advertised-xscheme-send-previous-expression. (advertised-xscheme-send-previous-expression): Declare obsolete. * emulation/crisp.el (crisp-mode-map): Use `undo' rather than `advertised-undo'. (crisp-mode): Add corresponding bindings to undo's :advertised-binding instead. * dired.el (dired-mode-map): Put a :advertised-binding property rather than using dired-advertised-find-file. (dired-advertised-find-file): * simple.el (advertised-undo): * wid-edit.el (advertised-widget-backward): Declare obsolete. (widget-keymap): Put a :advertised-binding property rather than using advertised-widget-backward. * bindings.el (ctl-x-map): Put a :advertised-binding property rather than using advertised-undo. * tutorial.el (tutorial--default-keys): Adjust accordingly.
* * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.Stefan Monnier2009-09-101-20/+2
| | | | | | | | | | | | (parse_menu_item): Streamline since bindings are recomputed all the time anyway. Don't bother checking Vdefine_key_rebound_commands any more and don't support lmenu's menu-alias any more either. * subr.el (define-key-rebound-commands): Mark obsolete. * startup.el (precompute-menubar-bindings): Remove. (normal-top-level): Remove obsolete code that tried to precompute menubar bindings. * loadup.el (define-key-rebound-commands): Don't bother fiddling with define-key-rebound-commands and precompute-menubar-bindings.
* * startup.el (command-line-normalize-file-name): On Windows andJuanma Barranquero2009-09-101-0/+3
| | | | MS-DOS, also convert C:\/ and C:\\ (two backslashes) into C:/.
* Use default-value rather than default-enable-multibyte-characters.Glenn Morris2009-09-031-4/+5
|
* * paths.el (abbrev-file-name): Move to abbrev.el.Stefan Monnier2009-08-291-71/+49
| | | | | | | | | | | | | | | | * abbrev.el (abbrev-file-name): Move from paths.el. Obey user-emacs-directory. * calc/calc.el (calc-settings-file): Don't autoload and instead obey user-emacs-directory. * dos-fns.el (dos-reevaluate-defcustoms): Don't reevaluate abbrev-file-name and calc-settings-file any more. * startup.el (command-line): Recompute abbrev-file-name and abbreviated-home-dir. (normal-no-mouse-startup-screen): Improve the generic code and get rid of the special code for when C-h bindings haven't been changed. (display-startup-echo-area-message): Use with-current-buffer. (command-line-1): Use a list of strings, rather than a list of lists of strings for longopts.
* Remove code for defunct system-types emx, macos, mswindows,Glenn Morris2009-08-221-5/+1
| | | | unisoft-unix, vax-vms, win32, w32.
* Use forward-line rather than goto-line.Glenn Morris2009-08-221-4/+6
|
* * emacs.c (USAGE3, standard_args): Add -mm and --maximized.Jan Djärv2009-07-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * frame.c: Qmaximized is new. (x_set_frame_parameters): Do not handle fullscreen specially. Only set width and height if explicitly set. (x_set_fullscreen): Handle Qmaximized. (x_set_font, x_figure_window_size): Do not handle fullscreen specially. (syms_of_frame): Initialize Qmaximized. * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED. Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized. * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen for Expose event. Add call to x_check_fullscreen for MapNotify event. Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not set gravity to NorthWestGravity when USE_GTK. (set_wm_state): New function. (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED. (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED. (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen or the case when no window manager is running. That means remove calls to x_real_positions and x_fullscreen_adjust. * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove. (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and flush_and_sync. (xg_height_changed): New function. (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request and gtk_window_set_policy. Set frame gravity after parsing the geometry string. (xg_update_frame_menubar, free_frame_menubar) (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback) (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed. Remove calls to xg_frame_set_char_size. * startup.el (command-line-x-option-alist): Add -mm and --maximized. * NEWS: Mention maximized. * frames.texi (Size Parameters): Mention maximized for fullscreen. * xresources.texi (Table of Resources): Mention maximized for fullscreen. * cmdargs.texi (Window Size X): -mm/--maximized is new.
* (normal-no-mouse-startup-screen): Use F1 rather than C-hStefan Monnier2009-05-291-50/+54
| | | | if C-h is remapped to something else like DEL.
* * startup.el (normal-top-level): Implement a work-around to handleChong Yidong2009-04-251-1/+15
| | | | changes to face-font-rescale-alist during initialization (Bug#1785).
* Revert incorrect checkin.Chong Yidong2009-04-231-7/+1
|
* * hi-lock.el (hi-lock--inhibit-font-lock-hook): New var.Chong Yidong2009-04-231-1/+7
| | | | (hi-lock-set-pattern, hi-lock-font-lock-hook): Use it (Bug#3068).
* (command-line): Don't match an empty argument as anAndreas Schwab2009-02-201-15/+14
| | | | | option. (command-line-1): Likewise.
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* * emacs.c (main): Print and error and exit when no data is readDan Nicolaescu2008-12-181-1/+5
| | | | | | | | | | from the pipe. * startup.el (command-line): Do not mention the server name in case the user has not mentioned it, print a more explicit message. * emacsclient.c (start_daemon_and_retry_set_socket): Improve error checking.
* * server.el (server-start): If unable to start the server,Juanma Barranquero2008-12-161-1/+5
| | | | | | | | display a warning instead of raising an error. * startup.el (server-process): Add defvar. (command-line): If the daemon is unable to start the server, display a message and exit Emacs.
* (initial-buffer-choice): Change an abstract file nameJuri Linkov2008-11-221-1/+1
| | | | "file.txt" to more reasonable default file name value "~/.emacs".
* (fancy-startup-text): Give "Emacs tutorial" line the usualChong Yidong2008-11-161-1/+1
| | | | variable-pitch face.
* (command-line): Ignore init-file-user when checking user's home directoryEli Zaretskii2008-11-081-7/+9
| | | | on MS-DOS as well.
* (startup-echo-area-message): Display a different message in daemonChong Yidong2008-11-041-6/+8
| | | | mode. Suggested by Stephen Turnbull.
* * startup.el (inhibit-startup-screen): Reflow docstring.Juanma Barranquero2008-10-281-6/+6
| | | | (user-mail-address, tool-bar-images-pixel-height): Fix docstring typos.
* * emacs.c (daemon_name): New variable.Dan Nicolaescu2008-10-271-3/+7
| | | | | | | | | | | (main): Deal with --daemon=SERVER_NAME. (Fdaemonp): Return a name if one was passed to --daemon. * startup.el (server-name): Pacify byte compiler. (command-line): If --daemon=SERVER_NAME was used, set server-name before calling server-start. * cmdargs.texi (Initial Options): Document -daemon=SERVER_NAME.
* * startup.el (command-line): Call daemon-initialized afterDan Nicolaescu2008-10-261-1/+2
| | | | | | | | | starting the server. * emacs.c (daemon_pipe): New variable (main): Create a pipe before forking, make the parent exit only after the child has closed its end of the pipe. Move closing the descriptors ... (Fdaemon_initialized): ... here. New function.
* * completion.el (add-completion-to-head, add-completion): Doc fixes.Juanma Barranquero2008-10-251-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (completion-search-next, add-completions-from-file): Fix typos in docstrings. * filesets.el (filesets-menu-ensure-use-cached) (filesets-ingroup-patterns, filesets-filetype-property): * tutorial.el (get-lang-string): * play/gamegrid.el (gamegrid-score-file-length, gamegrid-add-score): Fix typos in docstrings. * image-dired.el (image-dired-dired-after-readin-hook): Doc fix. (image-dired-line-up-method, image-dired-thumb-size) (image-dired-cmd-write-exif-data-options, image-dired-write-tags) (image-dired-track-original-file, image-dired-track-thumbnail) (image-dired-dired-next-line, image-dired-dired-previous-line) (image-dired-write-comments): Reflow docstrings. (image-dired-show-all-from-dir-max-files) (image-dired-format-properties-string, image-dired-create-thumbs) (image-dired-mark-tagged-files, image-dired-gallery-generate): Fix typos in docstrings. * savehist.el (savehist-save-minibuffer-history, savehist-file) (savehist-additional-variables, savehist-ignored-variables) (savehist-file-modes, savehist-autosave-interval): * startup.el (inhibit-startup-echo-area-message, inhibit-default-init) (inhibit-startup-buffer-menu, mail-host-address, user-mail-address) (fancy-splash-image): * thumbs.el (thumbs-thumbsdir, thumbs-geometry, thumbs-relief) (thumbs-conversion-program, thumbs-margin): Remove spurious * in docstrings.
* Revert part of last change; it breaks bootstrapping on some systems.Juanma Barranquero2008-10-241-2/+2
|
* New function `locate-user-emacs-file'.Juanma Barranquero2008-10-241-2/+2
| | | | | | | | | | | | | | | | | | | | | * subr.el (locate-user-emacs-file): New function. (user-emacs-directory): Mention it in docstring. * completion.el (save-completions-file-name): * filesets.el (filesets-menu-cache-file): * image-dired.el (image-dired-dir, image-dired-db-file) (image-dired-temp-image-file, image-dired-gallery-dir) (image-dired-temp-rotate-image-file): * savehist.el (savehist-file): * server.el (server-auth-dir): * startup.el (auto-save-list-file-prefix): * thumbs.el (thumbs-thumbsdir): * tutorial.el (tutorial--saved-dir): * play/gamegrid.el (gamegrid-user-score-file-directory): Use it. * url.el (url-configuration-directory): Use `locate-user-emacs-file'. * NEWS: New function `locate-user-emacs-file'.
* (command-line): If toolbar is disabled but ought to be initialized,Chong Yidong2008-10-121-11/+12
| | | | call tool-bar-setup.
* (command-line): Revert 2008-09-26 change, notDan Nicolaescu2008-10-111-7/+5
| | | | necessary anymore.
* (command-line): Don't invoke tool-bar-mode if it is not fboundp.Eli Zaretskii2008-10-101-0/+1
|
* (command-line): Enable tool-bar-mode as long as it is not suppressedChong Yidong2008-10-091-8/+10
| | | | by X resources, regardless of the terminal.
* (command-line): Use display-warning to warn about an init file error.Chong Yidong2008-10-071-29/+16
| | | | (command-line-1): Remove init file error delay.
* (before-init-time, after-init-time): Move into emacs.c.Chong Yidong2008-10-061-6/+1
| | | | (command-line): Set after-init-time to nil before initialization.
* (command-line): Start the daemon server later.Romain Francoise2008-09-281-7/+9
|