* Re: Need help
[not found] <mailman.495.1244783214.2239.help-gnu-emacs@gnu.org>
@ 2009-06-13 22:13 ` Xah Lee
0 siblings, 0 replies; 10+ messages in thread
From: Xah Lee @ 2009-06-13 22:13 UTC (permalink / raw
To: help-gnu-emacs
On Jun 11, 11:55 am, Dhaval Malaviya <malaviya_dha...@yahoo.com>
wrote:
> Dear All,
>
> Let me introduce myself, I am VLSI engineer and I am fan of emacs and use it extensively for editing my code.
>
> However, sometimes when I use emacs auto completion macros (i use verilog specific macros), emacs window gets stuck and after some time it regains. Can you please help in hunting out the reason for same.
>
> Can somebody let me know what all functionality in such editors loads processor mostly and makes its slow? Is it LISP programming (used to code emacs) is reason or lots of functionality is one?
>
> I will be very grateful if some body from community help me out with this.
>
> Thanks in advance for your time and response.
>
> Dhaval
please give detail. What exactly is the mode? and what exactly you
mean by macro? What do you mean by emacs window stuck? For how long?
Also, OS and emacs version.
you need to be specific and give concrete detail.
one thing of note is that emacs doesn't support thread. Practically
this means that most things you do in emacs, emacs needs to finish
that first. This is especially noticable when do do network related
things like ftp. Don't know what is your macro. But if that is
computationally intensive, few sec wait is prob right.
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 10+ messages in thread
* need help
@ 2015-05-02 17:30 =?gb18030?B?xMTM7LXEze235w==?=
2015-05-02 17:44 ` Zack Piper
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: =?gb18030?B?xMTM7LXEze235w==?= @ 2015-05-02 17:30 UTC (permalink / raw
To: =?gb18030?B?ZW1hY3MtZGV2ZWw=?=
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 569 bytes --]
Hi,
I don not know where to ask my questions.
So please regret me for asking some easy questions, which I really do not know.
In emacs source code:
1. Where is the definition of DEFSYM, I can not find it in lisp.h now.
2. Where is the definition of the struct emacs_globals, I can not find it in all the source .c .h files
in emacs-master source code which I get from github.
3. Can you give me some advice for reading the emacs source code ?
Can anyone help me, a newbie emacser. Sorry for disturbing you and thanks a lot!
BR,
Miracle
[-- Attachment #2: Type: text/html, Size: 815 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: need help
2015-05-02 17:30 need help =?gb18030?B?xMTM7LXEze235w==?=
@ 2015-05-02 17:44 ` Zack Piper
2015-05-02 18:30 ` Óscar Fuentes
2015-05-02 18:42 ` Eli Zaretskii
2 siblings, 0 replies; 10+ messages in thread
From: Zack Piper @ 2015-05-02 17:44 UTC (permalink / raw
To: emacs-devel
On Sun, May 03, 2015 at 01:30:19AM +0800, 哪天的晚风 wrote:
> I don not know where to ask my questions.
> So please regret me for asking some easy questions, which I really do not know.
Don't worry, asking questions is how you learn. :)
>
>
> In emacs source code:
> 1. Where is the definition of DEFSYM, I can not find it in lisp.h now.
`M-x describe-function RET defsym RET` tells me it doesn't exist at
all for me, so probably not at all for anyone.
> 2. Where is the definition of the struct emacs_globals, I can not find it in all the source .c .h files
> in emacs-master source code which I get from github.
`emacs_globals` is mentioned at:
- line 116 of src/alloc.c
- line 3, and 1009 of src/globals.h
> 3. Can you give me some advice for reading the emacs source code ?
Well, learning C and LISP is a good start, and learning to use `grep`
(I assume you're on Linux or a platform like it) is great for finding things.
--
Zack Piper <zack@apertron.net> http://apertron.net
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: need help
2015-05-02 17:30 need help =?gb18030?B?xMTM7LXEze235w==?=
2015-05-02 17:44 ` Zack Piper
@ 2015-05-02 18:30 ` Óscar Fuentes
2015-05-02 18:42 ` Eli Zaretskii
2 siblings, 0 replies; 10+ messages in thread
From: Óscar Fuentes @ 2015-05-02 18:30 UTC (permalink / raw
To: emacs-devel
"哪天的晚风" <875776209@qq.com> writes:
> Hi, I don not know where to ask my questions. So please regret me for
> asking some easy questions, which I really do not know.
This is the right place for this type of questions.
>
> In emacs source code:
> 1. Where is the definition of DEFSYM, I can not find it in lisp.h now.
From my checkout of `master' branch:
src/lisp.h:1796:9:#define DEFSYM(sym, name) /* empty */
> 3. Can you give me some advice for reading the emacs source code ?
There is a lot of difference among the C part and the Lisp part. Even on
the C part there are areas of varying difficulty (the redisplay engine
is famous for its complexity.) IMHO best thing to do is to start by
becoming proficient with Emacs Lisp (use the Emacs Lisp info pages) and
then focus on a specific set of features and start fixing bugs on it.
> Can anyone help me, a newbie emacser. Sorry for disturbing you and
> thanks a lot!
Welcome aboard.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: need help
2015-05-02 17:30 need help =?gb18030?B?xMTM7LXEze235w==?=
2015-05-02 17:44 ` Zack Piper
2015-05-02 18:30 ` Óscar Fuentes
@ 2015-05-02 18:42 ` Eli Zaretskii
2015-05-02 20:36 ` Zack Piper
2 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2015-05-02 18:42 UTC (permalink / raw
To: =?gb18030?B?xMTM7LXEze235w==?=; +Cc: emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 382 bytes --]
> From: "ÄÄÌìµÄÍí·ç" <875776209@qq.com>
> Date: Sun, 3 May 2015 01:30:19 +0800
>
> 1. Where is the definition of DEFSYM, I can not find it in lisp.h now.
src/lisp.h, line 1796.
> 2. Where is the definition of the struct emacs_globals, I can not find it in
> all the source .c .h files in emacs-master source code which I get from github.
src/globals.h, line 3.
^ permalink raw reply [flat|nested] 10+ messages in thread
* need help
@ 2010-04-14 7:00 马亮
2010-04-15 7:32 ` Alberto Luaces
2010-04-15 9:15 ` tomas
0 siblings, 2 replies; 10+ messages in thread
From: 马亮 @ 2010-04-14 7:00 UTC (permalink / raw
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 5685 bytes --]
Dear Emacs Team:
My problem is When I input the "C", the emacs show "C-" in the command
line, So I can't input the "C", this is too bother me.
Please give me a hand.
Sorry for my poor English.
My .emacs is:
(add-to-list 'load-path "~/.emacs.d/rails")
(add-to-list 'load-path "~/.emacs.d/yaml-mode")
(add-to-list 'load-path "~/.emacs.d/yasnippet")
(add-to-list 'load-path "~/.emacs.d/color-theme")
(add-to-list 'load-path "~/.emacs.d/auto-complete")
(add-to-list 'load-path "~/.emacs.d/git")
(add-to-list 'load-path "~/.emacs.d/js")
(add-to-list 'load-path "~/.emacs.d/cedet/common")
(add-to-list 'load-path "~/.emacs.d/ecb")
(add-to-list 'load-path "~/.emacs.d/cedet/eieio")
(add-to-list 'load-path "~/.emacs.d/cedet/speedbar")
(add-to-list 'load-path "~/.emacs.d/cedet/semantic")
(global-linum-mode t)
(require 'git-emacs)
(require 'git)
;(require 'git-blame)
(require 'rails)
(setq auto-mode-alist (cons '("\\.rb$" . ruby-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.erb$" . nxml-mode) auto-mode-alist))
(require 'yaml-mode)
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
(add-hook 'yaml-mode-hook
'(lambda ()
(define-key yaml-mode-map "\C-m" 'newline-and-indent)))
(add-to-list 'auto-mode-alist '("\\.js\\'" . javascript-mode))
(autoload 'javascript-mode "javascript" nil t)
;;(enabled with `font-lock-mode')
( global-font-lock-mode t)
( display-time )
( column-number-mode t)
(require 'color-theme)
(prefer-coding-system 'utf-8)
;;;------------------------------------------------------------;;;
;;; VIEW
;;; No startup message
(setq inhibit-startup-message t)
;;; GUI font
;;(set-default-font "Bitstream Vera Sans Mono-12")
(set-default-font "Monaco-16")
;;; JP fonts
(set-fontset-font (frame-parameter nil 'font)
'japanese-jisx0208
'("M+2VM+IPAG circle" . "unicode-bmp"))
;;; zh-CN fonts
(set-fontset-font (frame-parameter nil 'font)
'han
'("Microsoft YaHei" . "unicode-bmp"))
;;;;===========================================================;;;;
;;; cjk-misc fonts
(set-fontset-font (frame-parameter nil 'font)
'cjk-misc
'("Monaco Vera Sans YuanTi Mono" . "unicode-bmp"))
;;; bopomofo fonts
(set-fontset-font (frame-parameter nil 'font)
'bopomofo
'("Monaco Vera Sans YuanTi Mono" . "unicode-bmp"))
;;; symbol fonts
(set-fontset-font (frame-parameter nil 'font)
'symbol
'("Monaco Vera Sans YuanTi" . "unicode-bmp"))
;;;;=========================================================;;;;
(color-theme-initialize)
(color-theme-blackboard)
(require 'yasnippet-bundle)
(require 'auto-complete)
(when (require 'auto-complete nil t)
(require 'auto-complete-yasnippet)
;; (require 'auto-complete-ruby)
;; (require 'auto-complete-css)
(global-auto-complete-mode t)
;; (set-face-background 'ac-menu-face "lightgray")
;; (set-face-underline 'ac-menu-face "darkgray")
;; (set-face-background 'ac-selection-face "steelblue")
(setq ac-auto-start nil)
(global-set-key "\M-/" 'ac-start)
;; (define-key ac-complete-mode-map "\t" 'ac-expand)
(define-key ac-complete-mode-map "\M-j" 'ac-complete)
(define-key ac-complete-mode-map "\M-n" 'ac-next)
(define-key ac-complete-mode-map "\M-p" 'ac-previous)
;; (setq ac-auto-start nil)
;; (setq ac-dwim t)
(set-default 'ac-sources '(ac-source-yasnippet ac-source-abbrev
ac-source-words-in-buffer))
(setq ac-modes
(append ac-modes
'(eshell-mode
;org-mode
)))
;(add-to-list 'ac-trigger-commands 'org-self-insert-command)
(add-hook 'emacs-lisp-mode-hook
(lambda ()
(setq ac-sources '(ac-source-yasnippet ac-source-abbrev
ac-source-words-in-buffer ac-source-symbols))))
(add-hook 'eshell-mode-hook
(lambda ()
(setq ac-sources '(ac-source-yasnippet ac-source-abbrev
ac-source-files-in-current-dir ac-source-words-in-buffer))))
(add-hook 'ruby-mode-hook
(lambda ()
(setq ac-omni-completion-sources '(("\\.\\="
ac-source-rcodetools))))))
;;python;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist (cons '("python" . python-mode)
interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
(add-hook 'dired-load-hook
(lambda ()
(load "dired-x")
;; Set dired-x global variables here. For example:
;; (setq dired-guess-shell-gnutar "gtar")
;; (setq dired-x-hands-off-my-keys nil)
))
(add-hook 'dired-mode-hook
(lambda ()
;; Set dired-x buffer-local variables here. For example:
;; (dired-omit-mode 1)
))
(put 'upcase-region 'disabled nil)
(add-hook 'ruby-mode-hook
(lambda()
(add-hook 'local-write-file-hooks
'(lambda()
(save-excursion
(untabify (point-min) (point-max))
(delete-trailing-whitespace)
)))
(set (make-local-variable 'indent-tabs-mode) 'nil)
(set (make-local-variable 'tab-width) 2)
(imenu-add-to-menubar "IMENU")
(define-key ruby-mode-map "C-m" 'newline-and-indent)
(require 'ruby-electric)
(ruby-electric-mode t)
))
floys
2010-04-14
[-- Attachment #2: Type: text/html, Size: 8349 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: need help
2010-04-14 7:00 马亮
@ 2010-04-15 7:32 ` Alberto Luaces
2010-04-15 9:15 ` tomas
1 sibling, 0 replies; 10+ messages in thread
From: Alberto Luaces @ 2010-04-15 7:32 UTC (permalink / raw
To: help-gnu-emacs
马亮 writes:
> Dear Emacs Team:
> My problem is When I input the "C", the emacs show "C-" in the command line, So I can't input the "C", this is too bother me.
> Please give me a hand.
> Sorry for my poor English.
> My .emacs is:
[...]
The only thing that comes to my mind is to debug your .emacs file, since
I can't see anything binding the "C" key. To do that, first start emacs
with the -Q option in order to make sure that the error lies in your
personal configuration. Then, restart emacs deleting every time
different parts of the .emacs file until you find which one triggers
that behaviour.
--
Alberto
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: need help
2010-04-14 7:00 马亮
2010-04-15 7:32 ` Alberto Luaces
@ 2010-04-15 9:15 ` tomas
1 sibling, 0 replies; 10+ messages in thread
From: tomas @ 2010-04-15 9:15 UTC (permalink / raw
To: 马亮; +Cc: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Apr 14, 2010 at 03:00:09PM +0800, 马亮 wrote:
> Dear Emacs Team:
> My problem is When I input the "C", the emacs show "C-" in the command
> line, So I can't input the "C", this is too bother me.
Sorry, I think I don't understand the problem. When you write "C" here,
you mean the Control key? And once you press it, Emacs shows C- in the
"command line" (I guess this is the minibuffer, at the bottom of the
window, right?)
> Please give me a hand.
Try starting Emacs like so:
emacs -Q
and see if the problem is still there. If it disappears, then the
problem may be coming from your .emacs.
Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFLxtkbBcgs9XrR2kYRAmdGAJ47UB18+s9ieBHM4Xp0AZh2+gkY4gCfYgDF
lMndw9Kco7ifxwLAiQfJpTU=
=xTob
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 10+ messages in thread
* Need help
@ 2009-06-11 18:55 Dhaval Malaviya
0 siblings, 0 replies; 10+ messages in thread
From: Dhaval Malaviya @ 2009-06-11 18:55 UTC (permalink / raw
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 676 bytes --]
Dear All,
Let me introduce myself, I am VLSI engineer and I am fan of emacs and use it extensively for editing my code.
However, sometimes when I use emacs auto completion macros (i use verilog specific macros), emacs window gets stuck and after some time it regains. Can you please help in hunting out the reason for same.
Can somebody let me know what all functionality in such editors loads processor mostly and makes its slow? Is it LISP programming (used to code emacs) is reason or lots of functionality is one?
I will be very grateful if some body from community help me out with this.
Thanks in advance for your time and response.
Dhaval
[-- Attachment #2: Type: text/html, Size: 1063 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-05-02 20:36 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.495.1244783214.2239.help-gnu-emacs@gnu.org>
2009-06-13 22:13 ` Need help Xah Lee
2015-05-02 17:30 need help =?gb18030?B?xMTM7LXEze235w==?=
2015-05-02 17:44 ` Zack Piper
2015-05-02 18:30 ` Óscar Fuentes
2015-05-02 18:42 ` Eli Zaretskii
2015-05-02 20:36 ` Zack Piper
-- strict thread matches above, loose matches on Subject: below --
2010-04-14 7:00 马亮
2010-04-15 7:32 ` Alberto Luaces
2010-04-15 9:15 ` tomas
2009-06-11 18:55 Need help Dhaval Malaviya
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.