1. 10 Nov, 2010 1 commit
  2. 08 Nov, 2010 2 commits
  3. 07 Nov, 2010 4 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/smie.el: New package. · 7f925a67
      Stefan Monnier authored
      7f925a67
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/smie.el: Simplify the smie-rules-function return values. · 674728d4
      Stefan Monnier authored
      (smie-precs->prec2): Rename from smie-precs-precedence-table.
      (smie-bnf->prec2): Rename from smie-bnf-precedence-table.
      (smie-prec2->grammar): Rename from smie-prec2-levels.
      (smie-grammar): Rename from smie-op-levels.
      (smie-indent--hanging-p): Rename from smie-hanging-p.
      (smie-rule-hanging-p): New alias.
      (smie-indent--bolp): Rename from smie-bolp.
      (smie-indent--hanging-p): New alias.
      (smie--token): New dynamically bound variable.
      (smie-indent--parent): New function.
      (smie-rule-parent-p): Use it; rename from smie-parent-p.
      (smie-rule-next-p): Rename from smie-next-p.
      (smie-rule-prev-p): Rename from smie-prev-p.
      (smie-rule-sibling-p, smie-rule-parent)
      (smie-indent--separator-outdent, smie-rule-separator): New functions.
      (smie-rule-separator-outdent): New var.
      (smie-indent--rule): Merge with smie-indent--column.
      (smie-indent-forward-token, smie-indent-backward-token):
      Also recognize close parens.
      (smie-indent-keyword): Don't use smie-indent--column any more.
      (smie-indent-after-keyword): Ignore closers by default.
      (smie-indent-line): Use with-demoted-errors.
      * lisp/progmodes/octave-mod.el (octave-smie-grammar):
      Rename from octave-smie-op-levels.
      (octave-smie-rules): Adjust to new behavior.
      * lisp/progmodes/prolog.el (prolog-smie-grammar):
      Rename from prolog-smie-op-levels.
      674728d4
    • Glenn Morris's avatar
      Minor checkdoc simplifications. · 76fc02b6
      Glenn Morris authored
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      Use end-of-line N.
      (checkdoc-this-string-valid-engine, checkdoc-file-comments-engine):
      Use line-end-position.
      76fc02b6
    • Glenn Morris's avatar
      Replace end-of-line, save-excursion etc with point-at-eol, point-at-bol. · e180ab9f
      Glenn Morris authored
      * lisp/mh-e/mh-seq.el (mh-read-msg-list): Use point-at-eol.
      
      * lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-show-infos)
      (gnus-bookmark-kill-line): Use point-at-eol.
      
      * lisp/cedet/ede/proj-elisp.el (ede-proj-flush-autoconf): Use point-at-bol.
      
      * lisp/emacs-lisp/chart.el (chart-zap-chars):
      * lisp/play/decipher.el (decipher-set-map):
      * lisp/progmodes/ada-mode.el (ada-get-current-indent)
      (ada-search-ignore-string-comment, ada-tab-hard, ada-untab-hard):
      * lisp/progmodes/ada-prj.el (ada-prj-load-from-file, ada-prj-display-help):
      * lisp/progmodes/ada-xref.el (ada-initialize-runtime-library)
      (ada-get-all-references):
      * lisp/progmodes/cperl-mode.el (cperl-electric-paren)
      (cperl-electric-rparen, cperl-electric-keyword, cperl-electric-else)
      (cperl-linefeed, cperl-sniff-for-indent, cperl-to-comment-or-eol)
      (cperl-find-pods-heres, cperl-indent-exp, cperl-fix-line-spacing)
      (cperl-word-at-point-hard):
      * lisp/progmodes/idlw-shell.el (idlwave-shell-move-or-history)
      (idlwave-shell-filename-string, idlwave-shell-batch-command)
      (idlwave-shell-display-line):
      * lisp/progmodes/idlwave.el (idlwave-show-begin, idlwave-fill-paragraph)
      (idlwave-calc-hanging-indent, idlwave-auto-fill, idlwave-template):
      * lisp/progmodes/js.el (js--re-search-forward-inner)
      (js--re-search-backward-inner):
      * lisp/progmodes/vhdl-mode.el (vhdl-align-region-1, vhdl-align-region-2)
      (vhdl-fix-clause, vhdl-compose-configuration-architecture):
      * lisp/progmodes/ruby-mode.el (ruby-parse-partial, eval-when-compile):
      * lisp/textmodes/flyspell.el (flyspell-process-localwords):
      * lisp/textmodes/ispell.el (ispell-buffer-local-parsing)
      (ispell-buffer-local-dict, ispell-buffer-local-words):
      Use point-at-bol and point-at-eol.
      e180ab9f
  4. 06 Nov, 2010 4 commits
    • Glenn Morris's avatar
      Use line-end-position rather than end-of-line, etc. · 5ed619e0
      Glenn Morris authored
      * textmodes/texnfo-upd.el (texinfo-start-menu-description)
      (texinfo-update-menu-region-beginning, texinfo-menu-first-node)
      (texinfo-delete-existing-pointers, texinfo-find-pointer)
      (texinfo-clean-up-node-line, texinfo-insert-node-lines)
      (texinfo-multiple-files-update):
      * textmodes/table.el (table--probe-cell-left-up)
      (table--probe-cell-right-bottom):
      * textmodes/picture.el (picture-tab-search):
      * textmodes/page-ext.el (pages-copy-header-and-position)
      (pages-directory-for-addresses):
      * progmodes/vera-mode.el (vera-get-offset):
      * progmodes/simula.el (simula-calculate-indent):
      * progmodes/python.el (python-pdbtrack-overlay-arrow):
      * progmodes/prolog.el (end-of-prolog-clause):
      * progmodes/perl-mode.el (perl-calculate-indent, perl-indent-exp):
      * progmodes/icon.el (indent-icon-exp):
      * progmodes/etags.el (tag-re-match-p):
      * progmodes/ebrowse.el (ebrowse-show-file-name-at-point):
      * progmodes/ebnf2ps.el (ebnf-begin-file):
      * progmodes/dcl-mode.el (dcl-back-to-indentation-1)
      (dcl-save-local-variable):
      * play/life.el (life-setup):
      * play/gametree.el (gametree-looking-at-ply):
      * nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set):
      * mail/sendmail.el (mail-mode-auto-fill):
      * emacs-lisp/lisp-mode.el (calculate-lisp-indent):
      * emacs-lisp/edebug.el (edebug-overlay-arrow):
      * emacs-lisp/checkdoc.el (checkdoc-this-string-valid):
      * woman.el (woman-parse-numeric-value, woman2-TH, woman2-SH)
      (woman-tab-to-tab-stop, WoMan-warn-ignored):
      * type-break.el (type-break-file-keystroke-count):
      * term.el (term-replace-by-expanded-history-before-point)
      (term-skip-prompt, term-extract-string):
      * speedbar.el (speedbar-edit-line, speedbar-expand-line)
      (speedbar-contract-line, speedbar-toggle-line-expansion)
      (speedbar-parse-c-or-c++tag, speedbar-parse-tex-string)
      (speedbar-buffer-revert-buffer, speedbar-highlight-one-tag-line):
      * sort.el (sort-skip-fields):
      * skeleton.el (skeleton-internal-list):
      * simple.el (line-move-finish, line-move-to-column):
      * shell.el (shell-forward-command):
      * misc.el (copy-from-above-command):
      * makesum.el (double-column):
      * ebuff-menu.el (electric-buffer-update-highlight):
      * dired.el (dired-move-to-end-of-filename):
      * dframe.el (dframe-popup-kludge):
      * bookmark.el (bookmark-kill-line, bookmark-bmenu-show-filenames):
      * arc-mode.el (archive-get-lineno):
      Use line-end-position and line-beginning-position.
      
      * net/ange-ftp.el, progmodes/hideif.el, reposition.el:
      Same, but only in comments.
      5ed619e0
    • Glenn Morris's avatar
      Minor eieio-comp changes. · 4e44448f
      Glenn Morris authored
      * lisp/emacs-lisp/eieio-comp.el (byte-compile-file-form-defmethod):
      Use boundp tests to silence compiler.  Update for changed name of
      bytecomp-filename variable.
      4e44448f
    • Glenn Morris's avatar
      Silence elint compilation. · 79d1dabe
      Glenn Morris authored
      * lisp/emacs-lisp/elint.el (elint-init-env): Prefix dynamic local `env'.
      (elint-init-form): Update for above name change.
      79d1dabe
    • Jan Djärv's avatar
      80417b95
  5. 05 Nov, 2010 2 commits
    • Glenn Morris's avatar
      Silence cl-macs.el compilation. · 215461a8
      Glenn Morris authored
      * lisp/emacs-lisp/cl-macs.el (loop): Give local variable args a prefix.
      (cl-parse-loop-clause, cl-loop-handle-accum): Update for above change.
      215461a8
    • Glenn Morris's avatar
      Silence byte-opt.el compilation. · 17fc58c9
      Glenn Morris authored
      * lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1): Give local
      variables bytes, ptr, op a prefix.
      (disassemble-offset): Update for above change.
      17fc58c9
  6. 03 Nov, 2010 3 commits
    • Chong Yidong's avatar
      * emacs-lisp/package.el (package-unpack): Remove no-op. · 015eea59
      Chong Yidong authored
      (package--builtins, package--dir): Doc fix.
      (package-activate-1, package-activate, package-install)
      (package-compute-transaction): Fix error message.
      (package-delete): Use delete-directory.  Omit system packages.
      (package-initialize): Set package-alist to nil first.
      (package-menu-mark-delete, package-menu-mark-install): Don't add
      symbols that are inconsistent with the package state.
      (package-menu-execute): Perform deletions and installations as
      single batch operations.
      015eea59
    • Glenn Morris's avatar
      Don't be so lax with spelling. · 537b04b9
      Glenn Morris authored
      * lisp/net/dbus.el (dbus-name-owner-changed-handler): Doc fix.
      
      * doc/misc/ediff.texi (Quick Help Commands, Miscellaneous): Spelling fix.
      537b04b9
    • Chong Yidong's avatar
      Separate built-in packages from elpa packages, for efficiency. · 4b99edf2
      Chong Yidong authored
      * emacs-lisp/package.el: Don't put built-in packages in
      package-alist, to avoid loading inefficiencies.
      (package-built-in-p): Make VERSION optional, and treat it as a
      minimum acceptable version.
      (package-activate): Search separately for built-in packages.  Emit
      a warning if a dependency fails.
      (define-package): Handle most common case, where there is no
      obsolete package, first.
      (package-compute-transaction): Print required version in error.
      (package--initialized): New variable.
      (list-packages): Use it.
      (package-initialize): Optional arg NO-ACTIVATE.  Don't put
      built-in packages in packages-alist; keep it separate.  Set
      package--initialized.
      (describe-package): Avoid activating packages as a side-effect.
      Search separately for built-in packages.
      (describe-package-1): Handle the case where an elpa package is
      simultaneously built-in and available/installed.
      (package-installed-p, package--generate-package-list): Search
      separately for built-in packages.
      (package-load-descriptor): Doc fix.
      4b99edf2
  7. 02 Nov, 2010 3 commits
  8. 01 Nov, 2010 2 commits
  9. 31 Oct, 2010 2 commits
  10. 29 Oct, 2010 3 commits
    • Stefan Monnier's avatar
      SMIE: change indent rules format, improve smie-setup. · c4d17d50
      Stefan Monnier authored
      * lisp/emacs-lisp/smie.el (smie-precs-precedence-table)
      (smie-merge-prec2s, smie-bnf-precedence-table, smie-prec2-levels):
      Mark them pure so the tables gets built at compile time.
      (smie-bnf-precedence-table): Store the closer-alist in the table.
      (smie-prec2-levels): Preserve the closer-alist.
      (smie-blink-matching-open): Be more forgiving in case of indentation.
      (smie-hanging-p): Rename from smie-indent--hanging-p.
      (smie-bolp): Rename from smie-indent--bolp.
      (smie--parent, smie--after): New dynamic vars.
      (smie-parent-p, smie-next-p, smie-prev-p): New funs.
      (smie-indent-rules): Remove.
      (smie-indent--offset-rule): Remove fun.
      (smie-rules-function): New var.
      (smie-indent--rule): New fun.
      (smie-indent--offset, smie-indent-keyword, smie-indent-after-keyword)
      (smie-indent-exps): Use it.
      (smie-setup): Setup paren blinking; add keyword args for token
      functions; extract closer-alist from op-levels.
      (smie-indent-debug-log): Remove var.
      (smie-indent-debug): Remove fun.
      * lisp/progmodes/prolog.el (prolog-smie-indent-rules): Remove.
      (prolog-smie-rules): New fun to replace it.
      (prolog-mode-variables): Simplify.
      * lisp/progmodes/octave-mod.el (octave-smie-closer-alist): Remove, now that
      it's setup automatically.
      (octave-smie-indent-rules): Remove.
      (octave-smie-rules): New fun to replace it.
      (octave-mode): Simplify.
      c4d17d50
    • Glenn Morris's avatar
      Remove duplicate Lisp definitions of define-minor-mode variables defined in C. · 9d794026
      Glenn Morris authored
      * lisp/abbrev.el (abbrev-mode):
      * lisp/composite.el (auto-composition-mode):
      * lisp/menu-bar.el (menu-bar-mode):
      * lisp/simple.el (transient-mark-mode):
      * lisp/tool-bar.el (tool-bar-mode): Adjust the define-minor-mode calls so
      that they do not define the associated variables twice.
      * lisp/simple.el (transient-mark-mode): Remove defvar.
      * lisp/composite.el (auto-composition-mode): Make variable auto-buffer-local.
      * lisp/cus-start.el: Add transient-mark-mode, menu-bar-mode, tool-bar-mode.
      Handle multiple groups, and also custom-delayed-init-variables.
      * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
      
      * src/buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
      * src/frame.c (syms_of_frame) <tool-bar-mode>: Move docs here from Lisp.
      9d794026
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/pcase.el (pcase): New `string' and `guard' patterns. · dcc029e0
      Stefan Monnier authored
      (pcase-if): Add one minor optimization.
      (pcase-split-equal): Rename from pcase-split-eq.
      (pcase-split-member): Rename from pcase-split-memq.
      (pcase-u1): Add strings to the member optimization.
      Add `guard' variant of predicates.
      (pcase-q1): Add string patterns.
      dcc029e0
  11. 24 Oct, 2010 3 commits
  12. 22 Oct, 2010 3 commits
    • Glenn Morris's avatar
      Support for systems without floats was removed a decade ago. · 9a0dd02d
      Glenn Morris authored
      * lisp/loadup.el: Unconditionally load float-sup.
      * lisp/paren.el (show-paren-delay):
      * lisp/emacs-lisp/float-sup.el:
      * lisp/emulation/cua-base.el (cua-prefix-override-inhibit-delay):
      * lisp/obsolete/lazy-lock.el (lazy-lock-defer-time, lazy-lock-stealth-nice)
      (lazy-lock-stealth-verbose): Assume float support.
      * lisp/ps-print.el: Assume float support on Emacs.
      * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
      Remove non-float branch.
      
      * lisp/obsolete/lazy-lock.el: Remove leading `*' from defcustom docs.
      9a0dd02d
    • Glenn Morris's avatar
      Small autoloads fix. · 69b55131
      Glenn Morris authored
      * lisp/emacs-lisp/autoload.el (batch-update-autoloads): Update for
      src/Makefile no longer being pre-processed.
      69b55131
    • Stefan Monnier's avatar
  13. 18 Oct, 2010 1 commit
  14. 17 Oct, 2010 1 commit
  15. 12 Oct, 2010 1 commit
    • Juanma Barranquero's avatar
      Fix typos in docstrings, comments and ChangeLogs. · c0943d3d
      Juanma Barranquero authored
      * etc/tutorials/TUTORIAL.es: Fix typos.
      
      * lisp/cedet/semantic/symref/list.el (semantic-symref-list-rename-open-hits):
        Fix typo in message.
        (semantic-symref-list-map-open-hits): Fix typo in docstring.
      
      * lisp/erc/erc-xdcc.el (erc-xdcc-help-text): Fix typo in docstring.
      
      * lisp/gnus/nnmail.el (nnmail-fancy-expiry-targets): Fix typo in docstring.
      
      * lisp/international/mule.el (define-coding-system):
      * lisp/international/titdic-cnv.el (quail-cxterm-package-ext-info):
      * composite.el (compose-region): Fix typo in docstring.
      
      * lisp/org/org-agenda.el (org-prefix-category-length)
        (org-prefix-category-max-length): Fix typos in docstrings.
      
      * src/font.c (Ffont_variation_glyphs):
      * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
      c0943d3d
  16. 10 Oct, 2010 1 commit
    • Dan Nicolaescu's avatar
      Declare and define in one step various mode maps. · a0310a6c
      Dan Nicolaescu authored
      * lisp/shell.el (shell-mode-map):
      * lisp/progmodes/modula2.el (m2-mode-map):
      * lisp/progmodes/inf-lisp.el (inferior-lisp-mode-map):
      * lisp/play/mpuz.el (mpuz-mode-map):
      * lisp/play/landmark.el (lm-mode-map):
      * lisp/play/decipher.el (decipher-mode-map):
      * lisp/play/5x5.el (5x5-mode-map):
      * lisp/net/telnet.el (telnet-mode-map):
      * lisp/net/quickurl.el (quickurl-list-mode-map):
      * lisp/net/mairix.el (mairix-searches-mode-map):
      * lisp/net/eudc-hotlist.el (eudc-hotlist-mode-map):
      * lisp/net/dig.el (dig-mode-map):
      * lisp/mail/mspools.el (mspools-mode-map):
      * lisp/hexl.el (hexl-mode-map):
      * lisp/emulation/ws-mode.el (wordstar-C-k-map, wordstar-mode-map)
      (wordstar-C-o-map, wordstar-C-q-map):
      * lisp/emacs-lisp/edebug.el (edebug-eval-mode-map):
      * lisp/emacs-lisp/chart.el (chart-map):
      * lisp/edmacro.el (edmacro-mode-map):
      * lisp/array.el (array-mode-map): Declare and define in one step.
      
      * lisp/erc/erc-list.el (erc-list-menu-mode-map): Declare and define in one step.
      a0310a6c
  17. 09 Oct, 2010 3 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): · 4c528197
      Stefan Monnier authored
      Use emacs-lisp-mode-syntax-table for the whole function.
      4c528197
    • Glenn Morris's avatar
      Remove lib-src/b2m.c and b2m.pl. · 3fb78d1f
      Glenn Morris authored
      Emacs does not use Babyl files since 23.1, and you can use M-x unrmail.
      
      * msdos/mainmake.v2 (install): Remove b2m.
      
      * lisp/emacs-lisp/authors.el (authors-valid-file-names): Add b2m.c.
      
      * lib-src/b2m.c, lib-src/b2m.pl: Remove files.
      * lib-src/Makefile.in (INSTALLABLES): Remove b2m.
      * lib-src/makefile.w32-in ($(BLD)/b2m.$(O)): Remove.
      
      * doc/emacs/ack.texi (Acknowledgments): No more b2m.c.
      
      * admin/quick-install-emacs (PUBLIC_LIBSRC_BINARIES): Remove b2m.
      
      * INSTALL, make-dist: Remove references to b2m.
      * Makefile.in (MAN_PAGES): Remove b2m.1.
      3fb78d1f
    • Glenn Morris's avatar
      Rename another shadow.el function. · d15f9a2b
      Glenn Morris authored
      * lisp/emacs-lisp/shadow.el (find-emacs-lisp-shadows): Rename it...
      (load-path-shadows-find): ... to this.
      (list-load-path-shadows): Update for above change.
      d15f9a2b
  18. 08 Oct, 2010 1 commit