1. 30 Mar, 2011 1 commit
  2. 24 Mar, 2011 1 commit
    • Stefan Monnier's avatar
      Fix C-M-x in lexbind mode. Misc tweaks. · 06788a55
      Stefan Monnier authored
      * lisp/startup.el: Convert to lexical-binding.  Mark unused arguments.
      (command-line-1): Get rid of the "cl1-" prefix now that we use lexical
      scoping instead.
      * lisp/emacs-lisp/float-sup.el (pi): Leave it lexically scoped.
      * lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): New fun.
      (eval-last-sexp-1): Use eval-sexp-add-defvars.
      * lisp/emacs-lisp/edebug.el (edebug-eval-defun): Use eval-sexp-add-defvars.
      * lisp/emacs-lisp/cconv.el (cconv--analyse-function):
      Fix `report-error/log-warning' mixup.
      06788a55
  3. 19 Mar, 2011 1 commit
    • Chong Yidong's avatar
      Fix tar package handling, and clean up package-subdirectory-regexp usage. · 4525ce3e
      Chong Yidong authored
      * lisp/startup.el (package-subdirectory-regexp): Move from package.el.
      Omit \\` and \\', and let callers add them.
      
      * lisp/emacs-lisp/package.el (package-strip-version)
      (package-load-all-descriptors): Add \\` and \\' to
      package-subdirectory-regexp before using it.
      (package-untar-buffer): New arg DIR; ensure that file untars only
      into this expected directory.  Remove superfluous delete-region.
      (package-unpack): Caller changed.
      (package-tar-file-info): Use package-subdirectory-regexp.
      4525ce3e
  4. 16 Mar, 2011 2 commits
    • Stefan Monnier's avatar
      Remove bytecomp- prefix, plus misc changes. · ca105506
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Make it work to
      inline lexbind interpreted functions into lexbind code.
      (bytedecomp-bytes): Not a dynamic var any more.
      (disassemble-offset): Get the bytes via an argument instead.
      (byte-decompile-bytecode-1): Use push.
      * lisp/emacs-lisp/bytecomp.el: Remove the bytecomp- prefix now that we use
      lexical-binding.
      (byte-compile-outbuffer): Rename from bytecomp-outbuffer.
      * lisp/emacs-lisp/cl-macs.el (load-time-value):
      * lisp/emacs-lisp/cl.el (cl-compiling-file): Adjust to new name.
      * lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates):
      Add byte-code-function-p.
      (pcase--u1): Remove left-over code from early development.
      Fix case of variable shadowing in guards and predicates.
      (pcase--u1): Add a new `let' pattern.
      * src/image.c (parse_image_spec): Use Ffunctionp.
      * src/lisp.h: Declare Ffunctionp.
      ca105506
    • Juanma Barranquero's avatar
      Add warning for obsolete _emacs init file. · 8a05b668
      Juanma Barranquero authored
      * lisp/startup.el (command-line): Warn the user that _emacs is deprecated.
      * etc/NEWS: Document warning about _emacs.
      8a05b668
  5. 15 Mar, 2011 1 commit
  6. 25 Jan, 2011 1 commit
  7. 20 Jan, 2011 1 commit
    • Stefan Monnier's avatar
      Don't mess with *temp*. · 8dabbfd6
      Stefan Monnier authored
      * lisp/obsolete/spell.el: Move from textmodes/spell.el.
      (spell-string):
      * lisp/term.el (term-read-input-ring):
      * lisp/startup.el (display-startup-echo-area-message):
      * lisp/progmodes/antlr-mode.el (antlr-directory-dependencies):
      * lisp/gnus/message.el (message-mailer-swallows-blank-line):
      * lisp/comint.el (comint-read-input-ring): Use with-temp-buffer.
      * lisp/international/mule.el (ctext-pre-write-conversion):
      Don't hardcode point-min==1.
      * lisp/gnus/mm-util.el (mm-find-buffer-file-coding-system): Don't forget to
      kill the temp buffer.
      8dabbfd6
  8. 16 Jan, 2011 1 commit
  9. 02 Jan, 2011 1 commit
  10. 03 Dec, 2010 1 commit
    • Glenn Morris's avatar
      startup.el trivia. · ad961a00
      Glenn Morris authored
      * lisp/startup.el (normal-top-level-add-subdirs-to-load-path): Simplify.
      (normal-top-level-add-to-load-path, tty-handle-args):
      Convert comments to basic doc-strings.
      ad961a00
  11. 27 Nov, 2010 1 commit
    • Glenn Morris's avatar
      startup.el trivia. · 0b839457
      Glenn Morris authored
      * lisp/startup.el (package-enable-at-startup, package-initialize):
      Remove unnecessary declarations.  (I forgot about refreshing
      ldefs-boot in such cases.)
      0b839457
  12. 21 Nov, 2010 1 commit
  13. 14 Nov, 2010 1 commit
  14. 10 Nov, 2010 1 commit
  15. 01 Nov, 2010 1 commit
  16. 31 Oct, 2010 1 commit
  17. 26 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Remove ns-handle-* functions that duplicate x-handle-*. · d7d8c62a
      Glenn Morris authored
      * lisp/term/ns-win.el (ns-version-string): Remove unused declaration.
      (ns-invocation-args): Change to x-invocation-args.
      (ns-handle-switch, ns-handle-numeric-switch, ns-handle-iconic)
      (ns-handle-name-switch, ns-ignore-2-arg): Remove.
      (ns-handle-nxopen, ns-handle-nxopentemp, ns-ignore-1-arg):
      Use x-invocation-args instead of ns-invocation-args.
      (ns-initialize-window-system, handle-args-function-alist):
      Use x-handle-args instead of ns-handle-args.
      * lisp/term/common-win.el (x-handle-args): Also handle nextstep arguments.
      * lisp/startup.el (command-line-ns-option-alist): Replace
      ns-handle-name-switch, ns-handle-switch, ns-handle-numeric-switch,
      ns-handle-iconic with the x- equivalents.
      d7d8c62a
  18. 24 Oct, 2010 1 commit
    • Chong Yidong's avatar
      Avoid inline image variables for checkboxes (Bug#7222). · 01898dc2
      Chong Yidong authored
      * etc/images/checked.xpm:
      * etc/images/unchecked.xpm: New images.
      
      * image.el (image-checkbox-checked, image-checkbox-unchecked):
      Deleted (Bug#7222).
      
      * startup.el (fancy-startup-tail): Instead of using inline images,
      refer to image files from etc/.
      
      * wid-edit.el (checkbox): Likewise.
      (widget-image-find): Center image specs.
      01898dc2
  19. 11 Oct, 2010 1 commit
    • Chong Yidong's avatar
      More cleanups and minor fixes for Customize. · 05d22d02
      Chong Yidong authored
      * cus-edit.el (custom-face-edit-fix-value): Use
      custom-fix-face-spec.
      
      * custom.el (custom-push-theme): Cleanup (use cond).
      (disable-theme): Recompute the saved-face property.
      (custom-theme-recalc-face): Follow face alias before setting prop.
      
      * custom.el (custom-fix-face-spec): New function; code moved from
      custom-face-edit-fix-value.
      (custom-push-theme): Use it when checking if a face has been
      changed outside customize.
      (custom-available-themes): New function.
      (load-theme): Use it.
      
      * image.el (image-checkbox-checked, image-checkbox-unchecked): New
      variables, containing checkbox images.
      
      * startup.el (fancy-startup-tail):
      * wid-edit.el (checkbox): Use them.
      05d22d02
  20. 29 Aug, 2010 1 commit
  21. 22 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Make obsolete --unibyte argument do nothing (Bug#6886). · 198a7a97
      Chong Yidong authored
      * src/emacs.c (main): Remove --unibyte handling (Bug#6886).
      
      * lisp/startup.el (command-line-1): Issue warning for ignored arguments
      --unibyte, etc (Bug#6886).
      
      * doc/lispref/nonascii.texi (Text Representations):
      * doc/lispref/loading.texi (Loading Non-ASCII):
      * doc/lispref/compile.texi (Byte Compilation): Don't mention obsolete
      --unibyte command-line argument.
      198a7a97
  22. 30 Jun, 2010 1 commit
  23. 27 Jun, 2010 2 commits
    • Chong Yidong's avatar
    • Chong Yidong's avatar
      Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249). · 6431f2e6
      Chong Yidong authored
      Don't add entries for `menu-bar-lines' and `tool-bar-lines' to
      `default-frame-alist' and `initial-frame-alist' at startup.
      Instead, use X resources to update the `menu-bar-mode' and
      `tool-bar-mode' variables at startup, and use them as defaults during
      frame creation.
      
      * lisp/frame.el (frame-notice-user-settings): Don't change
      default-frame-alist based on menu-bar-mode and tool-bar-mode, or
      vice versa.
      
      * lisp/menu-bar.el (menu-bar-mode):
      * lisp/tool-bar.el (tool-bar-mode): Don't change default-frame-alist.
      Set init-value to t.
      
      * lisp/startup.el (command-line): Use X resources to set the value of
      menu-bar-mode and tool-bar-mode, before calling frame-initialize.
      
      * src/frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
      
      * src/w32fns.c (Fx_create_frame):
      * src/nsfns.m (Fx_create_frame): Likewise.
      
      * src/xfns.c (Fx_create_frame): Don't consult X resouces when setting
      menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
      tool-bar-mode, which are now set using these X resources at
      startup, to determine the defaults.
      6431f2e6
  24. 17 Jun, 2010 1 commit
    • Chong Yidong's avatar
      Merge package.el, written by Tom Tromey <tromey@redhat.com>. · 44198b6e
      Chong Yidong authored
      Changes relative to version 0.9 of package.el are listed below:
      
      * emacs-lisp/package-x.el: New file.  Package uploading
      functionality split out from package.el.
      
      * emacs-lisp/package.el (package-archive-base): Point to
      elpa.gnu.org.
      (package-enable, package-load-list): New defcustoms.
      (package-user-dir, package-directory-list): Turn into defcustoms.
      Don't include package-user-dir in package-directory-list.
      (package--builtins-base): Don't include Emacs as a "package".
      (package-subdirectory-regexp): New var.
      (package-load-all-descriptors, package-compute-transaction)
      (package-download-transaction): Obey package-load-list.
      (package-activate-1): Rename from package-do-activate.
      (package-list-packages-internal): Check package-load-list.
      (package-load-descriptor, package-generate-autoloads)
      (package-unpack, package-unpack-single)
      (package--read-archive-file, package-delete): Use
      expand-file-name.
      
      * startup.el (command-line): Load packages after reading init
      file.
      44198b6e
  25. 21 Feb, 2010 1 commit
  26. 05 Feb, 2010 1 commit
  27. 16 Jan, 2010 1 commit
    • Chong Yidong's avatar
      Command line arg processing fix (Bug#5392) · 4fe22cdf
      Chong Yidong authored
      * 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).
      4fe22cdf
  28. 13 Jan, 2010 1 commit
  29. 09 Jan, 2010 1 commit
  30. 29 Nov, 2009 1 commit
  31. 06 Nov, 2009 1 commit
    • Dan Nicolaescu's avatar
      * textmodes/tex-mode.el (tex-alt-dvi-print-command) · 1e8780b1
      Dan Nicolaescu authored
      (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.
      1e8780b1
  32. 30 Oct, 2009 1 commit
    • Dan Nicolaescu's avatar
      * puresize.h (BASE_PURESIZE): Increase to 1470000. · ca0a881a
      Dan Nicolaescu authored
      * 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.
      ca0a881a
  33. 26 Oct, 2009 1 commit
    • Dan Nicolaescu's avatar
      * textmodes/tex-mode.el (tex-dvi-view-command) · a7610c52
      Dan Nicolaescu authored
      (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.
      a7610c52
  34. 17 Sep, 2009 1 commit
    • Juanma Barranquero's avatar
      The --quick command line option now ignores X resources and Registry settings. · 8686ac71
      Juanma Barranquero authored
      * 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.
      8686ac71
  35. 16 Sep, 2009 1 commit
  36. 15 Sep, 2009 2 commits
  37. 13 Sep, 2009 1 commit
    • Stefan Monnier's avatar
      * mail/sendmail.el (send-mail-function): · adba8116
      Stefan Monnier authored
      * 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.
      adba8116