summaryrefslogtreecommitdiff
path: root/lisp/startup.el
Commit message (Collapse)AuthorAgeFilesLines
* lisp/startup.el: Fix bug#14639.Juanma Barranquero2013-06-171-1/+3
| | | | (command-line): Expand package name returned by `package--description-file'.
* * lisp/emacs-lisp/package.el: Don't activate packages older than builtin.Stefan Monnier2013-06-151-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (package-obsolete-list): Rename from package-obsolete-alist, and make it into a simple list of package-desc. (package-strip-version): Remove. (package-built-in-p): Use package--builtin-versions. (package-mark-obsolete): Simplify. (package-process-define-package): Mark it obsolete if older than the builtin version. (package-handle-response): Use line-end-position. (package-read-archive-contents, package--download-one-archive): Simplify. (package--add-to-archive-contents): Skip if older than the builtin or installed version. (package-menu-describe-package): Fix last change. (package-list-unversioned): New var. (package-menu--generate): Use it. * lisp/Makefile.in (autoloads): Set autoload-builtin-package-versions. * lisp/startup.el (package--builtin-versions): New var. (package-subdirectory-regexp): Remove. (package--description-file): Hard code its value instead. * lisp/emacs-lisp/autoload.el: Manage package--builtin-versions. (autoload--insert-text, autoload--insert-cookie-text): New functions. (autoload-builtin-package-versions): New variable. (autoload-generate-file-autoloads): Use them. Remove the list of autoloaded functions/macros from the (autoload...) comments.
* * lisp/emacs-lisp/package.el: Don't recompute dir. Use pkg-descs more.Stefan Monnier2013-06-131-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (package-desc): Add `dir' field. (package-desc-full-name): New function. (package-load-descriptor): Combine the two arguments. Don't use `load'. (package-maybe-load-descriptor): Remove. (package-load-all-descriptors): Just call package-load-descriptor. (package--disabled-p): New function. (package-desc-vers, package-desc-doc): Remove aliases. (package--dir): Remove function. (package-activate): Check if a package is disabled. (package-process-define-package): New function, extracted from define-package. (define-package): Turn into a place holder. (package-unpack-single, package-tar-file-info): Use package--description-file. (package-compute-transaction): Use package--disabled-p. (package-download-transaction): Don't call package-maybe-load-descriptor since they're all loaded anyway. (package-install): Change argument to be a pkg-desc. (package-delete): Use a single pkg-desc argument. (describe-package-1): Use package-desc-dir instead of package--dir. Use package-desc property instead of package-symbol. (package-install-button-action): Adjust accordingly. (package--push): Rewrite. (package-menu--print-info): Adjust accordingly. Change the ID format to be a pkg-desc. (package-menu-describe-package, package-menu-get-status) (package-menu--find-upgrades, package-menu-mark-upgrades) (package-menu-execute, package-menu--name-predicate): Adjust accordingly. * lisp/startup.el (package--description-file): New function. (command-line): Use it. * lisp/emacs-lisp/package-x.el (package-upload-buffer-internal): Use package-desc-version.
* tty-handle-args fix for bug#14608Glenn Morris2013-06-131-1/+1
| | | | * startup.el (tty-handle-args): Don't just discard "--" and anything after.
* Remove some code duplication in startup.el Glenn Morris2013-04-231-49/+20
| | | | | | | | | | "If keys have their default meanings, use precomputed string to save lots of time" implies substitute-command-keys was slow 20+ years ago when this was originally written. But we were accidentally using the "slow" branch for 5 years and no-one complained about speed (bug#13970). * lisp/startup.el (normal-no-mouse-startup-screen, normal-about-screen): Remove venerable code attempting to avoid substitute-command-keys.
* startup.el (normal-no-mouse-startup-screen): Bug fix, the default key ↵Xue Fuqiao2013-04-211-1/+1
| | | | binding for C-h C-o'. (Bug#13970)
* Fix command-line-normalize-file-name for DOS/Windows file names.Eli Zaretskii2013-03-161-6/+10
| | | | | | | lisp/startup.el (command-line-normalize-file-name): Fix handling of backslashes in DOS and Windows file names. Reported by Xue Fuqiao <xfq.free@gmail.com> in http://lists.gnu.org/archive/html/help-gnu-emacs/2013-03/msg00245.html.
* Make S-SPC scroll in the opposite direction to SPCGlenn Morris2013-02-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | * lisp/calc/calc-graph.el (calc-graph-show-dumb): * lisp/calendar/calendar.el (calendar-mode-map): * lisp/cus-edit.el (custom-mode-map): * lisp/ehelp.el (electric-help-map): * lisp/emulation/vip.el (vip-mode-map): * lisp/epa.el (epa-key-list-mode-map): * lisp/info.el (Info-mode-map): * lisp/mail/rmail.el (rmail-mode-map): * lisp/mail/rmailsum.el (rmail-summary-mode-map): * lisp/man.el (Man-mode-map): * lisp/net/newst-plainview.el (newsticker-mode-map): * lisp/progmodes/cpp.el (cpp-edit-mode-map): * lisp/progmodes/grep.el (grep-mode-map): * lisp/progmodes/idlw-help.el (idlwave-help-mode-map): * lisp/simple.el (special-mode-map): * lisp/startup.el (splash-screen-keymap): * lisp/view.el (view-mode-map): Make S-SPC scroll in the opposite sense to SPC. Fixes: debbugs:2145
* * lisp/startup.el (command-line): If simple.el is missing,Glenn Morris2013-02-051-4/+13
| | | | test and warn about for some possible causes.
* Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.caPaul Eggert2013-01-021-1/+2
|\
| * Update copyright notices for 2013.Paul Eggert2013-01-011-1/+2
| |
* | Allow function as value of initial-buffer-choice (Bug#13251).Constantin Kulikov2012-12-241-8/+14
| | | | | | | | | | | | | | | | | | * startup.el (initial-buffer-choice): Allow function as value (Bug#13251). (command-line-1): Handle case where initial-buffer-choice specifies a function. * server.el (server-execute): Handle case where initial-buffer-choice specifies a function.
* | * startup.el (fancy-startup-tail): Add a clickable link.Kim F. Storm2012-12-011-3/+4
| |
* | * startup.el (fancy-startup-tail): Improve the message about auto-save files.Chong Yidong2012-12-011-21/+17
|/ | | | Fixes: debbugs:2176
* Fix last change.Chong Yidong2012-10-291-3/+2
| | | | | | | * lisp/startup.el (fancy-about-screen): Don't message at all. (startup-echo-area-message): Revert last change. Fixes: debbugs:12680
* Avoid a misleading message on C-h C-a.Chong Yidong2012-10-291-3/+3
| | | | | | | * lisp/startup.el (startup-echo-area-message): New arg. (fancy-about-screen): Avoid a misleading message. Fixes: debbugs:12680
* Make unused variable font-list-limit obsolete, and move it out of C.Chong Yidong2012-10-231-2/+0
| | | | | | | | | | | * display.texi (Font Lookup): Remove font-list-limit. * lisp/startup.el (command-line): * lisp/cus-start.el: Don't refer to font-list-limit. * lisp/faces.el (font-list-limit): Define as an obsolete variable. * xfaces.c (Vfont_list_limit): Move unused variable to faces.el.
* Merge from trunkDaniel Colascione2012-10-071-3/+6
|\
| * Update docs for a bunch of 24.3 changes.Chong Yidong2012-09-301-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/killing.texi (Rectangles): Document copy-rectangle-as-kill. * doc/emacs/search.texi (Special Isearch): Document the lax space search feature and M-s SPC. (Regexp Search): Move main search-whitespace-regexp description to Special Isearch. (Replace): Document replace-lax-whitespace. * doc/emacs/basic.texi (Position Info): Document C-u M-=. (Moving Point): Document move-to-column. * doc/emacs/display.texi (Useless Whitespace): Add delete-trailing-lines. * doc/emacs/misc.texi (emacsclient Options): Document the effect of initial-buffer-choice on client frames. Document server-auth-dir. Do not document server-host, which is bad security practice. * doc/emacs/building.texi (Lisp Libraries): Docstring lookups can trigger autoloading. Document help-enable-auto-load. * doc/emacs/mini.texi (Yes or No Prompts): New node. * doc/emacs/ack.texi (Acknowledgments): Remove obsolete packages. * doc/lispref/commands.texi (Click Events): Define "mouse position list". Remove mention of unimplemented horizontal scroll bars. (Drag Events, Motion Events): Refer to "mouse position list". (Accessing Mouse): Document posnp. * doc/lispref/errors.texi (Standard Errors): Tweak arith-error description. Tweak markup. Remove domain-error and friends, which seem to be unused after the floating-point code revamp. * doc/lispref/functions.texi (Obsolete Functions): Obsolescence also affects documentation commands. Various clarifications. (Declare Form): New node. * doc/lispref/loading.texi (Autoload): * doc/lispref/help.texi (Documentation Basics): The special sequences can trigger autoloading. * doc/lispref/macros.texi (Defining Macros): Move description of `declare' to Declare Form node. * doc/lispref/numbers.texi (Integer Basics): Copyedits. (Float Basics): Consider IEEE floating point always available. (Random Numbers): Document actual limits. (Arithmetic Operations): Clarify division by zero. Don't mention the machine-independence of negative division since it does not happen in practice. * doc/lispref/os.texi (Idle Timers): Minor clarifications. (User Identification): Add system-users and system-groups. * doc/lispref/strings.texi (String Basics): Copyedits. * lisp/minibuffer.el (minibuffer-local-filename-syntax): Doc fix. * lisp/server.el (server-host): Document the security implications. (server-auth-key): Doc fix. * lisp/startup.el (initial-buffer-choice): Doc fix. * src/fns.c (Frandom): Doc fix.
| * * lisp/startup.el (command-line-ns-option-alist): Add -g and --geometry.Jan Djärv2012-09-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (read_integer, XParseGeometry): Moved from w32xfns.c. (Fx_parse_geometry): If there is a space in string, call Qns_parse_geometry, otherwise do as on other terms. * src/w32xfns.c (read_integer, XParseGeometry): Move to frame.c. * src/nsfns.m (XParseGeometry): Remove. (Fx_create_frame): Call x_set_offset to correctly interpret top_pos in geometry. Fixes: debbugs:12368
* | Merge from trunkDaniel Colascione2012-09-171-11/+16
|\ \ | |/
| * Update docstrings and comments to use "init file" terminology.Chong Yidong2012-09-171-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes. * comint.el (comint-prompt-read-only): * custom.el (defcustom): * hi-lock.el (hi-lock-mode): * ibuffer.el (ibuffer-formats): * ielm.el (ielm-prompt-read-only): * novice.el (disable-command): * saveplace.el (toggle-save-place): * speedbar.el (speedbar-supported-extension-expressions): * startup.el (auto-save-list-file-prefix, init-file-user) (after-init-hook, inhibit-startup-echo-area-message): * strokes.el (strokes-help): * time-stamp.el (time-stamp): * calendar/calendar.el (calendar, diary-file): * calendar/diary-lib.el (diary-mail-entries, diary) (diary-list-entries-hook): * calendar/holidays.el (holidays, calendar-holidays): * calendar/lunar.el (lunar-phases): * calendar/solar.el (sunrise-sunset): * emulation/edt.el (edt-load-keys): * emulation/viper.el (viper-mode): * eshell/em-alias.el (eshell-command-aliases-list): * eshell/esh-util.el (eshell-convert-numeric-arguments): * international/ogonek.el (ogonek-information): * net/tramp-cmds.el (tramp-bug): * net/quickurl.el (quickurl-reread-hook-postfix): * play/decipher.el (decipher-font-lock-keywords): * progmodes/cc-styles.el (c-set-style): * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern): * progmodes/inf-lisp.el (inferior-lisp-prompt): * progmodes/octave-mod.el (octave-mode): * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password): * progmodes/verilog-mode.el (verilog-read-defines): * textmodes/two-column.el (2C-mode): Likewise.
* | Detect window-system from display nameDaniel Colascione2012-09-171-1/+2
|/
* Fix displaying the user name in error message about no home directory.Eli Zaretskii2012-07-231-1/+3
| | | | | | | | lisp/startup.el (command-line): Don't display an empty user name in the error message about non-existent home directory, when init-file-user was set to an empty string. See http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-07/msg00835.html for the details and context.
* Fix display of Hebrew tutorial title on splash screen.Eli Zaretskii2012-07-201-1/+9
| | | | | | | | | lisp/startup.el (fancy-startup-text): Read the whole tutorial, not just its first 256 bytes. Prevents gibberish in display of the tutorial title. etc/tutorials/TUTORIAL.he: Make the first sentence display correctly in a left-to-right paragraph, such as what is shown on the fancy splash screen, by using directional control characters.
* Further GV/CL cleanups.Stefan Monnier2012-06-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/gv.el (gv-get): Autoload functions to find their gv-expander. (gv--defun-declaration): New function. (defun-declarations-alist): Use it. (gv-define-modify-macro, gv-pushnew!, gv-inc!, gv-dec!): Remove. (gv-place): Autoload. * lisp/emacs-lisp/cl.el (cl--dotimes, cl--dolist): Remember subr.el's original definition of dotimes and dolist. * lisp/emacs-lisp/cl-macs.el (cl-expr-access-order): Remove unused. (cl-dolist, cl-dotimes): Use `dolist' and `dotimes'. * lisp/emacs-lisp/cl-lib.el: Move gv handlers from cl-macs to here. (cl-fifth, cl-sixth, cl-seventh, cl-eighth) (cl-ninth, cl-tenth): Move gv handler to the function's definition. * lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-get, cl-getf): Move gv handler to the function's definition. * lisp/Makefile.in (COMPILE_FIRST): Re-order to speed it up by about 50%. * lisp/window.el: * lisp/files.el: * lisp/faces.el: * lisp/env.el: Don't use CL.
* Tweak startup image choice logic.Chong Yidong2012-06-111-1/+2
| | | | | * startup.el (fancy-splash-head): Use splash.svg even if librsvg is uninstalled, if imagemagick is installed.
* Clean up scoping rule of predefined single-word vars.Stefan Monnier2012-06-081-5/+4
| | | | | | | | | | | | * lisp/startup.el (argv, argi): Make lexically scoped. * lisp/emacs-lisp/float-sup.el (pi): Use internal-make-var-non-special. * lisp/emacs-lisp/cl-macs.el: Use lexical-binding. Rename cl-bind-* to cl--bind-*. * lisp/files.el: Don't require `cl' since it doesn't use it. * lisp/emacs-lisp/pcase.el, lisp/emacs-lisp/macroexp.el: Add coding cookie. * src/eval.c (Fmake_var_non_special): New primitive. (syms_of_eval): Defsubr it. * src/lread.c (syms_of_lread): Mark `values' as lexically scoped.
* Fix application of menu-bar-mode etc. by X resources.Chong Yidong2012-04-271-26/+28
| | | | | | | | | | * lisp/startup.el (x-apply-session-resources): New function. * lisp/term/ns-win.el (ns-initialize-window-system): * lisp/term/w32-win.el (w32-initialize-window-system): * lisp/term/x-win.el (x-initialize-window-system): Use it to properly set menu-bar-mode and other vars from X resources, even if the initial frame is not a window-system frame (Bug#2299).
* Merge changes from emacs-24 branchChong Yidong2012-04-271-1/+1
|\
| * * lisp/startup.el: Fix typo.Chong Yidong2012-04-201-1/+1
| |
* | Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.orgGlenn Morris2012-04-131-3/+2
|\ \ | |/
| * * lisp/startup.el (command-line-1): Inhibit splash from daemon.Stefan Monnier2012-04-101-3/+2
| | | | | | | | Fixes: debbugs:10996
* | * startup.el (command-line): Remove support for font-lock-face-attributes.Chong Yidong2012-04-111-32/+0
| |
* | Look for leim-list.el files in fewer places at startupGlenn Morris2012-04-081-3/+10
|/ | | | | | | * lisp/startup.el (normal-top-level): Don't look for leim-list.el in places where it will not be found. Fixes: debbugs:910
* * lisp/startup.el (mail-host-address): Doc fix.Glenn Morris2012-03-261-1/+3
|
* Small edits for lispref/os.texiGlenn Morris2012-03-251-0/+9
| | | | | | | | | * doc/lispref/os.texi (Startup Summary): Copyedits. Fix startup screen logic. (Init File): Copyedits. (Command-Line Arguments): Copyedits. Do not mention argv alias. * lisp/startup.el (normal-top-level, command-line, command-line-1): Give them doc strings.
* * startup.el (command-line): Fix values recognized by cursorBlink resource.Chong Yidong2012-01-151-1/+1
|
* * startup.el (command-line): Fix X resource class for cursorColor.Chong Yidong2012-01-141-1/+1
|
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-131-1/+1
|
* Change scroll-up/down bindings to Emacs 24's scroll-*-command.Chong Yidong2011-10-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | * cus-edit.el (custom-mode-map): * epa.el (epa-key-list-mode-map): * man.el (Man-mode-map): * startup.el (splash-screen-keymap): * simple.el (special-mode-map): Use scroll-up-command and scroll-down-command. * progmodes/idlw-help.el (idlwave-help-mode-map): * progmodes/ebrowse.el (ebrowse-electric-position-mode-map): * net/newst-plainview.el (newsticker-mode-map): * emulation/ws-mode.el (wordstar-mode-map): * emulation/vi.el (vi-com-map): * calc/calc-graph.el (calc-graph-show-dumb): * term/sun.el (terminal-init-sun): * term/ns-win.el (global-map): * progmodes/grep.el (grep-mode-map): * progmodes/ebrowse.el (ebrowse-electric-list-mode-map): * mail/rmail.el (rmail-mode-map): * progmodes/cpp.el (cpp-edit-mode-map): Likewise.
* Insert initial-scratch-message before displaying *scratch*. (Bug#9636)Martin Rudalics2011-09-301-9/+12
| | | | | | * startup.el (command-line-1): Fix last fix by inserting initial-scratch-message into *scratch* before displaying it. (Bug#9626) and (Bug#9636)
* In command-line-1 insert initial-scratch-message before markers (Bug#9605).Martin Rudalics2011-09-291-1/+4
| | | | | | * startup.el (command-line-1): Use insert-before-markers when inserting initial-scratch-message. (Bug#9605) * help.el (help-window): Remove variable.
* * startup.el (normal-top-level-add-subdirs-to-load-path): Doc fix (Bug#9274).Chong Yidong2011-08-201-1/+1
|
* lisp/startup.el (argi): Declare as global variable (bug#9275).Juanma Barranquero2011-08-121-0/+5
|
* (initial-buffer-choice): Don't mention the `none' selection, which is ↵Lars Magne Ingebrigtsen2011-07-141-4/+2
| | | | against policy.
* * startup.el (initial-buffer-choice): Add `none' as a choiceLars Magne Ingebrigtsen2011-07-131-3/+6
| | | | Fixes: debbugs:6234
* Fix last change.Chong Yidong2011-07-091-1/+1
|