From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jerome Truong Newsgroups: gmane.emacs.bugs Subject: bug#12692: 24.1; thing-at-point in temp buffer Date: Sat, 20 Oct 2012 13:24:29 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350757476 7262 80.91.229.3 (20 Oct 2012 18:24:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2012 18:24:36 +0000 (UTC) To: 12692@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 20:24:43 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TPdiv-0005cm-VY for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 20:24:38 +0200 Original-Received: from localhost ([::1]:54956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPdio-0003cP-KF for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 14:24:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPdil-0003c3-4O for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 14:24:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPdij-00042R-FV for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 14:24:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPdij-00042A-BF for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 14:24:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TPdkH-0008AN-LJ for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 14:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jerome Truong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Oct 2012 18:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135075753531352 (code B ref -1); Sat, 20 Oct 2012 18:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Oct 2012 18:25:35 +0000 Original-Received: from localhost ([127.0.0.1]:53471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPdjq-00089a-LY for submit@debbugs.gnu.org; Sat, 20 Oct 2012 14:25:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58666) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPdjn-00089L-7c for submit@debbugs.gnu.org; Sat, 20 Oct 2012 14:25:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPdi7-0003sG-Mm for submit@debbugs.gnu.org; Sat, 20 Oct 2012 14:23:49 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:36295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPdi7-0003sC-Ij for submit@debbugs.gnu.org; Sat, 20 Oct 2012 14:23:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPdi6-0003bj-3m for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 14:23:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPdi4-0003ro-1q for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 14:23:46 -0400 Original-Received: from mail-ie0-f169.google.com ([209.85.223.169]:44727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPdi3-0003rh-SO for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 14:23:43 -0400 Original-Received: by mail-ie0-f169.google.com with SMTP id 10so2666959ied.0 for ; Sat, 20 Oct 2012 11:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=jFXXABUAiEWxAmZaYBN+UrZ1FLo9HBBxoYwdapzi5Vc=; b=UO1ujMoQ4fIK6Ergm1cDIy9mkQD2K2tAhP7qqsCIRDoVYxfO8HCL0yfJSX7FoahyHG ofhtPxtYNCYLnQx2dgI7Mjg3u/OdMVKFJjf4XJwORo+pb3DZWZycm555J/FQklT3CSw5 narRirF0bTKEfV2kmHBzaNbSCBJ2Q5J4Fxn/g34CymmWg/UwyTnZXyrYv/DzcfE8yn4o OrRWVZpWDZi/56x+8S7MhUWx2emN65vflMKI/5U3+Ap7j9nq93F2jRGDvoCmUSy+D9U3 qpniJf02X3AkasVQRkPLIbVzkM/MsI9bQG6/dgb1qBwdo9DPg6NsovureTFOMbZHR6vA wztw== Original-Received: by 10.50.36.201 with SMTP id s9mr11986099igj.17.1350757423258; Sat, 20 Oct 2012 11:23:43 -0700 (PDT) Original-Received: from dhcp-09-43.bravo (c-76-17-216-101.hsd1.mn.comcast.net. [76.17.216.101]) by mx.google.com with ESMTPS id gz10sm4437617igc.9.2012.10.20.11.23.42 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 20 Oct 2012 11:23:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65796 Archived-At: Why does the following return the whole string "this.is.an.example": (thing-at-point 'symbol)this.is.an.example ^ | eval at point here but using a temp buffer only returns "this": (let ((type 'symbol) (string "this.is.an.example")) (with-temp-buffer (insert string) (goto-char 1) (let ((thing (thing-at-point type))) (message "%s" thing)))) I.e., the first word delimited by '.' as a delimiter (which i guess is the norm for symbols). In GNU Emacs 24.1.1 (x86_64-apple-darwin11.3.0, NS apple-appkit-1138.32) of 2012-07-15 on Jeromes-MacBook-Pro.local Windowing system distributor `Apple', version 10.3.1138 Configured using: `configure '--prefix=/usr/local/Cellar/emacs/24.1' '--without-dbus' '--enable-locallisppath=/usr/local/share/emacs/site-lisp' '--infodir=/usr/local/Cellar/emacs/24.1/share/info/emacs' '--with-ns' '--disable-ns-self-contained' 'CC=/usr/bin/clang' 'CFLAGS=-Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7' 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-isystem /usr/local/include'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t shell-dirtrack-mode: t paredit-mode: t yas/global-mode: t yas/minor-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-S-n C-S-n C-n C-n C-n C-x o C-p M-b M-d a m e - s a m e - s y n t a x C-n C-n C-n C-n C-n C-n C-e C-x C-e C-p C-p C-p C-p C-p C-p M-b M-b C-, b C-S-n C-S-n C-S-n C-S-n C-S-n C-S-n C-S-n C-n C-n C-x o M-d M-d r e a d - f r o m - w h o l e - s t r i n g C-n C-n C-n C-n C-n C-n C-x C-e C-p C-p C-p C-p C-p C-, b C-S-n C-S-n C-S-n C-S-n C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-p C-p C-p C-p C-p C-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-S-p C-x o M-b M-b M-b M-d M-d M-d C-d C-n C-n C-n C-n C-n C-e C-x C-e C-p C-p C-p C-p C-p C-p M-b M-b M-b M-d M-d M-d M-d s y m b o l C-n C-n C-n C-n C-n C-n C-e C-x C-e C-p C-p C-p C-p C-p M-b M-b M-d M-d M-d t h i s . i s . a n . e x a m p l e C-n C-n C-n C-n C-n C-x C-e C-, b C-x o C-, n C-x b # C-, p C-, b M-x r e p o r < return> Recent messages: "third" nil "nil" nil "nil" ext "ext" this "this" Making completion list... Load-path shadows: /Users/jerometruong/.emacs.d/elpa/json-1.2/json hides /usr/local/Cellar/emacs/24.1/share/emacs/24.1/lisp/json /Users/jerometruong/.emacs.d/elpa/magit-20120805/.dir-locals hides /usr/local/Cellar/emacs/24.1/share/emacs/24.1/lisp/gnus/.dir-locals Features: (tutorial cus-edit cus-start cus-load rfc2104 mailalias smtpmail shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils vc-git jka-compr debug apropos network-stream starttls tls erc-menu erc-join erc-ring erc-networks erc-pcomplete erc-track erc-match erc-button wid-edit erc-fill erc-stamp erc-netsplit erc-goodies erc erc-backend erc-compat mule-util rect ind-util php-mode etags cc-langs speedbar sb-image ezimage dframe help-mode view sgml-mode dired-aux windmove vc-dispatcher vc-svn js json imenu newcomment cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs tramp-sh pcmpl-unix sql ibuf-ext ibuffer dired multi-isearch tramp-cache tramp tramp-compat auth-source gnus-util mm-util mail-prsvr password-cache shell tramp-loaddefs org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete org-list org-faces org-compat org-entities org-macs noutline outline format-spec cal-menu calendar cal-loaddefs paredit ido warnings slime-fancy slime-fontifying-fu slime-package-fu slime-references slime-scratch slime-presentations slime-fuzzy slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-parse slime-repl slime derived easy-mmode pp comint regexp-opt ansi-color ring hyperspec thingatpt browse-url org-install bbdb-loaddefs sms ack-and-a-half-autoloads apache-mode-autoloads bbdb2erc-autoloads dsvn-autoloads full-ack-autoloads ghc-autoloads ghci-completion-autoloads github-theme-autoloads haskell-mode-autoloads jabber-autoloads magit-gh-pulls-autoloads gh-autoloads eieio byte-opt bytecomp byte-compile cconv macroexp logito-autoloads magithub-autoloads json-autoloads markdown-mode-autoloads org-magit-autoloads magit-autoloads pcache-autoloads finder-inf php+-mode-autoloads php-extras-autoloads info php-mode-autoloads python-mode-autoloads ruby-tools-autoloads rvm-autoloads yasnippet-bundle-autoloads yasnippet-bundle dropdown-list advice help-fns advice-preload yasnippet edmacro kmacro easymenu assoc cl package tabulated-list time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)